Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001034/0.001034, allocations: 75.75 kB / 21.97 MB, free: 2.602 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001063/0.001063, allocations: 168.8 kB / 25.33 MB, free: 9.465 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8806/0.8806, allocations: 158.6 MB / 187.2 MB, free: 2.52 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5062,variableFilter="time|Inertia.phi|Inertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5062,variableFilter="time|Inertia.phi|Inertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.212e-06/1.212e-06, allocations: 0 / 251.1 MB, free: 3.566 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.177e-05/2.298e-05, allocations: 2.312 kB / 251.1 MB, free: 3.562 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.01497/0.01499, allocations: 20.04 MB / 271.1 MB, free: 15.44 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01144/0.02644, allocations: 6.145 MB / 277.3 MB, free: 9.273 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002719/0.02916, allocations: 210.8 kB / 277.5 MB, free: 9.066 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006677/0.03583, allocations: 6.861 MB / 284.3 MB, free: 2.184 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005546/0.04138, allocations: 3.689 MB / 288 MB, free: 14.48 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002186/0.04356, allocations: 1.934 MB / 289.9 MB, free: 12.54 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.136/0.1796, allocations: 13.55 MB / 303.5 MB, free: 20.31 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0116/0.1912, allocations: 8.117 MB / 311.6 MB, free: 19.95 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007707/0.1989, allocations: 5.862 MB / 317.5 MB, free: 19.84 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005477/0.2043, allocations: 5.996 MB / 323.5 MB, free: 18.82 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001045/0.2054, allocations: 0.7789 MB / 324.3 MB, free: 18.82 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002281/0.2077, allocations: 1.7 MB / 326 MB, free: 18.67 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002747/0.2104, allocations: 4.828 MB / 330.8 MB, free: 16.77 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002465/0.2129, allocations: 2.958 MB / 333.7 MB, free: 15.48 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006965/0.2199, allocations: 9.356 MB / 343.1 MB, free: 9.426 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.568e-06/0.2199, allocations: 0 / 343.1 MB, free: 9.426 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.412e-06/0.2199, allocations: 0 / 343.1 MB, free: 9.426 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001036/0.22, allocations: 0 / 343.1 MB, free: 9.426 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2489 * Number of variables: 2489 Notification: Performance of Generate backend data structure: time 0.01355/0.2335, allocations: 11.07 MB / 354.2 MB, free: 14.42 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.893e-05/0.2336, allocations: 15.97 kB / 354.2 MB, free: 14.41 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02734/0.2609, allocations: 6.254 MB / 360.4 MB, free: 8.188 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01026/0.2712, allocations: 7.295 MB / 367.7 MB, free: 1.098 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000219/0.2714, allocations: 445.6 kB / 368.2 MB, free: 0.7109 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007344/0.2721, allocations: 0.6171 MB / 368.8 MB, free: 148 kB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01368/0.2858, allocations: 10.68 MB / 379.5 MB, free: 4.242 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001799/0.286, allocations: 87.83 kB / 379.6 MB, free: 4.188 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004656/0.2864, allocations: 283.7 kB / 379.8 MB, free: 3.961 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002746/0.2892, allocations: 2.851 MB / 382.7 MB, free: 1.145 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01127/0.3005, allocations: 5.587 MB / 388.3 MB, free: 11.86 MB / 330.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3027/0.6032, allocations: 71.34 MB / 459.6 MB, free: 72.44 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01007/0.6132, allocations: 4.552 MB / 464.2 MB, free: 72.25 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001694/0.6149, allocations: 1.405 MB / 465.6 MB, free: 72.2 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009266/0.6242, allocations: 7.487 MB / 473.1 MB, free: 71.04 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.711e-05/0.6242, allocations: 69.7 kB / 473.1 MB, free: 70.99 MB / 378.8 MB Notification: Performance of pre-optimization done (n=293): time 4.217e-06/0.6242, allocations: 5.25 kB / 473.1 MB, free: 70.99 MB / 378.8 MB Notification: Performance of matching and sorting (n=365): time 0.06459/0.6888, allocations: 33.6 MB / 0.4949 GB, free: 53.56 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000102/0.6889, allocations: 402.3 kB / 0.4952 GB, free: 53.08 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006075/0.695, allocations: 6.353 MB / 0.5014 GB, free: 46.96 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0003223/0.6953, allocations: 81.7 kB / 0.5015 GB, free: 46.88 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001928/0.6973, allocations: 5.672 MB / 0.5071 GB, free: 41.78 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.000813/0.6981, allocations: 1.44 MB / 0.5085 GB, free: 40.36 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00162/0.6997, allocations: 2.032 MB / 0.5104 GB, free: 38.31 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 4.174e-05/0.6997, allocations: 484.7 kB / 0.5109 GB, free: 37.84 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001851/0.7016, allocations: 1.416 MB / 0.5123 GB, free: 36.41 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004235/0.7058, allocations: 8.856 MB / 0.5209 GB, free: 24.32 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006861/0.7127, allocations: 11.02 MB / 0.5317 GB, free: 10.7 MB / 378.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.9e-05/0.7127, allocations: 48 kB / 0.5317 GB, free: 10.65 MB / 378.8 MB Notification: Performance of matching and sorting (n=1238) (initialization): time 0.01597/0.7287, allocations: 11.22 MB / 0.5427 GB, free: 15.39 MB / 394.8 MB Notification: Performance of prepare postOptimizeDAE: time 8.381e-05/0.7288, allocations: 82.5 kB / 0.5428 GB, free: 15.31 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001156/0.7289, allocations: 164 kB / 0.5429 GB, free: 15.15 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008973/0.7379, allocations: 3.762 MB / 0.5466 GB, free: 11.38 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003697/0.7416, allocations: 2.019 MB / 0.5486 GB, free: 9.359 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01636/0.7579, allocations: 13.72 MB / 0.562 GB, free: 11.28 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005982/0.7639, allocations: 0.6943 MB / 0.5627 GB, free: 10.59 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006886/0.7646, allocations: 0.5143 MB / 0.5632 GB, free: 10.07 MB / 410.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 762 * Number of states: 0 () * Number of discrete variables: 72 (Rod3.color[3],Rod3.color[2],Rod3.color[1],Rod1.color[3],Rod1.color[2],Rod1.color[1],Cylinder.boxColor[3],Cylinder.boxColor[2],Cylinder.boxColor[1],B1.cylinderColor[3],B1.cylinderColor[2],B1.cylinderColor[1],B2.cylinderColor[3],B2.cylinderColor[2],B2.cylinderColor[1],cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],Mid.color[3],Mid.color[2],Mid.color[1],Crank2.color[3],Crank2.color[2],Crank2.color[1],Crank2.body.sphereColor[3],Crank2.body.sphereColor[2],Crank2.body.sphereColor[1],Crank1.color[3],Crank1.color[2],Crank1.color[1],Crank1.body.sphereColor[3],Crank1.body.sphereColor[2],Crank1.body.sphereColor[1],Crank3.color[3],Crank3.color[2],Crank3.color[1],Crank3.body.sphereColor[3],Crank3.body.sphereColor[2],Crank3.body.sphereColor[1],Crank4.color[3],Crank4.color[2],Crank4.color[1],Crank4.body.sphereColor[3],Crank4.body.sphereColor[2],Crank4.body.sphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],Bearing.cylinderColor[3],Bearing.cylinderColor[2],Bearing.cylinderColor[1],Rod2.color[3],Rod2.color[2],Rod2.color[1],Rod2.body.sphereColor[3],Rod2.body.sphereColor[2],Rod2.body.sphereColor[1],Piston.color[3],Piston.color[2],Piston.color[1],Piston.body.sphereColor[3],Piston.body.sphereColor[2],Piston.body.sphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1102): * Single equations (assignments): 1096 * Array equations: 3 * 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 {(6,100,72.2%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.002603/0.7672, allocations: 0.8907 MB / 0.564 GB, free: 9.168 MB / 410.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001075/0.7683, allocations: 0.7536 MB / 0.5648 GB, free: 8.41 MB / 410.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01002/0.7783, allocations: 6 MB / 0.5706 GB, free: 2.336 MB / 410.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.729e-05/0.7783, allocations: 36 kB / 0.5707 GB, free: 2.301 MB / 410.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.693e-05/0.7784, allocations: 20 kB / 0.5707 GB, free: 2.281 MB / 410.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.988e-05/0.7784, allocations: 19.88 kB / 0.5707 GB, free: 2.262 MB / 410.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02178/0.8002, allocations: 14.08 MB / 0.5844 GB, free: 4.043 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.616e-05/0.8002, allocations: 8 kB / 0.5845 GB, free: 4.035 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001267/0.8014, allocations: 455.4 kB / 0.5849 GB, free: 3.59 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008623/0.8101, allocations: 3.449 MB / 0.5883 GB, free: 132 kB / 426.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002617/0.8103, allocations: 68 kB / 0.5883 GB, free: 64 kB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01646/0.8268, allocations: 13.29 MB / 0.6013 GB, free: 2.414 MB / 442.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.211e-06/0.8268, allocations: 11.94 kB / 0.6013 GB, free: 2.402 MB / 442.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1582/0.985, allocations: 7.799 MB / 0.6089 GB, free: 160 MB / 442.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002935/0.9879, allocations: 1.285 MB / 0.6102 GB, free: 160 MB / 442.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007035/0.9886, allocations: 70.11 kB / 0.6102 GB, free: 160 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00208/0.9907, allocations: 395.6 kB / 0.6106 GB, free: 160 MB / 442.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006846/0.9914, allocations: 283.5 kB / 0.6109 GB, free: 160 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000205/0.9916, allocations: 96.42 kB / 0.611 GB, free: 160 MB / 442.8 MB Notification: Performance of sorting global known variables: time 0.003714/0.9953, allocations: 3.005 MB / 0.6139 GB, free: 159.7 MB / 442.8 MB Notification: Performance of sort global known variables: time 2.01e-07/0.9953, allocations: 0 / 0.6139 GB, free: 159.7 MB / 442.8 MB Notification: Performance of remove unused functions: time 0.005871/1.001, allocations: 2.502 MB / 0.6164 GB, free: 159.7 MB / 442.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 35 * Number of states: 2 (Inertia.phi,Inertia.w) * 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 (241): * Single equations (assignments): 235 * Array equations: 3 * 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 {(5,96,72.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004672/1.002, allocations: 255 kB / 0.6166 GB, free: 159.6 MB / 442.8 MB Notification: Performance of simCode: created initialization part: time 0.007551/1.009, allocations: 6.311 MB / 0.6228 GB, free: 158.7 MB / 442.8 MB Notification: Performance of simCode: created event and clocks part: time 6.091e-06/1.009, allocations: 0 / 0.6228 GB, free: 158.7 MB / 442.8 MB Notification: Performance of simCode: created simulation system equations: time 0.002646/1.012, allocations: 2.599 MB / 0.6253 GB, free: 158 MB / 442.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00285/1.015, allocations: 0.9892 MB / 0.6263 GB, free: 157.9 MB / 442.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01953/1.034, allocations: 15.82 MB / 0.6417 GB, free: 151.9 MB / 442.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001919/1.036, allocations: 2.457 MB / 0.6441 GB, free: 151 MB / 442.8 MB Notification: Performance of simCode: alias equations: time 0.003767/1.04, allocations: 2.297 MB / 0.6464 GB, free: 149.8 MB / 442.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008297/1.041, allocations: 413.6 kB / 0.6468 GB, free: 149.4 MB / 442.8 MB Notification: Performance of SimCode: time 2.385e-06/1.041, allocations: 0 / 0.6468 GB, free: 149.4 MB / 442.8 MB Notification: Performance of Templates: time 0.1036/1.144, allocations: 95.62 MB / 0.7401 GB, free: 56.67 MB / 442.8 MB " [Timeout remaining time 659] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1b/Engine1b.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.685910687316209]