Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008507/0.0008507, allocations: 88.28 kB / 21.44 MB, free: 3.129 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.004247/0.004247, allocations: 160 kB / 24.7 MB, free: 9.441 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8648/0.8648, allocations: 177 MB / 204.8 MB, free: 5.758 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.813e-06/1.813e-06, allocations: 0 / 325.8 MB, free: 15.41 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.421e-05/3.603e-05, allocations: 10.78 kB / 325.8 MB, free: 15.39 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01301/0.01305, allocations: 10.57 MB / 336.4 MB, free: 4.762 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006762/0.01981, allocations: 3.144 MB / 339.5 MB, free: 1.609 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00152/0.02133, allocations: 43.81 kB / 339.6 MB, free: 1.566 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001646/0.02297, allocations: 0.6361 MB / 340.2 MB, free: 0.9258 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001972/0.02495, allocations: 0.8334 MB / 341 MB, free: 88 kB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007951/0.02574, allocations: 403.6 kB / 341.4 MB, free: 15.69 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.002433/0.02817, allocations: 2.512 MB / 343.9 MB, free: 13.17 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008068/0.02898, allocations: 0.6108 MB / 344.5 MB, free: 12.51 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001709/0.03069, allocations: 1.403 MB / 345.9 MB, free: 11.11 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006297/0.03132, allocations: 0.7048 MB / 346.6 MB, free: 10.4 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001679/0.03149, allocations: 228 kB / 346.9 MB, free: 10.18 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003291/0.03182, allocations: 272 kB / 347.1 MB, free: 9.91 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002115/0.03203, allocations: 462.2 kB / 347.6 MB, free: 9.457 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005195/0.03255, allocations: 0.7443 MB / 348.3 MB, free: 8.711 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001919/0.03447, allocations: 2.843 MB / 351.2 MB, free: 5.859 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.738e-06/0.03447, allocations: 0 / 351.2 MB, free: 5.859 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.03447, allocations: 0 / 351.2 MB, free: 5.859 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.025e-05/0.03449, allocations: 0 / 351.2 MB, free: 5.859 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.002282/0.03678, allocations: 2.114 MB / 353.3 MB, free: 3.703 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.839e-05/0.03681, allocations: 12.03 kB / 353.3 MB, free: 3.691 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000508/0.03732, allocations: 295.5 kB / 353.6 MB, free: 3.402 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001299/0.03862, allocations: 1.047 MB / 354.6 MB, free: 2.309 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.681e-05/0.03868, allocations: 119.5 kB / 354.8 MB, free: 2.191 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001388/0.03882, allocations: 164.2 kB / 354.9 MB, free: 2.031 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001647/0.04046, allocations: 1.605 MB / 356.5 MB, free: 348 kB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.783e-05/0.0405, allocations: 7.953 kB / 356.5 MB, free: 340 kB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.982e-05/0.04058, allocations: 60 kB / 356.6 MB, free: 280 kB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.032e-05/0.0406, allocations: 43.98 kB / 356.6 MB, free: 236 kB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001294/0.0419, allocations: 1.053 MB / 357.7 MB, free: 15.17 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005336/0.04723, allocations: 5.412 MB / 363.1 MB, free: 9.48 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009871/0.04822, allocations: 0.5616 MB / 363.7 MB, free: 8.91 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005592/0.04878, allocations: 422.7 kB / 364.1 MB, free: 8.492 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.76e-05/0.04882, allocations: 16.66 kB / 364.1 MB, free: 8.473 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.537e-05/0.04884, allocations: 39.22 kB / 364.1 MB, free: 8.426 MB / 330.7 MB Notification: Performance of pre-optimization done (n=66): time 3.818e-06/0.04884, allocations: 0 / 364.1 MB, free: 8.426 MB / 330.7 MB Notification: Performance of matching and sorting (n=72): time 0.003482/0.05233, allocations: 2.166 MB / 366.3 MB, free: 6.227 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.889e-05/0.05239, allocations: 107.5 kB / 366.4 MB, free: 6.098 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001292/0.05368, allocations: 1.18 MB / 367.6 MB, free: 4.906 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.855e-05/0.05372, allocations: 37.7 kB / 367.6 MB, free: 4.863 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003994/0.05412, allocations: 0.8779 MB / 368.5 MB, free: 3.977 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001361/0.05425, allocations: 269.7 kB / 368.8 MB, free: 3.711 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001834/0.05444, allocations: 206.8 kB / 369 MB, free: 3.504 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 9.302e-05/0.05453, allocations: 357.8 kB / 369.3 MB, free: 3.148 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003498/0.05488, allocations: 286.5 kB / 369.6 MB, free: 2.867 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008514/0.05573, allocations: 0.7926 MB / 370.4 MB, free: 1.848 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009448/0.05667, allocations: 1.081 MB / 371.5 MB, free: 0.5586 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.991e-06/0.05668, allocations: 11.98 kB / 371.5 MB, free: 0.5469 MB / 330.7 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.001426/0.05811, allocations: 1.245 MB / 372.7 MB, free: 15.29 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.414e-05/0.05813, allocations: 15.98 kB / 372.7 MB, free: 15.27 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.63e-05/0.05815, allocations: 19.94 kB / 372.7 MB, free: 15.25 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003506/0.0585, allocations: 131 kB / 372.9 MB, free: 15.11 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004655/0.05896, allocations: 255.6 kB / 373.1 MB, free: 14.86 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00323/0.06219, allocations: 4.244 MB / 377.4 MB, free: 10.31 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007439/0.06294, allocations: 51.97 kB / 377.4 MB, free: 10.26 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.026e-05/0.063, allocations: 56 kB / 377.5 MB, free: 10.21 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (137): * Single equations (assignments): 134 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0006111/0.06361, allocations: 357.5 kB / 377.8 MB, free: 9.848 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001356/0.06374, allocations: 135.1 kB / 378 MB, free: 9.715 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001029/0.06477, allocations: 0.8165 MB / 378.8 MB, free: 8.883 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.047e-06/0.06478, allocations: 8.141 kB / 378.8 MB, free: 8.875 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.446e-06/0.06478, allocations: 0 / 378.8 MB, free: 8.875 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.774e-06/0.06479, allocations: 7.969 kB / 378.8 MB, free: 8.867 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00228/0.06707, allocations: 1.957 MB / 380.7 MB, free: 6.816 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.24e-06/0.06707, allocations: 4 kB / 380.7 MB, free: 6.812 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002878/0.06736, allocations: 127.8 kB / 380.9 MB, free: 6.688 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002464/0.06761, allocations: 138.8 kB / 381 MB, free: 6.543 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.024e-05/0.06764, allocations: 23.98 kB / 381 MB, free: 6.52 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002635/0.07027, allocations: 4.382 MB / 385.4 MB, free: 1.828 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.07028, allocations: 4 kB / 385.4 MB, free: 1.824 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001338/0.07161, allocations: 1.281 MB / 386.7 MB, free: 488 kB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003161/0.07193, allocations: 195 kB / 386.9 MB, free: 292 kB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.662e-05/0.07201, allocations: 20 kB / 386.9 MB, free: 272 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002944/0.0723, allocations: 39.97 kB / 386.9 MB, free: 232 kB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001073/0.07241, allocations: 68.27 kB / 387 MB, free: 164 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.532e-05/0.07243, allocations: 20 kB / 387 MB, free: 144 kB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0008296/0.07326, allocations: 0.7724 MB / 387.8 MB, free: 15.36 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.07326, allocations: 7.938 kB / 387.8 MB, free: 15.36 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008303/0.07409, allocations: 324 kB / 388.1 MB, free: 15.04 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002142/0.07431, allocations: 139.1 kB / 388.3 MB, free: 14.89 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001184/0.07549, allocations: 1.088 MB / 389.4 MB, free: 13.77 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.786e-06/0.0755, allocations: 0 / 389.4 MB, free: 13.77 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005716/0.07607, allocations: 0.6924 MB / 390 MB, free: 13.04 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008673/0.07693, allocations: 345.7 kB / 390.4 MB, free: 12.71 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003414/0.08035, allocations: 2.822 MB / 393.2 MB, free: 9.805 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004566/0.0808, allocations: 0.6337 MB / 393.8 MB, free: 9.133 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001762/0.08098, allocations: 96.47 kB / 393.9 MB, free: 9.039 MB / 362.7 MB Notification: Performance of SimCode: time 1.122e-06/0.08098, allocations: 0 / 393.9 MB, free: 9.039 MB / 362.7 MB Notification: Performance of Templates: time 0.03321/0.1142, allocations: 41.19 MB / 435.1 MB, free: 15.86 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.2119154101237655]