Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.0009627/0.0009627, allocations: 84.98 kB / 23 MB, free: 1.5 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.0009723/0.0009723, allocations: 175.1 kB / 26.4 MB, free: 7.754 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.8811/0.8811, allocations: 158.6 MB / 188.3 MB, free: 2.777 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.Engine1a,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|Inertia.phi|Inertia.w",fileNamePrefix="Modelica_3.2.3_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_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.502e-06/1.502e-06, allocations: 0 / 252.3 MB, free: 7.238 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.509e-05/1.659e-05, allocations: 6.25 kB / 252.3 MB, free: 7.23 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.01278/0.0128, allocations: 18.3 MB / 270.6 MB, free: 4.848 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.009632/0.02243, allocations: 5.889 MB / 276.5 MB, free: 14.94 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001968/0.0244, allocations: 190.9 kB / 276.6 MB, free: 14.75 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005559/0.02996, allocations: 6.203 MB / 282.8 MB, free: 8.531 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005128/0.03509, allocations: 3.608 MB / 286.5 MB, free: 4.906 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002642/0.03773, allocations: 1.817 MB / 288.3 MB, free: 3.086 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.01227/0.05, allocations: 13.28 MB / 301.6 MB, free: 5.785 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007437/0.05744, allocations: 7.759 MB / 309.3 MB, free: 13.94 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008187/0.06563, allocations: 7.381 MB / 316.7 MB, free: 6.543 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006518/0.07215, allocations: 5.753 MB / 322.4 MB, free: 0.7773 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009647/0.07311, allocations: 0.7539 MB / 323.2 MB, free: 24 kB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002504/0.07561, allocations: 1.678 MB / 324.9 MB, free: 14.34 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003626/0.07924, allocations: 4.653 MB / 329.5 MB, free: 9.68 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002991/0.08223, allocations: 2.84 MB / 332.4 MB, free: 6.832 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008629/0.09086, allocations: 9.052 MB / 341.4 MB, free: 13.75 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.09087, allocations: 0 / 341.4 MB, free: 13.75 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.212e-06/0.09087, allocations: 0 / 341.4 MB, free: 13.75 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.83e-05/0.09094, allocations: 4 kB / 341.4 MB, free: 13.75 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: 2386 * Number of variables: 2386 Notification: Performance of Generate backend data structure: time 0.01597/0.1069, allocations: 9.971 MB / 351.4 MB, free: 3.68 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.474e-05/0.107, allocations: 11.98 kB / 351.4 MB, free: 3.668 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2489/0.3559, allocations: 5.02 MB / 356.4 MB, free: 71.72 MB / 330.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007861/0.3637, allocations: 5.444 MB / 361.9 MB, free: 71.35 MB / 330.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001613/0.3639, allocations: 429.5 kB / 362.3 MB, free: 71.34 MB / 330.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006788/0.3646, allocations: 0.5808 MB / 362.9 MB, free: 71.32 MB / 330.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01064/0.3752, allocations: 9.283 MB / 372.2 MB, free: 66.8 MB / 330.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001596/0.3754, allocations: 92.19 kB / 372.2 MB, free: 66.79 MB / 330.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004215/0.3758, allocations: 265.2 kB / 372.5 MB, free: 66.79 MB / 330.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001951/0.3778, allocations: 2.519 MB / 375 MB, free: 66.77 MB / 330.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008517/0.3863, allocations: 4.057 MB / 379.1 MB, free: 64.74 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.0447/0.431, allocations: 69.53 MB / 448.6 MB, free: 13.05 MB / 346.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007604/0.4386, allocations: 3.223 MB / 451.8 MB, free: 9.836 MB / 346.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001026/0.4396, allocations: 0.9003 MB / 452.7 MB, free: 8.941 MB / 346.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0095/0.4491, allocations: 7.005 MB / 459.7 MB, free: 2.203 MB / 346.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.01e-05/0.4492, allocations: 65.92 kB / 459.8 MB, free: 2.133 MB / 346.8 MB Notification: Performance of pre-optimization done (n=248): time 3.787e-06/0.4492, allocations: 0 / 459.8 MB, free: 2.133 MB / 346.8 MB Notification: Performance of matching and sorting (n=298): time 0.04539/0.4946, allocations: 17.57 MB / 477.4 MB, free: 1.16 MB / 362.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001213/0.4947, allocations: 397.8 kB / 477.8 MB, free: 0.6875 MB / 362.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005822/0.5005, allocations: 6.206 MB / 484 MB, free: 11.52 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0001938/0.5007, allocations: 69.7 kB / 484 MB, free: 11.45 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003756/0.5045, allocations: 5.638 MB / 489.7 MB, free: 6.129 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009402/0.5054, allocations: 1.21 MB / 490.9 MB, free: 4.98 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002164/0.5076, allocations: 1.983 MB / 492.9 MB, free: 3.191 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 0.0001121/0.5077, allocations: 480.8 kB / 493.3 MB, free: 2.719 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001868/0.5095, allocations: 0.9194 MB / 494.3 MB, free: 1.793 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1401/0.6497, allocations: 8.613 MB / 0.4911 GB, free: 92 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00715/0.6568, allocations: 10.11 MB / 0.501 GB, free: 82.59 MB / 378.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.817e-05/0.6569, allocations: 48.47 kB / 0.501 GB, free: 82.59 MB / 378.8 MB Notification: Performance of matching and sorting (n=1180) (initialization): time 0.01071/0.6676, allocations: 7.63 MB / 0.5085 GB, free: 82.11 MB / 378.8 MB Notification: Performance of prepare postOptimizeDAE: time 7.716e-05/0.6677, allocations: 78.06 kB / 0.5085 GB, free: 82.11 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000162/0.6679, allocations: 176.7 kB / 0.5087 GB, free: 82.1 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002921/0.6708, allocations: 1.259 MB / 0.5099 GB, free: 82 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003091/0.6739, allocations: 1.981 MB / 0.5119 GB, free: 81.83 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005618/0.6795, allocations: 6.716 MB / 0.5184 GB, free: 78.02 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00432/0.6838, allocations: 376 kB / 0.5188 GB, free: 78.02 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003917/0.6842, allocations: 438.2 kB / 0.5192 GB, free: 78.02 MB / 378.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 (cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],Cylinder.boxColor[3],Cylinder.boxColor[2],Cylinder.boxColor[1],Mid.color[3],Mid.color[2],Mid.color[1],B1.cylinderColor[3],B1.cylinderColor[2],B1.cylinderColor[1],Crank2.color[3],Crank2.color[2],Crank2.color[1],Crank2.body.sphereColor[3],Crank2.body.sphereColor[2],Crank2.body.sphereColor[1],Crank3.color[3],Crank3.color[2],Crank3.color[1],Crank3.body.sphereColor[3],Crank3.body.sphereColor[2],Crank3.body.sphereColor[1],Crank1.color[3],Crank1.color[2],Crank1.color[1],Crank1.body.sphereColor[3],Crank1.body.sphereColor[2],Crank1.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],B2.cylinderColor[3],B2.cylinderColor[2],B2.cylinderColor[1],Rod.color[3],Rod.color[2],Rod.color[1],Rod.body.sphereColor[3],Rod.body.sphereColor[2],Rod.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 (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.001694/0.6859, allocations: 0.8819 MB / 0.5201 GB, free: 77.68 MB / 378.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007401/0.6866, allocations: 0.7042 MB / 0.5207 GB, free: 77.67 MB / 378.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00343/0.6901, allocations: 2.487 MB / 0.5232 GB, free: 77.39 MB / 378.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.082e-05/0.6901, allocations: 29.53 kB / 0.5232 GB, free: 77.39 MB / 378.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.401e-05/0.6901, allocations: 11.34 kB / 0.5232 GB, free: 77.39 MB / 378.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.825e-05/0.6901, allocations: 13.08 kB / 0.5232 GB, free: 77.39 MB / 378.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01388/0.704, allocations: 10.59 MB / 0.5336 GB, free: 73.49 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.786e-05/0.704, allocations: 20.22 kB / 0.5336 GB, free: 73.47 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001157/0.7052, allocations: 438.5 kB / 0.534 GB, free: 73.11 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003076/0.7083, allocations: 1.023 MB / 0.535 GB, free: 72.46 MB / 378.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001467/0.7084, allocations: 72.75 kB / 0.5351 GB, free: 72.43 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005552/0.714, allocations: 5.802 MB / 0.5407 GB, free: 67.62 MB / 378.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.228e-05/0.714, allocations: 27.88 kB / 0.5408 GB, free: 67.6 MB / 378.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005543/0.7195, allocations: 4.559 MB / 0.5452 GB, free: 63.04 MB / 378.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001442/0.721, allocations: 0.9372 MB / 0.5461 GB, free: 62.22 MB / 378.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006336/0.7216, allocations: 78 kB / 0.5462 GB, free: 62.15 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00177/0.7234, allocations: 75.98 kB / 0.5463 GB, free: 62.08 MB / 378.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003663/0.7237, allocations: 268.2 kB / 0.5465 GB, free: 61.92 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001432/0.7239, allocations: 90.84 kB / 0.5466 GB, free: 61.84 MB / 378.8 MB Notification: Performance of sorting global known variables: time 0.002686/0.7266, allocations: 2.706 MB / 0.5493 GB, free: 59.96 MB / 378.8 MB Notification: Performance of sort global known variables: time 8e-08/0.7266, allocations: 4 kB / 0.5493 GB, free: 59.96 MB / 378.8 MB Notification: Performance of remove unused functions: time 0.00627/0.7328, allocations: 2.06 MB / 0.5513 GB, free: 57.91 MB / 378.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 88 * 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 (245): * Single equations (assignments): 238 * 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 {(6,37,61.1%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004219/0.7332, allocations: 258.7 kB / 0.5515 GB, free: 57.68 MB / 378.8 MB Notification: Performance of simCode: created initialization part: time 0.005636/0.7389, allocations: 4.598 MB / 0.556 GB, free: 53.7 MB / 378.8 MB Notification: Performance of simCode: created event and clocks part: time 8.756e-06/0.7389, allocations: 4 kB / 0.556 GB, free: 53.7 MB / 378.8 MB Notification: Performance of simCode: created simulation system equations: time 0.001847/0.7407, allocations: 1.615 MB / 0.5576 GB, free: 52.26 MB / 378.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003472/0.7442, allocations: 0.9703 MB / 0.5585 GB, free: 51.45 MB / 378.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01666/0.7609, allocations: 14.37 MB / 0.5726 GB, free: 36.84 MB / 378.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002481/0.7634, allocations: 2.305 MB / 0.5748 GB, free: 34.51 MB / 378.8 MB Notification: Performance of simCode: alias equations: time 0.003221/0.7666, allocations: 0.8376 MB / 0.5756 GB, free: 33.66 MB / 378.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00228/0.7689, allocations: 1.095 MB / 0.5767 GB, free: 32.57 MB / 378.8 MB Notification: Performance of SimCode: time 1.613e-06/0.7689, allocations: 0 / 0.5767 GB, free: 32.57 MB / 378.8 MB Notification: Performance of Templates: time 0.2348/1.004, allocations: 72.67 MB / 0.6477 GB, free: 100.3 MB / 394.8 MB " [Timeout remaining time 659] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.428784909192473]