Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.0009855/0.0009855, allocations: 75.77 kB / 22.45 MB, free: 2.094 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.001031/0.001031, allocations: 158.9 kB / 25.75 MB, free: 8.949 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8708/0.8708, allocations: 158.6 MB / 187.5 MB, free: 2.945 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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=5062,variableFilter="time|Inertia.phi|Inertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5062,variableFilter="time|Inertia.phi|Inertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.522e-06/1.522e-06, allocations: 0 / 251.1 MB, free: 7.766 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.793e-05/1.946e-05, allocations: 2.312 kB / 251.1 MB, free: 7.762 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.01367/0.01369, allocations: 19.98 MB / 271.1 MB, free: 3.699 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.009544/0.02324, allocations: 6.138 MB / 277.3 MB, free: 13.54 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001852/0.02509, allocations: 198.9 kB / 277.4 MB, free: 13.35 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006141/0.03123, allocations: 6.849 MB / 284.3 MB, free: 6.477 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007003/0.03823, allocations: 3.685 MB / 288 MB, free: 2.773 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003093/0.04132, allocations: 1.934 MB / 289.9 MB, free: 0.8359 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0136/0.05493, allocations: 13.56 MB / 303.5 MB, free: 3.254 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009344/0.06427, allocations: 8.114 MB / 311.6 MB, free: 11.05 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01055/0.07483, allocations: 5.859 MB / 317.5 MB, free: 5.18 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007508/0.08234, allocations: 5.99 MB / 323.4 MB, free: 15.18 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00206/0.08439, allocations: 0.7852 MB / 324.2 MB, free: 14.39 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003276/0.08767, allocations: 1.697 MB / 325.9 MB, free: 12.69 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005054/0.09272, allocations: 4.836 MB / 330.8 MB, free: 7.844 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00452/0.09725, allocations: 2.957 MB / 333.7 MB, free: 4.879 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01178/0.109, allocations: 9.355 MB / 343.1 MB, free: 11.49 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.324e-06/0.109, allocations: 0 / 343.1 MB, free: 11.49 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.109, allocations: 0 / 343.1 MB, free: 11.49 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0004013/0.1094, allocations: 0 / 343.1 MB, free: 11.49 MB / 330.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.01751/0.1269, allocations: 11.06 MB / 354.1 MB, free: 344 kB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.334e-05/0.127, allocations: 11.98 kB / 354.1 MB, free: 332 kB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.22/0.347, allocations: 6.26 MB / 360.4 MB, free: 100.9 MB / 330.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009808/0.3568, allocations: 7.302 MB / 367.7 MB, free: 94.77 MB / 330.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002023/0.357, allocations: 446.3 kB / 368.1 MB, free: 94.38 MB / 330.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001135/0.3581, allocations: 0.615 MB / 368.8 MB, free: 93.82 MB / 330.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01326/0.3714, allocations: 10.68 MB / 379.4 MB, free: 81.81 MB / 330.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001938/0.3716, allocations: 87.36 kB / 379.5 MB, free: 81.72 MB / 330.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004759/0.372, allocations: 277.1 kB / 379.8 MB, free: 81.5 MB / 330.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002289/0.3743, allocations: 2.868 MB / 382.7 MB, free: 78.64 MB / 330.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01227/0.3866, allocations: 5.57 MB / 388.2 MB, free: 73.1 MB / 330.8 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.05267/0.4393, allocations: 71.37 MB / 459.6 MB, free: 376 kB / 330.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0122/0.4515, allocations: 4.547 MB / 464.1 MB, free: 11.78 MB / 346.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002717/0.4542, allocations: 1.401 MB / 465.5 MB, free: 10.36 MB / 346.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01332/0.4675, allocations: 7.49 MB / 473 MB, free: 2.973 MB / 346.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.435e-05/0.4676, allocations: 71.33 kB / 473.1 MB, free: 2.895 MB / 346.8 MB Notification: Performance of pre-optimization done (n=293): time 7.063e-06/0.4676, allocations: 0 / 473.1 MB, free: 2.895 MB / 346.8 MB Notification: Performance of matching and sorting (n=365): time 0.202/0.6696, allocations: 33.58 MB / 0.4948 GB, free: 112.8 MB / 362.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.054e-05/0.6697, allocations: 402.4 kB / 0.4952 GB, free: 112.4 MB / 362.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008074/0.6777, allocations: 6.356 MB / 0.5014 GB, free: 111.6 MB / 362.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0007544/0.6785, allocations: 83.52 kB / 0.5015 GB, free: 111.6 MB / 362.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002475/0.681, allocations: 5.674 MB / 0.507 GB, free: 108.8 MB / 362.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001351/0.6823, allocations: 1.443 MB / 0.5084 GB, free: 107.7 MB / 362.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001799/0.6841, allocations: 2.031 MB / 0.5104 GB, free: 106.6 MB / 362.8 MB Notification: Performance of setup shared object (initialization): time 4.728e-05/0.6842, allocations: 481.5 kB / 0.5109 GB, free: 106.1 MB / 362.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002167/0.6863, allocations: 1.413 MB / 0.5123 GB, free: 105.2 MB / 362.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003908/0.6902, allocations: 8.854 MB / 0.5209 GB, free: 93.03 MB / 362.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007736/0.698, allocations: 11.02 MB / 0.5317 GB, free: 78.95 MB / 362.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001087/0.6981, allocations: 55.94 kB / 0.5317 GB, free: 78.9 MB / 362.8 MB Notification: Performance of matching and sorting (n=1238) (initialization): time 0.01855/0.7166, allocations: 11.23 MB / 0.5427 GB, free: 67.64 MB / 362.8 MB Notification: Performance of prepare postOptimizeDAE: time 7.125e-05/0.7167, allocations: 79.94 kB / 0.5428 GB, free: 67.56 MB / 362.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001283/0.7168, allocations: 164 kB / 0.5429 GB, free: 67.4 MB / 362.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008752/0.7256, allocations: 3.759 MB / 0.5466 GB, free: 63.62 MB / 362.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004223/0.7298, allocations: 2.004 MB / 0.5486 GB, free: 61.62 MB / 362.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01611/0.7459, allocations: 13.73 MB / 0.562 GB, free: 47.54 MB / 362.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007264/0.7532, allocations: 0.6905 MB / 0.5626 GB, free: 46.85 MB / 362.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001429/0.7546, allocations: 0.5128 MB / 0.5631 GB, free: 46.34 MB / 362.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 762 * 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],B1.cylinderColor[3],B1.cylinderColor[2],B1.cylinderColor[1],B2.cylinderColor[3],B2.cylinderColor[2],B2.cylinderColor[1],cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],Mid.color[3],Mid.color[2],Mid.color[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],Crank3.color[3],Crank3.color[2],Crank3.color[1],Crank3.body.sphereColor[3],Crank3.body.sphereColor[2],Crank3.body.sphereColor[1],Crank4.color[3],Crank4.color[2],Crank4.color[1],Crank4.body.sphereColor[3],Crank4.body.sphereColor[2],Crank4.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],Bearing.cylinderColor[3],Bearing.cylinderColor[2],Bearing.cylinderColor[1],Rod2.color[3],Rod2.color[2],Rod2.color[1],Rod2.body.sphereColor[3],Rod2.body.sphereColor[2],Rod2.body.sphereColor[1],Piston.color[3],Piston.color[2],Piston.color[1],Piston.body.sphereColor[3],Piston.body.sphereColor[2],Piston.body.sphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1102): * Single equations (assignments): 1096 * 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 {(6,100,72.2%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.003416/0.758, allocations: 0.8861 MB / 0.564 GB, free: 45.45 MB / 362.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00192/0.7599, allocations: 0.7612 MB / 0.5647 GB, free: 44.68 MB / 362.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0102/0.7701, allocations: 5.993 MB / 0.5706 GB, free: 38.62 MB / 362.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.93e-05/0.7702, allocations: 45.67 kB / 0.5706 GB, free: 38.58 MB / 362.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.493e-05/0.7702, allocations: 24 kB / 0.5707 GB, free: 38.55 MB / 362.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.705e-05/0.7703, allocations: 19.69 kB / 0.5707 GB, free: 38.54 MB / 362.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02387/0.7941, allocations: 14.06 MB / 0.5844 GB, free: 24.33 MB / 362.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.55e-05/0.7942, allocations: 8.969 kB / 0.5844 GB, free: 24.32 MB / 362.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001403/0.7956, allocations: 459.3 kB / 0.5849 GB, free: 23.88 MB / 362.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008705/0.8043, allocations: 3.448 MB / 0.5882 GB, free: 20.42 MB / 362.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005964/0.8049, allocations: 68 kB / 0.5883 GB, free: 20.35 MB / 362.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01525/0.8201, allocations: 13.28 MB / 0.6013 GB, free: 6.715 MB / 362.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.154e-05/0.8201, allocations: 19.22 kB / 0.6013 GB, free: 6.699 MB / 362.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01368/0.8338, allocations: 7.816 MB / 0.6089 GB, free: 14.63 MB / 378.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00357/0.8374, allocations: 1.284 MB / 0.6102 GB, free: 13.34 MB / 378.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001744/0.8391, allocations: 72 kB / 0.6102 GB, free: 13.27 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00273/0.8419, allocations: 391.4 kB / 0.6106 GB, free: 12.89 MB / 378.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000756/0.8426, allocations: 290.2 kB / 0.6109 GB, free: 12.61 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001989/0.8428, allocations: 96 kB / 0.611 GB, free: 12.51 MB / 378.8 MB Notification: Performance of sorting global known variables: time 0.1405/0.9833, allocations: 2.999 MB / 0.6139 GB, free: 109.7 MB / 378.8 MB Notification: Performance of sort global known variables: time 1.7e-07/0.9833, allocations: 1.406 kB / 0.6139 GB, free: 109.7 MB / 378.8 MB Notification: Performance of remove unused functions: time 0.008876/0.9922, allocations: 2.505 MB / 0.6164 GB, free: 109.7 MB / 378.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 35 * 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 (241): * Single equations (assignments): 235 * 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 {(5,96,72.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006872/0.9929, allocations: 243.9 kB / 0.6166 GB, free: 109.6 MB / 378.8 MB Notification: Performance of simCode: created initialization part: time 0.009028/1.002, allocations: 6.301 MB / 0.6227 GB, free: 108.5 MB / 378.8 MB Notification: Performance of simCode: created event and clocks part: time 1.131e-05/1.002, allocations: 3.625 kB / 0.6227 GB, free: 108.5 MB / 378.8 MB Notification: Performance of simCode: created simulation system equations: time 0.003351/1.005, allocations: 2.596 MB / 0.6253 GB, free: 107.7 MB / 378.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004921/1.01, allocations: 0.9921 MB / 0.6262 GB, free: 107.7 MB / 378.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02461/1.035, allocations: 15.82 MB / 0.6417 GB, free: 98.84 MB / 378.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003231/1.038, allocations: 2.461 MB / 0.6441 GB, free: 97.54 MB / 378.8 MB Notification: Performance of simCode: alias equations: time 0.00451/1.043, allocations: 2.289 MB / 0.6463 GB, free: 96.36 MB / 378.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001122/1.044, allocations: 418.9 kB / 0.6467 GB, free: 95.98 MB / 378.8 MB Notification: Performance of SimCode: time 2.404e-06/1.044, allocations: 4 kB / 0.6467 GB, free: 95.98 MB / 378.8 MB Notification: Performance of Templates: time 0.109/1.153, allocations: 95.63 MB / 0.7401 GB, free: 2.562 MB / 378.8 MB " [Timeout remaining time 659] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.613834548043087]