Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.0008819/0.0008819, allocations: 80.8 kB / 21.5 MB, free: 2.988 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.0008741/0.0008741, allocations: 174.3 kB / 24.92 MB, free: 8.766 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9282/0.9282, allocations: 177.1 MB / 205.3 MB, free: 5.48 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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=5028,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5028,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.402e-06/1.402e-06, allocations: 0 / 273.5 MB, free: 1.254 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.698e-06/1.11e-05, allocations: 4.844 kB / 273.5 MB, free: 1.25 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.1037/0.1037, allocations: 19.18 MB / 292.7 MB, free: 13.86 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.009097/0.1128, allocations: 6.357 MB / 299 MB, free: 13.32 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001768/0.1146, allocations: 205.2 kB / 299.2 MB, free: 13.25 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005506/0.1201, allocations: 6.809 MB / 306 MB, free: 11.1 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004147/0.1242, allocations: 3.685 MB / 309.7 MB, free: 8.754 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001787/0.126, allocations: 1.921 MB / 311.6 MB, free: 7.555 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00888/0.1349, allocations: 15.04 MB / 326.7 MB, free: 11.78 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006382/0.1413, allocations: 8.232 MB / 334.9 MB, free: 3.434 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007368/0.1487, allocations: 8.575 MB / 343.5 MB, free: 10.84 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004279/0.1529, allocations: 5.675 MB / 349.2 MB, free: 5.156 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006741/0.1536, allocations: 0.7852 MB / 350 MB, free: 4.371 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001652/0.1553, allocations: 1.69 MB / 351.6 MB, free: 2.68 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002698/0.158, allocations: 4.781 MB / 356.4 MB, free: 13.88 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001963/0.1599, allocations: 2.941 MB / 359.4 MB, free: 10.93 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005648/0.1656, allocations: 9.305 MB / 368.7 MB, free: 1.598 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.1656, allocations: 4 kB / 368.7 MB, free: 1.594 MB / 314.7 MB Notification: Performance of FrontEnd: time 9.62e-07/0.1656, allocations: 0 / 368.7 MB, free: 1.594 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.492e-05/0.1656, allocations: 0 / 368.7 MB, free: 1.594 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: 2488 * Number of variables: 2488 Notification: Performance of Generate backend data structure: time 0.008999/0.1746, allocations: 9.374 MB / 378.1 MB, free: 8.141 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.972e-05/0.1747, allocations: 12.03 kB / 378.1 MB, free: 8.129 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006046/0.1807, allocations: 2.268 MB / 380.3 MB, free: 5.859 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005569/0.1863, allocations: 5.169 MB / 385.5 MB, free: 0.6094 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001981/0.1865, allocations: 448 kB / 385.9 MB, free: 176 kB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006404/0.1871, allocations: 0.6093 MB / 386.5 MB, free: 15.56 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008148/0.1953, allocations: 8.734 MB / 395.3 MB, free: 5.699 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000141/0.1954, allocations: 99.2 kB / 395.4 MB, free: 5.602 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004401/0.1958, allocations: 279.8 kB / 395.7 MB, free: 5.328 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002129/0.198, allocations: 2.601 MB / 398.3 MB, free: 2.723 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006011/0.204, allocations: 4.222 MB / 402.5 MB, free: 14.47 MB / 362.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.2082/0.4122, allocations: 52.07 MB / 454.5 MB, free: 76.85 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007321/0.4195, allocations: 3.284 MB / 457.8 MB, free: 76.61 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001002/0.4205, allocations: 0.7553 MB / 458.6 MB, free: 76.57 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008433/0.4289, allocations: 6.793 MB / 465.4 MB, free: 75.9 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.658e-05/0.4289, allocations: 73.78 kB / 465.5 MB, free: 75.86 MB / 378.8 MB Notification: Performance of pre-optimization done (n=260): time 4.739e-06/0.4289, allocations: 0 / 465.5 MB, free: 75.86 MB / 378.8 MB Notification: Performance of matching and sorting (n=316): time 0.0355/0.4644, allocations: 15.73 MB / 481.2 MB, free: 71.68 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.583e-05/0.4645, allocations: 397.6 kB / 481.6 MB, free: 71.21 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003287/0.4678, allocations: 5.68 MB / 487.3 MB, free: 66.74 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0001415/0.4679, allocations: 73.7 kB / 487.3 MB, free: 66.66 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001124/0.4691, allocations: 4.795 MB / 492.1 MB, free: 62.11 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004327/0.4695, allocations: 1.232 MB / 493.3 MB, free: 60.87 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001141/0.4706, allocations: 1.752 MB / 495.1 MB, free: 59.1 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 1.997e-05/0.4706, allocations: 301.1 kB / 495.4 MB, free: 58.8 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001562/0.4722, allocations: 1.179 MB / 496.6 MB, free: 57.62 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002441/0.4746, allocations: 6.322 MB / 0.4911 GB, free: 48.84 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003767/0.4784, allocations: 8.103 MB / 0.499 GB, free: 38.77 MB / 378.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.997e-05/0.4785, allocations: 59.94 kB / 0.4991 GB, free: 38.71 MB / 378.8 MB Notification: Performance of matching and sorting (n=1208) (initialization): time 0.006025/0.4845, allocations: 6.69 MB / 0.5056 GB, free: 31.94 MB / 378.8 MB Notification: Performance of prepare postOptimizeDAE: time 5.394e-05/0.4845, allocations: 80 kB / 0.5057 GB, free: 31.86 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.531e-05/0.4846, allocations: 176 kB / 0.5059 GB, free: 31.69 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002573/0.4872, allocations: 1.312 MB / 0.5071 GB, free: 30.37 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002964/0.4901, allocations: 2.035 MB / 0.5091 GB, free: 28.33 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004755/0.4949, allocations: 5.615 MB / 0.5146 GB, free: 22.52 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002726/0.4976, allocations: 375.7 kB / 0.515 GB, free: 22.16 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003292/0.498, allocations: 448 kB / 0.5154 GB, free: 21.72 MB / 378.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 802 * 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],b2.cylinderColor[3],b2.cylinderColor[2],b2.cylinderColor[1],b1.cylinderColor[3],b1.cylinderColor[2],b1.cylinderColor[1],cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],mid.color[3],mid.color[2],mid.color[1],crank4.color[3],crank4.color[2],crank4.color[1],crank4.body.sphereColor[3],crank4.body.sphereColor[2],crank4.body.sphereColor[1],crank3.color[3],crank3.color[2],crank3.color[1],crank3.body.sphereColor[3],crank3.body.sphereColor[2],crank3.body.sphereColor[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],bearing.cylinderColor[3],bearing.cylinderColor[2],bearing.cylinderColor[1],connectingRod.color[3],connectingRod.color[2],connectingRod.color[1],connectingRod.body.sphereColor[3],connectingRod.body.sphereColor[2],connectingRod.body.sphereColor[1],piston.color[3],piston.color[2],piston.color[1],piston.body.sphereColor[3],piston.body.sphereColor[2],piston.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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1132): * Single equations (assignments): 1125 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(5,46,76.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001389/0.4993, allocations: 0.8623 MB / 0.5162 GB, free: 20.85 MB / 378.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004899/0.4998, allocations: 439.5 kB / 0.5167 GB, free: 20.42 MB / 378.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002883/0.5027, allocations: 2.309 MB / 0.5189 GB, free: 18.04 MB / 378.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.752e-05/0.5027, allocations: 32 kB / 0.5189 GB, free: 18.01 MB / 378.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.746e-06/0.5027, allocations: 8 kB / 0.5189 GB, free: 18 MB / 378.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.526e-05/0.5028, allocations: 19.94 kB / 0.519 GB, free: 17.98 MB / 378.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009532/0.5123, allocations: 9.443 MB / 0.5282 GB, free: 8.145 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.221e-05/0.5123, allocations: 23.5 kB / 0.5282 GB, free: 8.125 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009308/0.5132, allocations: 471.3 kB / 0.5287 GB, free: 7.664 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002588/0.5158, allocations: 1.362 MB / 0.53 GB, free: 6.293 MB / 378.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001186/0.5159, allocations: 76 kB / 0.5301 GB, free: 6.219 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004259/0.5202, allocations: 5.125 MB / 0.5351 GB, free: 0.8984 MB / 378.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.556e-06/0.5202, allocations: 27.88 kB / 0.5351 GB, free: 0.8711 MB / 378.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004527/0.5247, allocations: 4.058 MB / 0.5391 GB, free: 12.32 MB / 394.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006147/0.5254, allocations: 0.6323 MB / 0.5397 GB, free: 11.68 MB / 394.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004721/0.5258, allocations: 92.03 kB / 0.5398 GB, free: 11.59 MB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001199/0.527, allocations: 83.98 kB / 0.5398 GB, free: 11.51 MB / 394.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002969/0.5273, allocations: 277 kB / 0.5401 GB, free: 11.24 MB / 394.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001287/0.5274, allocations: 84 kB / 0.5402 GB, free: 11.16 MB / 394.8 MB Notification: Performance of sorting global known variables: time 0.001824/0.5293, allocations: 2.323 MB / 0.5425 GB, free: 8.855 MB / 394.8 MB Notification: Performance of sort global known variables: time 9e-08/0.5293, allocations: 4.031 kB / 0.5425 GB, free: 8.852 MB / 394.8 MB Notification: Performance of remove unused functions: time 0.004252/0.5335, allocations: 2.082 MB / 0.5445 GB, free: 6.77 MB / 394.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 90 * 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 (260): * Single equations (assignments): 253 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(5,42,68.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004712/0.534, allocations: 242.5 kB / 0.5447 GB, free: 6.523 MB / 394.8 MB Notification: Performance of simCode: created initialization part: time 0.004133/0.5381, allocations: 4.195 MB / 0.5488 GB, free: 2.324 MB / 394.8 MB Notification: Performance of simCode: created event and clocks part: time 0.0001873/0.5383, allocations: 132.8 kB / 0.5489 GB, free: 2.18 MB / 394.8 MB Notification: Performance of simCode: created simulation system equations: time 0.001513/0.5398, allocations: 1.336 MB / 0.5503 GB, free: 0.8281 MB / 394.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002993/0.5428, allocations: 1.35 MB / 0.5516 GB, free: 15.51 MB / 410.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0132/0.556, allocations: 14.68 MB / 0.5659 GB, free: 444 kB / 410.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001933/0.558, allocations: 2.381 MB / 0.5682 GB, free: 14.02 MB / 426.8 MB Notification: Performance of simCode: alias equations: time 0.001799/0.5597, allocations: 0.8702 MB / 0.5691 GB, free: 13.14 MB / 426.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001612/0.5614, allocations: 1.057 MB / 0.5701 GB, free: 12.08 MB / 426.8 MB Notification: Performance of SimCode: time 8.62e-07/0.5614, allocations: 0 / 0.5701 GB, free: 12.08 MB / 426.8 MB Notification: Performance of Templates: time 0.1748/0.7362, allocations: 72.64 MB / 0.6411 GB, free: 106.1 MB / 426.8 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/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: 4.681410692166537]