Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.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.001491/0.001491, allocations: 72.08 kB / 21.69 MB, free: 2.863 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.004315/0.004315, allocations: 140.3 kB / 24.97 MB, free: 8.359 MB / 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 0.9472/0.9472, allocations: 173.4 MB / 201.5 MB, free: 9.332 MB / 186.7 MB " [Timeout remaining time 179] 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.Engine1b,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5028,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_4.0.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.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.914e-06/1.914e-06, allocations: 3.938 kB / 268.1 MB, free: 6.688 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.155e-05/2.346e-05, allocations: 6.25 kB / 268.1 MB, free: 6.68 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.01455/0.01458, allocations: 19.96 MB / 288.1 MB, free: 2.629 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1153/0.1299, allocations: 6.097 MB / 294.2 MB, free: 14.01 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002763/0.1327, allocations: 203.2 kB / 294.4 MB, free: 14.01 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007969/0.1406, allocations: 6.853 MB / 301.2 MB, free: 13.34 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007113/0.1477, allocations: 3.672 MB / 304.9 MB, free: 11.67 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002536/0.1503, allocations: 1.913 MB / 306.8 MB, free: 10.47 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.01109/0.1614, allocations: 14.58 MB / 321.4 MB, free: 1.922 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00898/0.1703, allocations: 8.093 MB / 329.5 MB, free: 10.2 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009479/0.1798, allocations: 5.82 MB / 335.3 MB, free: 4.707 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007208/0.187, allocations: 5.973 MB / 341.3 MB, free: 15.16 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001968/0.189, allocations: 0.7798 MB / 342.1 MB, free: 14.39 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003234/0.1922, allocations: 1.698 MB / 343.8 MB, free: 12.73 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004934/0.1972, allocations: 4.815 MB / 348.6 MB, free: 8.055 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.005412/0.2026, allocations: 2.944 MB / 351.5 MB, free: 5.238 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01085/0.2134, allocations: 9.342 MB / 360.9 MB, free: 12.27 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.272e-06/0.2134, allocations: 0 / 360.9 MB, free: 12.27 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.714e-06/0.2134, allocations: 4 kB / 360.9 MB, free: 12.27 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0003989/0.2138, allocations: 3.938 kB / 360.9 MB, free: 12.27 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: 2489 * Number of variables: 2489 Notification: Performance of Generate backend data structure: time 0.01694/0.2308, allocations: 11.02 MB / 371.9 MB, free: 1.305 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.376e-05/0.2308, allocations: 8.922 kB / 371.9 MB, free: 1.297 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02428/0.2551, allocations: 6.259 MB / 378.2 MB, free: 11.08 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01157/0.2667, allocations: 7.168 MB / 385.3 MB, free: 3.906 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002714/0.2669, allocations: 452.3 kB / 385.8 MB, free: 3.48 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009562/0.2679, allocations: 0.6132 MB / 386.4 MB, free: 2.867 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01345/0.2814, allocations: 10.68 MB / 397.1 MB, free: 6.672 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001661/0.2815, allocations: 91.36 kB / 397.2 MB, free: 6.582 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004823/0.282, allocations: 279.8 kB / 397.4 MB, free: 6.309 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002617/0.2846, allocations: 2.858 MB / 400.3 MB, free: 3.449 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01085/0.2955, allocations: 5.589 MB / 405.9 MB, free: 13.85 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.2691/0.5646, allocations: 71.67 MB / 477.5 MB, free: 67.53 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01078/0.5754, allocations: 5.188 MB / 482.7 MB, free: 67.33 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002059/0.5774, allocations: 1.454 MB / 484.2 MB, free: 67.27 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009542/0.587, allocations: 7.652 MB / 491.8 MB, free: 63.88 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.147e-05/0.587, allocations: 72.67 kB / 491.9 MB, free: 63.81 MB / 378.8 MB Notification: Performance of pre-optimization done (n=294): time 4.649e-06/0.587, allocations: 0 / 491.9 MB, free: 63.81 MB / 378.8 MB Notification: Performance of matching and sorting (n=360): time 0.08853/0.6755, allocations: 41.08 MB / 0.5205 GB, free: 29.16 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.426e-05/0.6756, allocations: 406.2 kB / 0.5209 GB, free: 28.68 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005339/0.681, allocations: 6.217 MB / 0.527 GB, free: 22.67 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0006831/0.6816, allocations: 81.7 kB / 0.527 GB, free: 22.59 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001944/0.6836, allocations: 5.647 MB / 0.5326 GB, free: 17.42 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001187/0.6848, allocations: 1.421 MB / 0.5339 GB, free: 16.02 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001608/0.6864, allocations: 1.995 MB / 0.5359 GB, free: 14.01 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 3.524e-05/0.6864, allocations: 480.7 kB / 0.5363 GB, free: 13.54 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002117/0.6885, allocations: 1.58 MB / 0.5379 GB, free: 11.95 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003697/0.6922, allocations: 8.903 MB / 0.5466 GB, free: 15.79 MB / 394.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01035/0.7026, allocations: 11.27 MB / 0.5576 GB, free: 1.332 MB / 394.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001289/0.7027, allocations: 48 kB / 0.5576 GB, free: 1.285 MB / 394.8 MB Notification: Performance of matching and sorting (n=1221) (initialization): time 0.0233/0.726, allocations: 12.73 MB / 0.5701 GB, free: 4.504 MB / 410.8 MB Notification: Performance of prepare postOptimizeDAE: time 8.891e-05/0.7261, allocations: 72.97 kB / 0.5701 GB, free: 4.434 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001465/0.7262, allocations: 164 kB / 0.5703 GB, free: 4.273 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.143/0.8693, allocations: 5.383 MB / 0.5755 GB, free: 128.9 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004914/0.8742, allocations: 1.998 MB / 0.5775 GB, free: 128.9 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01935/0.8935, allocations: 14.86 MB / 0.592 GB, free: 123.1 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00525/0.8988, allocations: 0.7094 MB / 0.5927 GB, free: 123.1 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006218/0.8994, allocations: 0.5006 MB / 0.5932 GB, free: 123.1 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 (1082): * Single equations (assignments): 1076 * 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,97,55.1%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.002124/0.9015, allocations: 0.8899 MB / 0.5941 GB, free: 122.8 MB / 410.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001016/0.9025, allocations: 0.7428 MB / 0.5948 GB, free: 122.8 MB / 410.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01343/0.916, allocations: 7.698 MB / 0.6023 GB, free: 122.4 MB / 410.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.196e-05/0.916, allocations: 39.62 kB / 0.6023 GB, free: 122.4 MB / 410.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.964e-05/0.916, allocations: 19.81 kB / 0.6024 GB, free: 122.4 MB / 410.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.91e-05/0.916, allocations: 18.05 kB / 0.6024 GB, free: 122.4 MB / 410.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02326/0.9393, allocations: 17.64 MB / 0.6196 GB, free: 112.2 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.452e-05/0.9393, allocations: 4 kB / 0.6196 GB, free: 112.2 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001128/0.9404, allocations: 467.3 kB / 0.62 GB, free: 111.8 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01116/0.9516, allocations: 5.073 MB / 0.625 GB, free: 106.8 MB / 410.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002441/0.9518, allocations: 60 kB / 0.6251 GB, free: 106.7 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01587/0.9677, allocations: 13.98 MB / 0.6387 GB, free: 92.69 MB / 410.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.027e-06/0.9677, allocations: 11.94 kB / 0.6387 GB, free: 92.68 MB / 410.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01542/0.9831, allocations: 9.489 MB / 0.648 GB, free: 83.36 MB / 410.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00231/0.9854, allocations: 1.333 MB / 0.6493 GB, free: 82.06 MB / 410.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006916/0.9861, allocations: 63.94 kB / 0.6494 GB, free: 82 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002054/0.9882, allocations: 423.2 kB / 0.6498 GB, free: 81.59 MB / 410.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008021/0.989, allocations: 262.6 kB / 0.65 GB, free: 81.33 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002107/0.9892, allocations: 96 kB / 0.6501 GB, free: 81.23 MB / 410.8 MB Notification: Performance of sorting global known variables: time 0.003628/0.9928, allocations: 2.909 MB / 0.6529 GB, free: 78.34 MB / 410.8 MB Notification: Performance of sort global known variables: time 1.7e-07/0.9928, allocations: 0 / 0.6529 GB, free: 78.34 MB / 410.8 MB Notification: Performance of remove unused functions: time 0.006548/0.9994, allocations: 2.531 MB / 0.6554 GB, free: 75.82 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 (232): * Single equations (assignments): 226 * 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.0005291/0.9999, allocations: 239.3 kB / 0.6556 GB, free: 75.59 MB / 410.8 MB Notification: Performance of simCode: created initialization part: time 0.008521/1.008, allocations: 6.911 MB / 0.6624 GB, free: 68.62 MB / 410.8 MB Notification: Performance of simCode: created event and clocks part: time 5.38e-06/1.008, allocations: 1.312 kB / 0.6624 GB, free: 68.62 MB / 410.8 MB Notification: Performance of simCode: created simulation system equations: time 0.003738/1.012, allocations: 3.098 MB / 0.6654 GB, free: 65.46 MB / 410.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003419/1.016, allocations: 0.9757 MB / 0.6664 GB, free: 64.51 MB / 410.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02047/1.036, allocations: 16.18 MB / 0.6822 GB, free: 48.12 MB / 410.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001741/1.038, allocations: 2.438 MB / 0.6845 GB, free: 45.65 MB / 410.8 MB Notification: Performance of simCode: alias equations: time 0.003504/1.041, allocations: 2.232 MB / 0.6867 GB, free: 43.41 MB / 410.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007632/1.042, allocations: 404.4 kB / 0.6871 GB, free: 43.02 MB / 410.8 MB Notification: Performance of SimCode: time 1.733e-06/1.042, allocations: 0 / 0.6871 GB, free: 43.02 MB / 410.8 MB Notification: Performance of Templates: time 0.2338/1.276, allocations: 100.1 MB / 0.7849 GB, free: 84.28 MB / 410.8 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.690643573878333]