Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002519/0.002519, allocations: 95.86 kB / 20.96 MB, free: 3.465 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002865/0.002865, allocations: 153.1 kB / 24.27 MB, free: 168 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.582/1.582, allocations: 173.3 MB / 200.8 MB, free: 9.328 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.573e-06/1.573e-06, allocations: 0 / 267.3 MB, free: 6.723 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.627e-05/2.784e-05, allocations: 6.25 kB / 267.4 MB, free: 6.715 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.02562/0.02565, allocations: 18.81 MB / 286.2 MB, free: 3.824 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1274/0.1531, allocations: 5.889 MB / 292 MB, free: 13.98 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003322/0.1564, allocations: 189.5 kB / 292.2 MB, free: 13.98 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01084/0.1672, allocations: 6.312 MB / 298.5 MB, free: 13.89 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007787/0.175, allocations: 3.562 MB / 302.1 MB, free: 12.96 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003028/0.178, allocations: 1.822 MB / 303.9 MB, free: 11.87 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.01439/0.1924, allocations: 14.27 MB / 318.2 MB, free: 4.086 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009516/0.2019, allocations: 7.725 MB / 325.9 MB, free: 12.71 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01264/0.2146, allocations: 5.576 MB / 331.5 MB, free: 7.457 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01086/0.2254, allocations: 5.772 MB / 337.3 MB, free: 2.098 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002938/0.2284, allocations: 0.7422 MB / 338 MB, free: 1.355 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005257/0.2336, allocations: 1.672 MB / 339.7 MB, free: 15.72 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.007702/0.2413, allocations: 4.615 MB / 344.3 MB, free: 11.24 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.007354/0.2487, allocations: 2.826 MB / 347.1 MB, free: 8.539 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02196/0.2707, allocations: 14.1 MB / 361.2 MB, free: 10.78 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.2707, allocations: 3.938 kB / 361.2 MB, free: 10.78 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.322e-06/0.2707, allocations: 0 / 361.2 MB, free: 10.78 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.00047/0.2711, allocations: 0 / 361.2 MB, free: 10.78 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: 2386 * Number of variables: 2386 Notification: Performance of Generate backend data structure: time 0.03125/0.3024, allocations: 11.45 MB / 372.7 MB, free: 15.38 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.58e-05/0.3024, allocations: 8.922 kB / 372.7 MB, free: 15.37 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05417/0.3566, allocations: 6.195 MB / 378.9 MB, free: 9.215 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02137/0.378, allocations: 7.139 MB / 386 MB, free: 2.082 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004331/0.3784, allocations: 430.4 kB / 386.5 MB, free: 1.715 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001918/0.3803, allocations: 0.5819 MB / 387 MB, free: 1.18 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02701/0.4073, allocations: 10.99 MB / 398 MB, free: 4.855 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003119/0.4076, allocations: 92.38 kB / 398.1 MB, free: 4.766 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007395/0.4084, allocations: 270.6 kB / 398.4 MB, free: 4.551 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005113/0.4135, allocations: 2.766 MB / 401.1 MB, free: 1.797 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02153/0.435, allocations: 5.736 MB / 406.9 MB, free: 12.05 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.3176/0.7526, allocations: 77.01 MB / 483.9 MB, free: 59.86 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01623/0.7688, allocations: 4.633 MB / 488.5 MB, free: 59.67 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00261/0.7715, allocations: 1.414 MB / 489.9 MB, free: 59.61 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01549/0.7869, allocations: 7.505 MB / 497.4 MB, free: 55.8 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.392e-05/0.787, allocations: 73.48 kB / 497.5 MB, free: 55.74 MB / 378.8 MB Notification: Performance of pre-optimization done (n=280): time 6.492e-06/0.787, allocations: 0 / 497.5 MB, free: 55.74 MB / 378.8 MB Notification: Performance of matching and sorting (n=339): time 0.1521/0.9391, allocations: 39.41 MB / 0.5243 GB, free: 23.5 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.642e-05/0.9392, allocations: 406.1 kB / 0.5247 GB, free: 23.01 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008739/0.9479, allocations: 7.656 MB / 0.5322 GB, free: 15.55 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0007857/0.9487, allocations: 77.7 kB / 0.5323 GB, free: 15.47 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003117/0.9518, allocations: 5.823 MB / 0.538 GB, free: 10.01 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001606/0.9534, allocations: 1.44 MB / 0.5394 GB, free: 8.59 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003129/0.9566, allocations: 2.338 MB / 0.5416 GB, free: 6.234 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 9.825e-05/0.9567, allocations: 484.7 kB / 0.5421 GB, free: 5.758 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003428/0.9601, allocations: 1.607 MB / 0.5437 GB, free: 4.145 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009144/0.9692, allocations: 9.08 MB / 0.5525 GB, free: 7.871 MB / 394.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01891/0.9881, allocations: 12.11 MB / 0.5644 GB, free: 8.645 MB / 410.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002744/0.9884, allocations: 44 kB / 0.5644 GB, free: 8.602 MB / 410.8 MB Notification: Performance of matching and sorting (n=1184) (initialization): time 0.1877/1.176, allocations: 12.52 MB / 0.5766 GB, free: 120.1 MB / 410.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.000152/1.176, allocations: 74.12 kB / 0.5767 GB, free: 120.1 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000237/1.177, allocations: 164.5 kB / 0.5769 GB, free: 120.1 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02326/1.2, allocations: 5.213 MB / 0.582 GB, free: 120.1 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005871/1.206, allocations: 1.922 MB / 0.5838 GB, free: 119.9 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02871/1.234, allocations: 15.11 MB / 0.5986 GB, free: 114 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008484/1.243, allocations: 0.6919 MB / 0.5993 GB, free: 114 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001617/1.244, allocations: 0.4891 MB / 0.5997 GB, free: 114 MB / 410.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 733 * Number of states: 0 () * Number of discrete variables: 66 (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 (1048): * Single equations (assignments): 1042 * 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 {(8,93,51.6%), (3,5,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.003348/1.248, allocations: 0.9954 MB / 0.6007 GB, free: 113.7 MB / 410.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001605/1.249, allocations: 0.7115 MB / 0.6014 GB, free: 113.7 MB / 410.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02235/1.272, allocations: 7.411 MB / 0.6086 GB, free: 111.6 MB / 410.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.808e-05/1.272, allocations: 37.12 kB / 0.6087 GB, free: 111.6 MB / 410.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.622e-05/1.272, allocations: 23.03 kB / 0.6087 GB, free: 111.6 MB / 410.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.924e-05/1.272, allocations: 15.94 kB / 0.6087 GB, free: 111.5 MB / 410.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04411/1.316, allocations: 18.8 MB / 0.6271 GB, free: 97.11 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.507e-05/1.316, allocations: 12.12 kB / 0.6271 GB, free: 97.09 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001992/1.318, allocations: 419.3 kB / 0.6275 GB, free: 96.68 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02117/1.339, allocations: 4.865 MB / 0.6322 GB, free: 91.82 MB / 410.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007057/1.34, allocations: 63.98 kB / 0.6323 GB, free: 91.76 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02757/1.368, allocations: 14.29 MB / 0.6463 GB, free: 77.35 MB / 410.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.34e-06/1.368, allocations: 11.94 kB / 0.6463 GB, free: 77.34 MB / 410.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02566/1.393, allocations: 9.282 MB / 0.6553 GB, free: 68.04 MB / 410.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002409/1.396, allocations: 0.6721 MB / 0.656 GB, free: 67.38 MB / 410.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001829/1.397, allocations: 60.44 kB / 0.656 GB, free: 67.32 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00476/1.402, allocations: 399.3 kB / 0.6564 GB, free: 66.93 MB / 410.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001049/1.403, allocations: 258.4 kB / 0.6567 GB, free: 66.67 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003859/1.404, allocations: 91.83 kB / 0.6568 GB, free: 66.59 MB / 410.8 MB Notification: Performance of sorting global known variables: time 0.005958/1.41, allocations: 3.376 MB / 0.6601 GB, free: 63.22 MB / 410.8 MB Notification: Performance of sort global known variables: time 8e-08/1.41, allocations: 4 kB / 0.6601 GB, free: 63.22 MB / 410.8 MB Notification: Performance of remove unused functions: time 0.009102/1.419, allocations: 2.436 MB / 0.6624 GB, free: 60.79 MB / 410.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * 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 (214): * Single equations (assignments): 208 * 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 {(7,87,55.1%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009134/1.42, allocations: 229.2 kB / 0.6627 GB, free: 60.57 MB / 410.8 MB Notification: Performance of simCode: created initialization part: time 0.01363/1.433, allocations: 7.185 MB / 0.6697 GB, free: 53.32 MB / 410.8 MB Notification: Performance of simCode: created event and clocks part: time 1.172e-05/1.433, allocations: 9 kB / 0.6697 GB, free: 53.31 MB / 410.8 MB Notification: Performance of simCode: created simulation system equations: time 0.006252/1.439, allocations: 3.092 MB / 0.6727 GB, free: 50.15 MB / 410.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006496/1.446, allocations: 0.9509 MB / 0.6736 GB, free: 49.23 MB / 410.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02722/1.473, allocations: 15.73 MB / 0.689 GB, free: 33.3 MB / 410.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006059/1.479, allocations: 4.628 MB / 0.6935 GB, free: 28.63 MB / 410.8 MB Notification: Performance of simCode: alias equations: time 0.00508/1.484, allocations: 2.156 MB / 0.6956 GB, free: 26.46 MB / 410.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001207/1.486, allocations: 388.4 kB / 0.696 GB, free: 26.09 MB / 410.8 MB Notification: Performance of SimCode: time 2.154e-06/1.486, allocations: 0 / 0.696 GB, free: 26.09 MB / 410.8 MB Notification: Performance of Templates: time 0.2776/1.763, allocations: 95.54 MB / 0.7893 GB, free: 69.99 MB / 410.8 MB " [Timeout remaining time 658] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1a/Engine1a.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.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: 9.128984779003076]