Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.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.001222/0.001222, allocations: 75.91 kB / 21.18 MB, free: 3.395 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.001686/0.001686, allocations: 145.5 kB / 24.54 MB, free: 36 kB / 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.9441/0.9441, allocations: 173.4 MB / 201.1 MB, free: 9.348 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_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5028,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5028,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.763e-06/1.763e-06, allocations: 0 / 268 MB, free: 6.41 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.476e-05/2.652e-05, allocations: 6.25 kB / 268 MB, free: 6.402 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic): time 0.1405/0.1406, allocations: 22.8 MB / 290.8 MB, free: 14.29 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0131/0.1537, allocations: 6.984 MB / 297.8 MB, free: 13.75 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004571/0.1582, allocations: 215.7 kB / 298 MB, free: 13.75 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009868/0.1681, allocations: 8.599 MB / 306.6 MB, free: 11.11 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008259/0.1764, allocations: 3.829 MB / 310.5 MB, free: 8.684 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003758/0.1801, allocations: 2.305 MB / 312.8 MB, free: 7.211 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.01376/0.1939, allocations: 15.19 MB / 328 MB, free: 12.28 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01263/0.2065, allocations: 9.788 MB / 337.7 MB, free: 2.934 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01058/0.2171, allocations: 6.667 MB / 344.4 MB, free: 12.63 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009181/0.2263, allocations: 6.732 MB / 351.1 MB, free: 6.086 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002106/0.2284, allocations: 1.039 MB / 352.2 MB, free: 5.047 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004173/0.2326, allocations: 2.146 MB / 354.3 MB, free: 2.898 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005252/0.2378, allocations: 5.499 MB / 359.8 MB, free: 13.38 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.005608/0.2434, allocations: 3.483 MB / 363.3 MB, free: 9.887 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01237/0.2558, allocations: 10.7 MB / 374 MB, free: 15.15 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.77e-06/0.2558, allocations: 0 / 374 MB, free: 15.15 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.482e-06/0.2558, allocations: 0 / 374 MB, free: 15.15 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0003705/0.2562, allocations: 0 / 374 MB, free: 15.15 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: 2753 * Number of variables: 2753 Notification: Performance of Generate backend data structure: time 0.02601/0.2822, allocations: 12.25 MB / 386.3 MB, free: 2.793 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.296e-05/0.2822, allocations: 8.031 kB / 386.3 MB, free: 2.785 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03356/0.3158, allocations: 6.491 MB / 392.8 MB, free: 12.28 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01595/0.3318, allocations: 7.905 MB / 400.7 MB, free: 4.258 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005468/0.3323, allocations: 0.5218 MB / 401.2 MB, free: 3.734 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003014/0.3353, allocations: 0.7267 MB / 401.9 MB, free: 3.008 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02323/0.3585, allocations: 11.98 MB / 413.9 MB, free: 5.543 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003113/0.3589, allocations: 79.36 kB / 414 MB, free: 5.465 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001083/0.3599, allocations: 331.6 kB / 414.3 MB, free: 5.145 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002688/0.3626, allocations: 2.817 MB / 417.1 MB, free: 2.32 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01669/0.3793, allocations: 6.388 MB / 423.5 MB, free: 11.91 MB / 378.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.2956/0.675, allocations: 74.09 MB / 497.6 MB, free: 58.96 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01567/0.6906, allocations: 5.601 MB / 0.4914 GB, free: 58.21 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003066/0.6937, allocations: 1.516 MB / 0.4929 GB, free: 57.93 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01416/0.7079, allocations: 8.683 MB / 0.5014 GB, free: 51.52 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.366e-05/0.7079, allocations: 79.23 kB / 0.5014 GB, free: 51.44 MB / 378.8 MB Notification: Performance of pre-optimization done (n=321): time 7.594e-06/0.7079, allocations: 3.984 kB / 0.5014 GB, free: 51.43 MB / 378.8 MB Notification: Performance of matching and sorting (n=428): time 0.08491/0.7928, allocations: 39.89 MB / 0.5404 GB, free: 12.31 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001019/0.7929, allocations: 413.3 kB / 0.5408 GB, free: 11.82 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007476/0.8004, allocations: 6.501 MB / 0.5471 GB, free: 5.539 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001032/0.8014, allocations: 93.7 kB / 0.5472 GB, free: 5.441 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002686/0.8041, allocations: 6.034 MB / 0.5531 GB, free: 24 kB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002361/0.8065, allocations: 1.662 MB / 0.5547 GB, free: 14.38 MB / 394.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002807/0.8093, allocations: 2.17 MB / 0.5569 GB, free: 12.2 MB / 394.8 MB Notification: Performance of setup shared object (initialization): time 0.0001316/0.8094, allocations: 476.8 kB / 0.5573 GB, free: 11.73 MB / 394.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003223/0.8127, allocations: 1.691 MB / 0.559 GB, free: 10.04 MB / 394.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1585/0.9711, allocations: 9.315 MB / 0.5681 GB, free: 107.8 MB / 394.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01218/0.9833, allocations: 12.01 MB / 0.5798 GB, free: 98.45 MB / 394.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002259/0.9835, allocations: 48.44 kB / 0.5798 GB, free: 98.45 MB / 394.8 MB Notification: Performance of matching and sorting (n=1333) (initialization): time 0.02436/1.008, allocations: 12.8 MB / 0.5923 GB, free: 96.96 MB / 394.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.000101/1.008, allocations: 75.31 kB / 0.5924 GB, free: 96.96 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001829/1.008, allocations: 172.6 kB / 0.5926 GB, free: 96.96 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01129/1.019, allocations: 4.729 MB / 0.5972 GB, free: 96.82 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004253/1.024, allocations: 2.151 MB / 0.5993 GB, free: 96.63 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01806/1.042, allocations: 11.97 MB / 0.611 GB, free: 90.12 MB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006254/1.048, allocations: 0.7234 MB / 0.6117 GB, free: 89.55 MB / 394.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001077/1.049, allocations: 0.539 MB / 0.6122 GB, free: 89.01 MB / 394.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 778 * Number of states: 0 () * Number of discrete variables: 73 (jointRRP.jointUSP.prismatic.positiveBranch,jointRRP.jointUSP.rod1Color[3],jointRRP.jointUSP.rod1Color[2],jointRRP.jointUSP.rod1Color[1],jointRRP.jointUSP.cylinderColor[3],jointRRP.jointUSP.cylinderColor[2],jointRRP.jointUSP.cylinderColor[1],jointRRP.jointUSP.sphereColor[3],jointRRP.jointUSP.sphereColor[2],jointRRP.jointUSP.sphereColor[1],jointRRP.rodColor[3],jointRRP.rodColor[2],jointRRP.rodColor[1],jointRRP.cylinderColor[3],jointRRP.cylinderColor[2],jointRRP.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 (1176): * Single equations (assignments): 1171 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,129,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003294/1.052, allocations: 0.9267 MB / 0.6131 GB, free: 88.18 MB / 394.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001395/1.054, allocations: 0.8068 MB / 0.6139 GB, free: 87.76 MB / 394.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01287/1.067, allocations: 7.472 MB / 0.6212 GB, free: 80.23 MB / 394.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.183e-05/1.067, allocations: 44 kB / 0.6213 GB, free: 80.19 MB / 394.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.139e-05/1.067, allocations: 29.34 kB / 0.6213 GB, free: 80.16 MB / 394.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.816e-05/1.067, allocations: 23.86 kB / 0.6213 GB, free: 80.14 MB / 394.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02923/1.096, allocations: 17.26 MB / 0.6382 GB, free: 62.91 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.087e-05/1.096, allocations: 8.938 kB / 0.6382 GB, free: 62.9 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00151/1.098, allocations: 0.5812 MB / 0.6387 GB, free: 62.32 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01059/1.108, allocations: 4.413 MB / 0.643 GB, free: 57.9 MB / 394.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004197/1.109, allocations: 86.33 kB / 0.6431 GB, free: 57.82 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01559/1.124, allocations: 10.01 MB / 0.6529 GB, free: 47.82 MB / 394.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.742e-06/1.124, allocations: 11.94 kB / 0.6529 GB, free: 47.8 MB / 394.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02018/1.144, allocations: 9.551 MB / 0.6622 GB, free: 38.04 MB / 394.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00385/1.148, allocations: 1.471 MB / 0.6637 GB, free: 36.57 MB / 394.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001284/1.149, allocations: 79.98 kB / 0.6638 GB, free: 36.5 MB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003513/1.153, allocations: 423.4 kB / 0.6642 GB, free: 36.08 MB / 394.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009766/1.154, allocations: 318.9 kB / 0.6645 GB, free: 35.77 MB / 394.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000317/1.154, allocations: 118.9 kB / 0.6646 GB, free: 35.66 MB / 394.8 MB Notification: Performance of sorting global known variables: time 0.005126/1.159, allocations: 3.029 MB / 0.6675 GB, free: 32.65 MB / 394.8 MB Notification: Performance of sort global known variables: time 2.1e-07/1.159, allocations: 0 / 0.6675 GB, free: 32.65 MB / 394.8 MB Notification: Performance of remove unused functions: time 0.009977/1.169, allocations: 2.732 MB / 0.6702 GB, free: 29.93 MB / 394.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 34 * 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 (296): * Single equations (assignments): 292 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,116,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0008968/1.17, allocations: 316.1 kB / 0.6705 GB, free: 29.64 MB / 394.8 MB Notification: Performance of simCode: created initialization part: time 0.01101/1.181, allocations: 6.738 MB / 0.6771 GB, free: 22.9 MB / 394.8 MB Notification: Performance of simCode: created event and clocks part: time 1.11e-05/1.181, allocations: 4 kB / 0.6771 GB, free: 22.9 MB / 394.8 MB Notification: Performance of simCode: created simulation system equations: time 0.003588/1.185, allocations: 2.648 MB / 0.6797 GB, free: 20.21 MB / 394.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005273/1.19, allocations: 1.062 MB / 0.6807 GB, free: 19.2 MB / 394.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02787/1.218, allocations: 18 MB / 0.6983 GB, free: 0.9727 MB / 394.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005086/1.223, allocations: 2.757 MB / 0.701 GB, free: 14.19 MB / 410.8 MB Notification: Performance of simCode: alias equations: time 0.006541/1.23, allocations: 2.444 MB / 0.7034 GB, free: 11.74 MB / 410.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001632/1.231, allocations: 440.4 kB / 0.7038 GB, free: 11.31 MB / 410.8 MB Notification: Performance of SimCode: time 2.495e-06/1.231, allocations: 0 / 0.7038 GB, free: 11.31 MB / 410.8 MB Notification: Performance of Templates: time 0.2498/1.481, allocations: 109.4 MB / 0.8106 GB, free: 45.77 MB / 410.8 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1b_analytic/Engine1b_analytic.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: 6.189942286815494]