Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.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.001043/0.001043, allocations: 83.59 kB / 21.18 MB, free: 3.383 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.001022/0.001022, allocations: 165 kB / 24.56 MB, free: 12 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.8911/0.8911, allocations: 177.1 MB / 205 MB, free: 5.621 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.Engine1a,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 9.62e-07/9.62e-07, allocations: 0 / 273 MB, free: 1.512 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.341e-05/1.437e-05, allocations: 2.312 kB / 273 MB, free: 1.508 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.1344/0.1344, allocations: 18.85 MB / 291.9 MB, free: 14.28 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01058/0.145, allocations: 5.915 MB / 297.8 MB, free: 13.72 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00329/0.1483, allocations: 192.4 kB / 298 MB, free: 13.65 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007492/0.1558, allocations: 6.301 MB / 304.3 MB, free: 11.82 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007677/0.1635, allocations: 3.528 MB / 307.8 MB, free: 9.625 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002557/0.166, allocations: 1.819 MB / 309.6 MB, free: 8.492 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0122/0.1782, allocations: 14.8 MB / 324.4 MB, free: 14.15 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009529/0.1878, allocations: 7.727 MB / 332.1 MB, free: 6.445 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01325/0.201, allocations: 8.376 MB / 340.5 MB, free: 14.05 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007092/0.2081, allocations: 5.718 MB / 346.2 MB, free: 8.324 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002325/0.2104, allocations: 0.75 MB / 347 MB, free: 7.574 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003748/0.2142, allocations: 1.666 MB / 348.7 MB, free: 5.906 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005133/0.2193, allocations: 4.602 MB / 353.3 MB, free: 1.293 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.005223/0.2245, allocations: 2.809 MB / 356.1 MB, free: 14.47 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01021/0.2347, allocations: 8.974 MB / 365 MB, free: 5.469 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.2347, allocations: 0 / 365 MB, free: 5.469 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.154e-06/0.2347, allocations: 0 / 365 MB, free: 5.469 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.000412/0.2352, allocations: 0 / 365 MB, free: 5.469 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.01639/0.2515, allocations: 10.71 MB / 375.7 MB, free: 10.67 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.168e-05/0.2516, allocations: 8.031 kB / 375.8 MB, free: 10.66 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02225/0.2738, allocations: 5.985 MB / 381.7 MB, free: 4.664 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01/0.2838, allocations: 6.134 MB / 387.9 MB, free: 14.46 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003552/0.2842, allocations: 427.4 kB / 388.3 MB, free: 14.04 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00137/0.2856, allocations: 0.5858 MB / 388.9 MB, free: 13.45 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03391/0.3195, allocations: 10.36 MB / 399.2 MB, free: 1.598 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002533/0.3197, allocations: 91.3 kB / 399.3 MB, free: 1.508 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003663/0.3234, allocations: 263.8 kB / 399.6 MB, free: 1.25 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00596/0.3293, allocations: 2.667 MB / 402.3 MB, free: 14.58 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02984/0.3592, allocations: 5.269 MB / 407.5 MB, free: 9.301 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.2353/0.5945, allocations: 70.78 MB / 478.3 MB, free: 58.27 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008982/0.6034, allocations: 3.866 MB / 482.2 MB, free: 58.09 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001774/0.6052, allocations: 1.085 MB / 483.3 MB, free: 58.03 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01071/0.6159, allocations: 7.401 MB / 490.7 MB, free: 56.07 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.16e-05/0.616, allocations: 63.55 kB / 490.7 MB, free: 56.01 MB / 378.8 MB Notification: Performance of pre-optimization done (n=248): time 7.184e-06/0.616, allocations: 0 / 490.7 MB, free: 56.01 MB / 378.8 MB Notification: Performance of matching and sorting (n=298): time 0.04891/0.6649, allocations: 24.65 MB / 0.5033 GB, free: 39.61 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.305e-05/0.665, allocations: 397.3 kB / 0.5037 GB, free: 39.14 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005173/0.6701, allocations: 6.199 MB / 0.5097 GB, free: 33.17 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0003437/0.6705, allocations: 73.7 kB / 0.5098 GB, free: 33.09 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002124/0.6726, allocations: 5.568 MB / 0.5152 GB, free: 28.08 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.000815/0.6734, allocations: 1.202 MB / 0.5164 GB, free: 26.89 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001393/0.6748, allocations: 1.939 MB / 0.5183 GB, free: 24.94 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 3.471e-05/0.6748, allocations: 480.8 kB / 0.5188 GB, free: 24.47 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001401/0.6763, allocations: 1.041 MB / 0.5198 GB, free: 23.42 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003/0.6792, allocations: 8.682 MB / 0.5283 GB, free: 11.39 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006391/0.6856, allocations: 10.38 MB / 0.5384 GB, free: 14.06 MB / 394.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001134/0.6858, allocations: 52 kB / 0.5384 GB, free: 14.01 MB / 394.8 MB Notification: Performance of matching and sorting (n=1180) (initialization): time 0.01194/0.6977, allocations: 8.488 MB / 0.5467 GB, free: 5.457 MB / 394.8 MB Notification: Performance of prepare postOptimizeDAE: time 7.5e-05/0.6978, allocations: 80 kB / 0.5468 GB, free: 5.379 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001337/0.6979, allocations: 176 kB / 0.547 GB, free: 5.207 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003495/0.7014, allocations: 1.628 MB / 0.5486 GB, free: 3.566 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004092/0.7055, allocations: 2.07 MB / 0.5506 GB, free: 1.492 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007884/0.7134, allocations: 7.24 MB / 0.5577 GB, free: 10 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005491/0.7189, allocations: 0.6234 MB / 0.5583 GB, free: 9.383 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001114/0.72, allocations: 0.5077 MB / 0.5588 GB, free: 8.875 MB / 410.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 792 * 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 (1106): * Single equations (assignments): 1099 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * 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): 0 systems * 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,76.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.002539/0.7225, allocations: 0.8828 MB / 0.5596 GB, free: 7.977 MB / 410.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001199/0.7237, allocations: 0.6952 MB / 0.5603 GB, free: 7.277 MB / 410.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004628/0.7283, allocations: 2.981 MB / 0.5632 GB, free: 4.254 MB / 410.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-05/0.7284, allocations: 32 kB / 0.5632 GB, free: 4.223 MB / 410.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.292e-05/0.7284, allocations: 11.94 kB / 0.5632 GB, free: 4.211 MB / 410.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.798e-05/0.7284, allocations: 11.95 kB / 0.5633 GB, free: 4.199 MB / 410.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01893/0.7473, allocations: 11.38 MB / 0.5744 GB, free: 8.465 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.002e-05/0.7474, allocations: 20 kB / 0.5744 GB, free: 8.445 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001264/0.7486, allocations: 0.5033 MB / 0.5749 GB, free: 7.945 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003412/0.752, allocations: 1.379 MB / 0.5762 GB, free: 6.555 MB / 426.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003141/0.7524, allocations: 80.06 kB / 0.5763 GB, free: 6.477 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006318/0.7587, allocations: 6.213 MB / 0.5824 GB, free: 12 kB / 426.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.1294/0.8881, allocations: 28.98 kB / 0.5824 GB, free: 135.9 MB / 426.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007736/0.8958, allocations: 5.153 MB / 0.5874 GB, free: 133.9 MB / 426.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001662/0.8975, allocations: 0.6893 MB / 0.5881 GB, free: 133.9 MB / 426.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007167/0.8982, allocations: 76.2 kB / 0.5882 GB, free: 133.9 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001698/0.8999, allocations: 273.1 kB / 0.5884 GB, free: 133.9 MB / 426.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004607/0.9003, allocations: 263.3 kB / 0.5887 GB, free: 133.9 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001732/0.9005, allocations: 102.3 kB / 0.5888 GB, free: 133.9 MB / 426.8 MB Notification: Performance of sorting global known variables: time 0.004234/0.9047, allocations: 2.885 MB / 0.5916 GB, free: 133.7 MB / 426.8 MB Notification: Performance of sort global known variables: time 2.4e-07/0.9048, allocations: 1.531 kB / 0.5916 GB, free: 133.7 MB / 426.8 MB Notification: Performance of remove unused functions: time 0.006292/0.911, allocations: 2.02 MB / 0.5936 GB, free: 133.7 MB / 426.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 89 * 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 (246): * Single equations (assignments): 239 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * 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): 0 systems * 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,38,76.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005949/0.9116, allocations: 256.3 kB / 0.5938 GB, free: 133.6 MB / 426.8 MB Notification: Performance of simCode: created initialization part: time 0.006881/0.9185, allocations: 5.082 MB / 0.5988 GB, free: 132.9 MB / 426.8 MB Notification: Performance of simCode: created event and clocks part: time 1.281e-05/0.9185, allocations: 3.875 kB / 0.5988 GB, free: 132.9 MB / 426.8 MB Notification: Performance of simCode: created simulation system equations: time 0.002085/0.9206, allocations: 1.827 MB / 0.6006 GB, free: 132.4 MB / 426.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003722/0.9243, allocations: 0.9704 MB / 0.6015 GB, free: 132.3 MB / 426.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01658/0.9409, allocations: 14.35 MB / 0.6155 GB, free: 125.8 MB / 426.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002551/0.9435, allocations: 2.29 MB / 0.6178 GB, free: 124.6 MB / 426.8 MB Notification: Performance of simCode: alias equations: time 0.003838/0.9473, allocations: 2.206 MB / 0.6199 GB, free: 123.4 MB / 426.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000849/0.9482, allocations: 394 kB / 0.6203 GB, free: 123.1 MB / 426.8 MB Notification: Performance of SimCode: time 2.245e-06/0.9482, allocations: 0 / 0.6203 GB, free: 123.1 MB / 426.8 MB Notification: Performance of Templates: time 0.07716/1.025, allocations: 66.67 MB / 0.6854 GB, free: 59.68 MB / 426.8 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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","",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.004444031044841]