Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.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.0009703/0.0009703, allocations: 79.69 kB / 21.7 MB, free: 2.848 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.001266/0.001266, allocations: 167.7 kB / 24.99 MB, free: 8.219 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.9697/0.9697, allocations: 177 MB / 205.2 MB, free: 5.547 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.Mechanics.MultiBody.Examples.Loops.Engine1b,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5028,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.523e-06/1.523e-06, allocations: 0 / 273 MB, free: 1.699 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.933e-05/2.085e-05, allocations: 2.312 kB / 273 MB, free: 1.695 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.126/0.126, allocations: 19.88 MB / 292.9 MB, free: 13.47 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01208/0.1381, allocations: 6.104 MB / 299 MB, free: 13.08 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003541/0.1417, allocations: 201.9 kB / 299.2 MB, free: 13.01 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006646/0.1483, allocations: 6.837 MB / 306 MB, free: 10.89 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006505/0.1548, allocations: 3.623 MB / 309.7 MB, free: 8.594 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002507/0.1573, allocations: 1.921 MB / 311.6 MB, free: 7.391 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.01052/0.1678, allocations: 15.09 MB / 326.7 MB, free: 11.92 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007334/0.1752, allocations: 8.072 MB / 334.8 MB, free: 3.766 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007792/0.183, allocations: 5.808 MB / 340.6 MB, free: 13.95 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006036/0.189, allocations: 5.963 MB / 346.5 MB, free: 7.969 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001046/0.1901, allocations: 0.7812 MB / 347.3 MB, free: 7.188 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00227/0.1923, allocations: 1.693 MB / 349 MB, free: 5.492 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002895/0.1952, allocations: 4.773 MB / 353.8 MB, free: 0.7031 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002449/0.1977, allocations: 2.933 MB / 356.7 MB, free: 13.76 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008001/0.2057, allocations: 9.266 MB / 366 MB, free: 4.461 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.229e-06/0.2057, allocations: 0 / 366 MB, free: 4.461 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.2057, allocations: 0 / 366 MB, free: 4.461 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002/0.2059, allocations: 0 / 366 MB, free: 4.461 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.01331/0.2192, allocations: 11.01 MB / 377 MB, free: 9.359 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.973e-05/0.2192, allocations: 11.98 kB / 377 MB, free: 9.348 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0221/0.2413, allocations: 6.257 MB / 383.3 MB, free: 3.078 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01027/0.2516, allocations: 7.157 MB / 390.4 MB, free: 11.84 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003512/0.2519, allocations: 448 kB / 390.8 MB, free: 11.4 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007457/0.2527, allocations: 0.6171 MB / 391.5 MB, free: 10.78 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01463/0.2673, allocations: 10.68 MB / 402.1 MB, free: 14.59 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001916/0.2675, allocations: 99.23 kB / 402.2 MB, free: 14.49 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004882/0.268, allocations: 275.8 kB / 402.5 MB, free: 14.22 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002946/0.271, allocations: 2.858 MB / 405.4 MB, free: 11.36 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01154/0.2825, allocations: 5.58 MB / 411 MB, free: 5.77 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.2592/0.5417, allocations: 71.66 MB / 482.6 MB, free: 62.86 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01174/0.5535, allocations: 5.164 MB / 487.8 MB, free: 62.67 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002127/0.5556, allocations: 1.446 MB / 489.2 MB, free: 62.62 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0097/0.5653, allocations: 7.655 MB / 496.9 MB, free: 59.07 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.6e-05/0.5653, allocations: 79.58 kB / 497 MB, free: 59.01 MB / 378.8 MB Notification: Performance of pre-optimization done (n=293): time 4.97e-06/0.5653, allocations: 0 / 497 MB, free: 59.01 MB / 378.8 MB Notification: Performance of matching and sorting (n=359): time 0.09251/0.6578, allocations: 41.01 MB / 0.5254 GB, free: 23.89 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.486e-05/0.6579, allocations: 398.2 kB / 0.5257 GB, free: 23.41 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006333/0.6643, allocations: 6.213 MB / 0.5318 GB, free: 17.41 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0007407/0.665, allocations: 77.7 kB / 0.5319 GB, free: 17.33 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002129/0.6671, allocations: 5.641 MB / 0.5374 GB, free: 12.16 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001303/0.6685, allocations: 1.421 MB / 0.5388 GB, free: 10.76 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001788/0.6702, allocations: 1.991 MB / 0.5407 GB, free: 8.754 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 3.974e-05/0.6703, allocations: 484.8 kB / 0.5412 GB, free: 8.277 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002306/0.6726, allocations: 1.588 MB / 0.5427 GB, free: 6.684 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004737/0.6773, allocations: 8.892 MB / 0.5514 GB, free: 10.53 MB / 394.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01035/0.6877, allocations: 11.26 MB / 0.5624 GB, free: 12.08 MB / 410.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001579/0.6878, allocations: 48 kB / 0.5625 GB, free: 12.03 MB / 410.8 MB Notification: Performance of matching and sorting (n=1220) (initialization): time 0.1554/0.8433, allocations: 12.72 MB / 0.5749 GB, free: 122.9 MB / 410.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001036/0.8434, allocations: 76.14 kB / 0.5749 GB, free: 122.9 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002191/0.8436, allocations: 164.6 kB / 0.5751 GB, free: 122.9 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0143/0.8579, allocations: 5.408 MB / 0.5804 GB, free: 122.8 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004379/0.8623, allocations: 2.003 MB / 0.5823 GB, free: 122.7 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01799/0.8803, allocations: 14.76 MB / 0.5968 GB, free: 116.8 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005479/0.8857, allocations: 0.7058 MB / 0.5974 GB, free: 116.8 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008337/0.8866, allocations: 0.5029 MB / 0.5979 GB, free: 116.8 MB / 410.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 749 * 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 (1081): * Single equations (assignments): 1075 * 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,96,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.002353/0.8889, allocations: 0.8762 MB / 0.5988 GB, free: 116.5 MB / 410.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001203/0.8901, allocations: 0.744 MB / 0.5995 GB, free: 116.5 MB / 410.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01317/0.9033, allocations: 7.695 MB / 0.607 GB, free: 116.1 MB / 410.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.657e-05/0.9033, allocations: 35.41 kB / 0.6071 GB, free: 116.1 MB / 410.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.869e-05/0.9033, allocations: 18.34 kB / 0.6071 GB, free: 116.1 MB / 410.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.291e-05/0.9034, allocations: 24.77 kB / 0.6071 GB, free: 116.1 MB / 410.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02478/0.9281, allocations: 17.62 MB / 0.6243 GB, free: 102.4 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.441e-05/0.9282, allocations: 8 kB / 0.6243 GB, free: 102.4 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001136/0.9293, allocations: 467.3 kB / 0.6248 GB, free: 102 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01153/0.9408, allocations: 5.061 MB / 0.6297 GB, free: 96.92 MB / 410.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000309/0.9411, allocations: 67.81 kB / 0.6298 GB, free: 96.86 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01648/0.9576, allocations: 13.99 MB / 0.6434 GB, free: 82.76 MB / 410.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.92e-06/0.9576, allocations: 19.19 kB / 0.6435 GB, free: 82.75 MB / 410.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01515/0.9728, allocations: 9.483 MB / 0.6527 GB, free: 73.41 MB / 410.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0014/0.9742, allocations: 0.6817 MB / 0.6534 GB, free: 72.73 MB / 410.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006845/0.9749, allocations: 67.98 kB / 0.6534 GB, free: 72.67 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002061/0.9769, allocations: 415.3 kB / 0.6538 GB, free: 72.26 MB / 410.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006847/0.9776, allocations: 270.6 kB / 0.6541 GB, free: 72 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001898/0.9778, allocations: 91.83 kB / 0.6542 GB, free: 71.91 MB / 410.8 MB Notification: Performance of sorting global known variables: time 0.003191/0.981, allocations: 2.908 MB / 0.657 GB, free: 69.02 MB / 410.8 MB Notification: Performance of sort global known variables: time 2.11e-07/0.981, allocations: 4.031 kB / 0.657 GB, free: 69.02 MB / 410.8 MB Notification: Performance of remove unused functions: time 0.005539/0.9865, allocations: 2.487 MB / 0.6595 GB, free: 66.54 MB / 410.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * 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 (231): * Single equations (assignments): 225 * 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,90,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.0005436/0.9871, allocations: 235 kB / 0.6597 GB, free: 66.31 MB / 410.8 MB Notification: Performance of simCode: created initialization part: time 0.00879/0.9959, allocations: 6.926 MB / 0.6664 GB, free: 59.32 MB / 410.8 MB Notification: Performance of simCode: created event and clocks part: time 5.651e-06/0.9959, allocations: 0 / 0.6664 GB, free: 59.32 MB / 410.8 MB Notification: Performance of simCode: created simulation system equations: time 0.003835/0.9997, allocations: 3.082 MB / 0.6695 GB, free: 56.18 MB / 410.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003521/1.003, allocations: 0.9783 MB / 0.6704 GB, free: 55.24 MB / 410.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02039/1.024, allocations: 16.23 MB / 0.6863 GB, free: 38.81 MB / 410.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002088/1.026, allocations: 2.434 MB / 0.6886 GB, free: 36.35 MB / 410.8 MB Notification: Performance of simCode: alias equations: time 0.003661/1.029, allocations: 2.232 MB / 0.6908 GB, free: 34.11 MB / 410.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009099/1.03, allocations: 404.4 kB / 0.6912 GB, free: 33.71 MB / 410.8 MB Notification: Performance of SimCode: time 2.605e-06/1.03, allocations: 0 / 0.6912 GB, free: 33.71 MB / 410.8 MB Notification: Performance of Templates: time 0.2254/1.256, allocations: 100.1 MB / 0.7889 GB, free: 78.04 MB / 410.8 MB " [Timeout remaining time 659] make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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: 5.800270807929337]