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.001619/0.001619, allocations: 75.59 kB / 21.18 MB, free: 3.391 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.001519/0.001519, allocations: 161 kB / 24.56 MB, free: 20 kB / 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.9617/0.9617, allocations: 177.1 MB / 205 MB, free: 5.285 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.373e-06/1.373e-06, allocations: 0 / 273 MB, free: 1.363 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.224e-05/2.362e-05, allocations: 2.312 kB / 273 MB, free: 1.359 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.1301/0.1301, allocations: 19.95 MB / 293 MB, free: 14.28 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01027/0.1404, allocations: 6.117 MB / 299.1 MB, free: 13.5 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002242/0.1426, allocations: 205 kB / 299.3 MB, free: 13.43 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006445/0.1491, allocations: 6.842 MB / 306.1 MB, free: 11.25 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005491/0.1546, allocations: 3.633 MB / 309.8 MB, free: 8.957 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002177/0.1567, allocations: 1.916 MB / 311.7 MB, free: 7.758 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00972/0.1665, allocations: 15.1 MB / 326.8 MB, free: 11.86 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006395/0.1729, allocations: 8.072 MB / 334.8 MB, free: 3.707 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005804/0.1787, allocations: 5.812 MB / 340.7 MB, free: 13.88 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005579/0.1842, allocations: 5.955 MB / 346.6 MB, free: 7.91 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001136/0.1854, allocations: 0.7773 MB / 347.4 MB, free: 7.133 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002375/0.1878, allocations: 1.697 MB / 349.1 MB, free: 5.434 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002875/0.1906, allocations: 4.781 MB / 353.9 MB, free: 0.6367 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002976/0.1936, allocations: 2.922 MB / 356.8 MB, free: 13.71 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007552/0.2012, allocations: 9.278 MB / 366.1 MB, free: 4.398 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.2012, allocations: 0 / 366.1 MB, free: 4.398 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.2012, allocations: 0 / 366.1 MB, free: 4.398 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001147/0.2013, allocations: 0 / 366.1 MB, free: 4.398 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.01247/0.2138, allocations: 11.01 MB / 377.1 MB, free: 9.305 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.589e-05/0.2138, allocations: 8.031 kB / 377.1 MB, free: 9.297 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02156/0.2353, allocations: 6.258 MB / 383.3 MB, free: 3.027 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009696/0.245, allocations: 7.159 MB / 390.5 MB, free: 11.78 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002296/0.2453, allocations: 448 kB / 390.9 MB, free: 11.34 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000813/0.2461, allocations: 0.6055 MB / 391.5 MB, free: 10.74 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01761/0.2637, allocations: 10.68 MB / 402.2 MB, free: 14.54 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000286/0.264, allocations: 87.31 kB / 402.3 MB, free: 14.46 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009567/0.2649, allocations: 287.7 kB / 402.6 MB, free: 14.18 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002799/0.2677, allocations: 2.862 MB / 405.5 MB, free: 11.31 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01337/0.2811, allocations: 5.582 MB / 411 MB, free: 5.723 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.2934/0.5745, allocations: 71.66 MB / 482.7 MB, free: 56.74 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01078/0.5852, allocations: 5.161 MB / 487.9 MB, free: 56.55 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002057/0.5873, allocations: 1.449 MB / 489.3 MB, free: 56.49 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009685/0.597, allocations: 7.667 MB / 497 MB, free: 53.89 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.084e-05/0.597, allocations: 68.77 kB / 497 MB, free: 53.83 MB / 378.8 MB Notification: Performance of pre-optimization done (n=293): time 5.681e-06/0.597, allocations: 3.375 kB / 497 MB, free: 53.83 MB / 378.8 MB Notification: Performance of matching and sorting (n=359): time 0.08701/0.684, allocations: 41.01 MB / 0.5254 GB, free: 20.08 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.047e-05/0.6841, allocations: 402.2 kB / 0.5258 GB, free: 19.6 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006465/0.6906, allocations: 6.212 MB / 0.5319 GB, free: 13.62 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0008105/0.6914, allocations: 82.56 kB / 0.532 GB, free: 13.53 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002312/0.6937, allocations: 5.64 MB / 0.5375 GB, free: 8.465 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001544/0.6952, allocations: 1.419 MB / 0.5389 GB, free: 7.062 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001939/0.6972, allocations: 1.994 MB / 0.5408 GB, free: 5.055 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 3.999e-05/0.6972, allocations: 476.8 kB / 0.5413 GB, free: 4.586 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002331/0.6995, allocations: 1.58 MB / 0.5428 GB, free: 3 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005715/0.7053, allocations: 8.902 MB / 0.5515 GB, free: 6.918 MB / 394.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01079/0.7161, allocations: 11.26 MB / 0.5625 GB, free: 8.766 MB / 410.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001367/0.7162, allocations: 48 kB / 0.5625 GB, free: 8.719 MB / 410.8 MB Notification: Performance of matching and sorting (n=1220) (initialization): time 0.1581/0.8743, allocations: 12.72 MB / 0.575 GB, free: 118.6 MB / 410.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001093/0.8744, allocations: 79.84 kB / 0.575 GB, free: 118.6 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002155/0.8747, allocations: 164.5 kB / 0.5752 GB, free: 118.6 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01485/0.8895, allocations: 5.393 MB / 0.5805 GB, free: 118.5 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004401/0.8939, allocations: 2 MB / 0.5824 GB, free: 118.4 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01835/0.9123, allocations: 14.77 MB / 0.5969 GB, free: 112.6 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006182/0.9184, allocations: 0.7024 MB / 0.5975 GB, free: 112.6 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001172/0.9196, allocations: 0.5032 MB / 0.598 GB, free: 112.6 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.00284/0.9225, allocations: 0.8807 MB / 0.5989 GB, free: 112.2 MB / 410.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001533/0.924, allocations: 0.7431 MB / 0.5996 GB, free: 112.2 MB / 410.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01296/0.937, allocations: 7.694 MB / 0.6071 GB, free: 110.4 MB / 410.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.355e-05/0.937, allocations: 37.5 kB / 0.6072 GB, free: 110.4 MB / 410.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.231e-05/0.937, allocations: 20.41 kB / 0.6072 GB, free: 110.4 MB / 410.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.448e-05/0.9371, allocations: 19.88 kB / 0.6072 GB, free: 110.4 MB / 410.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02678/0.9638, allocations: 17.62 MB / 0.6244 GB, free: 95.64 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.729e-05/0.9639, allocations: 7.938 kB / 0.6244 GB, free: 95.63 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001396/0.9653, allocations: 463.3 kB / 0.6249 GB, free: 95.18 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01204/0.9773, allocations: 5.069 MB / 0.6298 GB, free: 90.1 MB / 410.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005872/0.9779, allocations: 67.98 kB / 0.6299 GB, free: 90.04 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01626/0.9941, allocations: 13.97 MB / 0.6435 GB, free: 75.95 MB / 410.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.1e-06/0.9942, allocations: 15.88 kB / 0.6435 GB, free: 75.93 MB / 410.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0156/1.01, allocations: 9.481 MB / 0.6528 GB, free: 66.6 MB / 410.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00191/1.012, allocations: 0.6867 MB / 0.6535 GB, free: 65.92 MB / 410.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001018/1.013, allocations: 67.92 kB / 0.6535 GB, free: 65.85 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002647/1.015, allocations: 415.3 kB / 0.6539 GB, free: 65.45 MB / 410.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007529/1.016, allocations: 266.6 kB / 0.6542 GB, free: 65.18 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002106/1.016, allocations: 99.09 kB / 0.6543 GB, free: 65.09 MB / 410.8 MB Notification: Performance of sorting global known variables: time 0.003784/1.02, allocations: 2.904 MB / 0.6571 GB, free: 62.2 MB / 410.8 MB Notification: Performance of sort global known variables: time 7e-08/1.02, allocations: 2.844 kB / 0.6571 GB, free: 62.2 MB / 410.8 MB Notification: Performance of remove unused functions: time 0.007998/1.028, allocations: 2.491 MB / 0.6595 GB, free: 59.72 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.0006867/1.029, allocations: 232.5 kB / 0.6598 GB, free: 59.5 MB / 410.8 MB Notification: Performance of simCode: created initialization part: time 0.009843/1.039, allocations: 6.933 MB / 0.6665 GB, free: 52.5 MB / 410.8 MB Notification: Performance of simCode: created event and clocks part: time 7.795e-06/1.039, allocations: 4 kB / 0.6665 GB, free: 52.5 MB / 410.8 MB Notification: Performance of simCode: created simulation system equations: time 0.003926/1.043, allocations: 3.085 MB / 0.6696 GB, free: 49.35 MB / 410.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00408/1.047, allocations: 0.9765 MB / 0.6705 GB, free: 48.41 MB / 410.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.021/1.068, allocations: 16.21 MB / 0.6863 GB, free: 31.99 MB / 410.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002636/1.07, allocations: 2.434 MB / 0.6887 GB, free: 29.52 MB / 410.8 MB Notification: Performance of simCode: alias equations: time 0.003973/1.074, allocations: 2.228 MB / 0.6909 GB, free: 27.29 MB / 410.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001059/1.075, allocations: 404.4 kB / 0.6913 GB, free: 26.89 MB / 410.8 MB Notification: Performance of SimCode: time 2.083e-06/1.075, allocations: 4 kB / 0.6913 GB, free: 26.89 MB / 410.8 MB Notification: Performance of Templates: time 0.2334/1.309, allocations: 100.1 MB / 0.789 GB, free: 87.6 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: 6.007325738668442]