Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.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.002536/0.002536, allocations: 99.53 kB / 20.96 MB, free: 3.457 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.002892/0.002892, allocations: 156.8 kB / 24.27 MB, free: 156 kB / 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 1.586/1.586, allocations: 177 MB / 204.4 MB, free: 5.598 MB / 186.7 MB " [Timeout remaining time 178] 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.Engine1a,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.683e-06/1.683e-06, allocations: 3.938 kB / 272.2 MB, free: 1.762 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.618e-05/2.786e-05, allocations: 2.312 kB / 272.2 MB, free: 1.758 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.1401/0.1402, allocations: 18.75 MB / 291 MB, free: 14.01 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0109/0.1511, allocations: 5.897 MB / 296.9 MB, free: 13.52 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003231/0.1543, allocations: 190.4 kB / 297.1 MB, free: 13.48 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01033/0.1646, allocations: 6.28 MB / 303.3 MB, free: 11.67 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007446/0.1721, allocations: 3.525 MB / 306.9 MB, free: 9.52 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003013/0.1751, allocations: 1.816 MB / 308.7 MB, free: 8.387 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.01472/0.1898, allocations: 14.82 MB / 323.5 MB, free: 14.12 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01199/0.2018, allocations: 7.718 MB / 331.2 MB, free: 6.633 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01078/0.2126, allocations: 5.559 MB / 336.8 MB, free: 1.062 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009893/0.2225, allocations: 5.768 MB / 342.5 MB, free: 11.28 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001852/0.2243, allocations: 0.7461 MB / 343.3 MB, free: 10.54 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003824/0.2281, allocations: 1.658 MB / 345 MB, free: 8.875 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005711/0.2339, allocations: 4.582 MB / 349.5 MB, free: 4.281 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.005271/0.2391, allocations: 2.801 MB / 352.3 MB, free: 1.473 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01922/0.2583, allocations: 14.05 MB / 366.4 MB, free: 3.375 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.2583, allocations: 0 / 366.4 MB, free: 3.375 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.924e-06/0.2583, allocations: 8 kB / 366.4 MB, free: 3.367 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0004004/0.2587, allocations: 0 / 366.4 MB, free: 3.367 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.03079/0.2895, allocations: 11.43 MB / 377.8 MB, free: 7.848 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.239e-05/0.2896, allocations: 11.98 kB / 377.8 MB, free: 7.836 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05207/0.3417, allocations: 6.192 MB / 384 MB, free: 1.633 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02164/0.3633, allocations: 7.137 MB / 391.2 MB, free: 10.42 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005107/0.3638, allocations: 427.4 kB / 391.6 MB, free: 10 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00219/0.366, allocations: 0.582 MB / 392.2 MB, free: 9.422 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02888/0.3949, allocations: 10.99 MB / 403.2 MB, free: 12.94 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003378/0.3952, allocations: 91.25 kB / 403.2 MB, free: 12.85 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001005/0.3962, allocations: 263.8 kB / 403.5 MB, free: 12.59 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005318/0.4015, allocations: 2.768 MB / 406.3 MB, free: 9.82 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02186/0.4234, allocations: 5.741 MB / 412 MB, free: 4.062 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.3137/0.7371, allocations: 77.01 MB / 489 MB, free: 53.46 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01616/0.7532, allocations: 4.629 MB / 493.6 MB, free: 52.73 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002884/0.7561, allocations: 1.427 MB / 495.1 MB, free: 52.46 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0159/0.772, allocations: 7.497 MB / 0.4908 GB, free: 48.48 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.482e-05/0.772, allocations: 73.7 kB / 0.4909 GB, free: 48.42 MB / 378.8 MB Notification: Performance of pre-optimization done (n=280): time 6.331e-06/0.7721, allocations: 0 / 0.4909 GB, free: 48.42 MB / 378.8 MB Notification: Performance of matching and sorting (n=339): time 0.1535/0.9255, allocations: 39.4 MB / 0.5293 GB, free: 15.29 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.139e-05/0.9256, allocations: 394.1 kB / 0.5297 GB, free: 14.82 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008542/0.9341, allocations: 7.578 MB / 0.5371 GB, free: 7.434 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0007477/0.9349, allocations: 77.7 kB / 0.5372 GB, free: 7.352 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002791/0.9377, allocations: 5.818 MB / 0.5429 GB, free: 1.895 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001492/0.9392, allocations: 1.429 MB / 0.5443 GB, free: 492 kB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003754/0.9429, allocations: 2.357 MB / 0.5466 GB, free: 14.11 MB / 394.8 MB Notification: Performance of setup shared object (initialization): time 0.0002473/0.9432, allocations: 480.7 kB / 0.547 GB, free: 13.64 MB / 394.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004051/0.9472, allocations: 1.611 MB / 0.5486 GB, free: 12.02 MB / 394.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0122/0.9594, allocations: 9.076 MB / 0.5575 GB, free: 15.75 MB / 410.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01921/0.9786, allocations: 12.11 MB / 0.5693 GB, free: 0.5234 MB / 410.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001768/0.9788, allocations: 44 kB / 0.5693 GB, free: 492 kB / 410.8 MB Notification: Performance of matching and sorting (n=1184) (initialization): time 0.1612/1.14, allocations: 12.52 MB / 0.5816 GB, free: 118.8 MB / 410.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001222/1.14, allocations: 73.28 kB / 0.5816 GB, free: 118.8 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002359/1.14, allocations: 160 kB / 0.5818 GB, free: 118.8 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0224/1.163, allocations: 5.201 MB / 0.5869 GB, free: 118.7 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005693/1.168, allocations: 1.926 MB / 0.5887 GB, free: 118.6 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02776/1.196, allocations: 15.11 MB / 0.6035 GB, free: 112.1 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008137/1.204, allocations: 0.6841 MB / 0.6042 GB, free: 111.9 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00134/1.206, allocations: 0.4899 MB / 0.6046 GB, free: 111.9 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.003417/1.209, allocations: 0.9921 MB / 0.6056 GB, free: 111.5 MB / 410.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001614/1.211, allocations: 0.7129 MB / 0.6063 GB, free: 111.2 MB / 410.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0222/1.233, allocations: 7.417 MB / 0.6136 GB, free: 104.8 MB / 410.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.878e-05/1.233, allocations: 35.94 kB / 0.6136 GB, free: 104.8 MB / 410.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.636e-05/1.233, allocations: 20 kB / 0.6136 GB, free: 104.8 MB / 410.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.684e-05/1.233, allocations: 19.94 kB / 0.6136 GB, free: 104.7 MB / 410.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04179/1.275, allocations: 18.82 MB / 0.632 GB, free: 85.66 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-05/1.275, allocations: 4 kB / 0.632 GB, free: 85.65 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001837/1.277, allocations: 420.1 kB / 0.6324 GB, free: 85.24 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02134/1.298, allocations: 4.868 MB / 0.6372 GB, free: 80.37 MB / 410.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006917/1.299, allocations: 67.92 kB / 0.6372 GB, free: 80.3 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02667/1.325, allocations: 14.29 MB / 0.6512 GB, free: 65.77 MB / 410.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.372e-06/1.325, allocations: 11.94 kB / 0.6512 GB, free: 65.76 MB / 410.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02578/1.351, allocations: 9.287 MB / 0.6603 GB, free: 56.25 MB / 410.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002295/1.353, allocations: 0.6667 MB / 0.6609 GB, free: 55.59 MB / 410.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001572/1.355, allocations: 64.42 kB / 0.661 GB, free: 55.52 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004308/1.359, allocations: 399.3 kB / 0.6614 GB, free: 55.13 MB / 410.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009534/1.36, allocations: 254.5 kB / 0.6616 GB, free: 54.88 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002853/1.361, allocations: 92 kB / 0.6617 GB, free: 54.79 MB / 410.8 MB Notification: Performance of sorting global known variables: time 0.005045/1.366, allocations: 3.368 MB / 0.665 GB, free: 51.44 MB / 410.8 MB Notification: Performance of sort global known variables: time 1e-07/1.366, allocations: 0 / 0.665 GB, free: 51.44 MB / 410.8 MB Notification: Performance of remove unused functions: time 0.009753/1.375, allocations: 2.409 MB / 0.6673 GB, free: 49.04 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.0009668/1.376, allocations: 229.8 kB / 0.6675 GB, free: 48.82 MB / 410.8 MB Notification: Performance of simCode: created initialization part: time 0.01356/1.39, allocations: 7.189 MB / 0.6746 GB, free: 41.56 MB / 410.8 MB Notification: Performance of simCode: created event and clocks part: time 1.117e-05/1.39, allocations: 0 / 0.6746 GB, free: 41.56 MB / 410.8 MB Notification: Performance of simCode: created simulation system equations: time 0.006574/1.396, allocations: 3.107 MB / 0.6776 GB, free: 38.39 MB / 410.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006157/1.403, allocations: 0.9377 MB / 0.6785 GB, free: 37.49 MB / 410.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02758/1.43, allocations: 15.71 MB / 0.6939 GB, free: 21.57 MB / 410.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006152/1.436, allocations: 4.632 MB / 0.6984 GB, free: 16.9 MB / 410.8 MB Notification: Performance of simCode: alias equations: time 0.005181/1.442, allocations: 2.152 MB / 0.7005 GB, free: 14.74 MB / 410.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001428/1.443, allocations: 392.4 kB / 0.7009 GB, free: 14.36 MB / 410.8 MB Notification: Performance of SimCode: time 1.472e-06/1.443, allocations: 3.938 kB / 0.7009 GB, free: 14.35 MB / 410.8 MB Notification: Performance of Templates: time 0.2553/1.698, allocations: 95.41 MB / 0.794 GB, free: 75.68 MB / 426.8 MB " [Timeout remaining time 658] make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1a/Engine1a.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 8.93982741900254]