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.00118/0.00118, allocations: 85.05 kB / 21.5 MB, free: 2.992 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.0009389/0.0009389, allocations: 145.5 kB / 24.89 MB, free: 8.742 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.8693/0.8693, allocations: 173.4 MB / 201.5 MB, free: 8.27 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.373e-06/1.373e-06, allocations: 0 / 268.5 MB, free: 9.773 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.358e-05/1.495e-05, allocations: 5.406 kB / 268.5 MB, free: 9.77 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic): time 0.02184/0.02186, allocations: 21.93 MB / 290.4 MB, free: 3.746 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01589/0.03775, allocations: 7.241 MB / 297.7 MB, free: 12.5 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004445/0.0422, allocations: 210.9 kB / 297.9 MB, free: 12.29 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01249/0.05469, allocations: 8.543 MB / 306.4 MB, free: 3.723 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008324/0.06301, allocations: 3.899 MB / 310.3 MB, free: 15.8 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002682/0.0657, allocations: 2.305 MB / 312.6 MB, free: 13.5 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.01178/0.07747, allocations: 15.13 MB / 327.8 MB, free: 14.34 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009568/0.08704, allocations: 9.949 MB / 337.7 MB, free: 4.266 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1676/0.2547, allocations: 9.488 MB / 347.2 MB, free: 31.57 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008038/0.2627, allocations: 6.457 MB / 353.7 MB, free: 31.57 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002228/0.2649, allocations: 1.038 MB / 354.7 MB, free: 31.57 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002965/0.2679, allocations: 2.131 MB / 356.8 MB, free: 31.57 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003165/0.2711, allocations: 5.501 MB / 362.3 MB, free: 31.57 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003648/0.2747, allocations: 3.494 MB / 365.8 MB, free: 31.37 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008048/0.2828, allocations: 10.75 MB / 376.6 MB, free: 28.48 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.2828, allocations: 0 / 376.6 MB, free: 28.48 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.2828, allocations: 0 / 376.6 MB, free: 28.48 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002926/0.2831, allocations: 0 / 376.6 MB, free: 28.48 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: 2753 * Number of variables: 2753 Notification: Performance of Generate backend data structure: time 0.01092/0.294, allocations: 10.47 MB / 387.1 MB, free: 19.47 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.182e-05/0.294, allocations: 8.031 kB / 387.1 MB, free: 19.46 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006465/0.3005, allocations: 2.435 MB / 389.5 MB, free: 17.1 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006528/0.307, allocations: 5.747 MB / 395.2 MB, free: 11.57 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001904/0.3072, allocations: 0.5213 MB / 395.8 MB, free: 11.1 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008472/0.308, allocations: 0.7323 MB / 396.5 MB, free: 10.42 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01029/0.3183, allocations: 9.656 MB / 406.2 MB, free: 404 kB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001751/0.3185, allocations: 88.83 kB / 406.2 MB, free: 352 kB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005313/0.319, allocations: 329.7 kB / 406.6 MB, free: 72 kB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003077/0.3221, allocations: 2.618 MB / 409.2 MB, free: 13.49 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0103/0.3324, allocations: 4.658 MB / 413.8 MB, free: 9.121 MB / 330.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.0505/0.3829, allocations: 54.17 MB / 468 MB, free: 3.578 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008004/0.3909, allocations: 3.566 MB / 471.6 MB, free: 72 kB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001173/0.3921, allocations: 0.8753 MB / 472.4 MB, free: 15.2 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0123/0.4044, allocations: 8.623 MB / 481.1 MB, free: 6.691 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.322e-05/0.4045, allocations: 68.56 kB / 481.1 MB, free: 6.617 MB / 394.7 MB Notification: Performance of pre-optimization done (n=299): time 4.889e-06/0.4045, allocations: 0 / 481.1 MB, free: 6.617 MB / 394.7 MB Notification: Performance of matching and sorting (n=407): time 0.1665/0.571, allocations: 22.87 MB / 0.4922 GB, free: 129.8 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.599e-05/0.5711, allocations: 403.3 kB / 0.4926 GB, free: 129.4 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004912/0.576, allocations: 5.833 MB / 0.4983 GB, free: 128.8 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003962/0.5764, allocations: 90.86 kB / 0.4984 GB, free: 128.7 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001618/0.578, allocations: 5.095 MB / 0.5033 GB, free: 125.6 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008493/0.5789, allocations: 1.535 MB / 0.5048 GB, free: 124.6 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001648/0.5805, allocations: 1.891 MB / 0.5067 GB, free: 124.3 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 2.897e-05/0.5805, allocations: 311 kB / 0.507 GB, free: 124 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00234/0.5829, allocations: 1.53 MB / 0.5085 GB, free: 123.5 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003734/0.5866, allocations: 6.582 MB / 0.5149 GB, free: 115 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00536/0.592, allocations: 8.593 MB / 0.5233 GB, free: 104.6 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.703e-05/0.592, allocations: 48 kB / 0.5233 GB, free: 104.5 MB / 394.7 MB Notification: Performance of matching and sorting (n=1304) (initialization): time 0.01114/0.6032, allocations: 7.931 MB / 0.5311 GB, free: 96.71 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.921e-05/0.6032, allocations: 76 kB / 0.5312 GB, free: 96.63 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001056/0.6033, allocations: 172 kB / 0.5313 GB, free: 96.46 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005485/0.6088, allocations: 2.112 MB / 0.5334 GB, free: 94.35 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004241/0.6131, allocations: 2.113 MB / 0.5354 GB, free: 92.23 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009271/0.6223, allocations: 6.768 MB / 0.5421 GB, free: 85.36 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005228/0.6276, allocations: 399.6 kB / 0.5424 GB, free: 84.97 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006797/0.6282, allocations: 456 kB / 0.5429 GB, free: 84.52 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 777 * 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 (1194): * Single equations (assignments): 1189 * 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 {(1,84,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002667/0.6309, allocations: 0.8771 MB / 0.5437 GB, free: 83.63 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001041/0.6319, allocations: 495.5 kB / 0.5442 GB, free: 83.15 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006298/0.6382, allocations: 3.753 MB / 0.5479 GB, free: 79.36 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.555e-05/0.6383, allocations: 44 kB / 0.5479 GB, free: 79.31 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.31e-05/0.6383, allocations: 12.88 kB / 0.5479 GB, free: 79.3 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.329e-05/0.6383, allocations: 23.92 kB / 0.5479 GB, free: 79.28 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01909/0.6574, allocations: 12.3 MB / 0.56 GB, free: 66.66 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.03e-05/0.6574, allocations: 16 kB / 0.56 GB, free: 66.64 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001571/0.659, allocations: 0.5461 MB / 0.5605 GB, free: 66.09 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005518/0.6645, allocations: 2.163 MB / 0.5626 GB, free: 63.92 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002646/0.6648, allocations: 80 kB / 0.5627 GB, free: 63.84 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008693/0.6735, allocations: 6.029 MB / 0.5686 GB, free: 57.71 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.135e-06/0.6735, allocations: 23.97 kB / 0.5686 GB, free: 57.69 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008631/0.6821, allocations: 5.309 MB / 0.5738 GB, free: 52.03 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001861/0.684, allocations: 1.139 MB / 0.5749 GB, free: 50.88 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006704/0.6846, allocations: 87.98 kB / 0.575 GB, free: 50.8 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001582/0.6862, allocations: 95.92 kB / 0.5751 GB, free: 50.7 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004311/0.6866, allocations: 306.1 kB / 0.5754 GB, free: 50.4 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001914/0.6868, allocations: 91.98 kB / 0.5755 GB, free: 50.31 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002104/0.6889, allocations: 2.387 MB / 0.5778 GB, free: 47.95 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.4e-07/0.6889, allocations: 4 kB / 0.5778 GB, free: 47.94 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.00566/0.6946, allocations: 2.593 MB / 0.5803 GB, free: 45.35 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 64 * 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 (318): * Single equations (assignments): 314 * 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 {(1,73,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006188/0.6952, allocations: 315.1 kB / 0.5806 GB, free: 45.04 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.005354/0.7006, allocations: 4.844 MB / 0.5854 GB, free: 40.19 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001819/0.7008, allocations: 132.2 kB / 0.5855 GB, free: 40.05 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001949/0.7027, allocations: 1.633 MB / 0.5871 GB, free: 38.39 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004082/0.7068, allocations: 1.472 MB / 0.5885 GB, free: 36.93 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01908/0.7259, allocations: 16.74 MB / 0.6049 GB, free: 19.85 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002276/0.7281, allocations: 2.713 MB / 0.6075 GB, free: 17.11 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.002693/0.7308, allocations: 0.9015 MB / 0.6084 GB, free: 16.2 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002027/0.7329, allocations: 1.12 MB / 0.6095 GB, free: 15.07 MB / 394.7 MB Notification: Performance of SimCode: time 1.803e-06/0.7329, allocations: 3.938 kB / 0.6095 GB, free: 15.07 MB / 394.7 MB Notification: Performance of Templates: time 0.2126/0.9454, allocations: 103.4 MB / 0.7104 GB, free: 43.27 MB / 394.7 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: 5.198094988241792]