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.001011/0.001011, allocations: 80.62 kB / 22.21 MB, free: 2.293 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.001084/0.001084, allocations: 145.1 kB / 25.59 MB, free: 8.598 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.8954/0.8954, allocations: 173.4 MB / 202.3 MB, free: 8.289 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 2.876e-06/2.876e-06, allocations: 4 kB / 269.2 MB, free: 9.715 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.572e-05/2.86e-05, allocations: 5.188 kB / 269.2 MB, free: 9.711 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic): time 0.01663/0.01665, allocations: 21.92 MB / 291.2 MB, free: 3.703 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01013/0.02678, allocations: 6.931 MB / 298.1 MB, free: 12.77 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001342/0.02813, allocations: 218.8 kB / 298.3 MB, free: 12.55 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007463/0.03559, allocations: 8.419 MB / 306.7 MB, free: 4.105 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005349/0.04094, allocations: 3.837 MB / 310.6 MB, free: 256 kB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002624/0.04356, allocations: 2.308 MB / 312.9 MB, free: 13.94 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.01282/0.05638, allocations: 15.21 MB / 328.1 MB, free: 14.71 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007573/0.06396, allocations: 9.784 MB / 337.9 MB, free: 4.832 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.148/0.212, allocations: 9.581 MB / 347.4 MB, free: 31.34 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009667/0.2216, allocations: 6.716 MB / 354.2 MB, free: 31.34 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002497/0.2241, allocations: 1.036 MB / 355.2 MB, free: 31.34 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002991/0.2271, allocations: 2.148 MB / 357.3 MB, free: 31.34 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003336/0.2304, allocations: 5.502 MB / 362.8 MB, free: 31.34 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004133/0.2346, allocations: 3.485 MB / 366.3 MB, free: 31.16 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008137/0.2427, allocations: 10.74 MB / 377.1 MB, free: 28.54 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.2427, allocations: 0 / 377.1 MB, free: 28.54 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.074e-06/0.2427, allocations: 3.438 kB / 377.1 MB, free: 28.54 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002075/0.2429, allocations: 3.281 kB / 377.1 MB, free: 28.54 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.01234/0.2553, allocations: 11.49 MB / 388.6 MB, free: 18.64 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.417e-05/0.2553, allocations: 8.031 kB / 388.6 MB, free: 18.64 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02059/0.2759, allocations: 5.288 MB / 393.9 MB, free: 13.39 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00973/0.2856, allocations: 6.16 MB / 400 MB, free: 7.469 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00031/0.2859, allocations: 0.5235 MB / 400.6 MB, free: 6.992 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002173/0.2881, allocations: 0.7226 MB / 401.3 MB, free: 6.324 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01953/0.3076, allocations: 10.59 MB / 411.9 MB, free: 10.98 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003033/0.3079, allocations: 86.78 kB / 412 MB, free: 10.93 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007383/0.3087, allocations: 326.2 kB / 412.3 MB, free: 10.66 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002381/0.3111, allocations: 2.617 MB / 414.9 MB, free: 8.066 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01356/0.3246, allocations: 4.739 MB / 419.6 MB, free: 3.594 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.2403/0.5649, allocations: 73.39 MB / 493 MB, free: 78.78 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009365/0.5743, allocations: 3.778 MB / 496.8 MB, free: 78.61 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001501/0.5758, allocations: 1.083 MB / 497.9 MB, free: 78.55 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0129/0.5887, allocations: 9.092 MB / 0.4951 GB, free: 77.46 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.831e-05/0.5887, allocations: 74.14 kB / 0.4952 GB, free: 77.41 MB / 394.7 MB Notification: Performance of pre-optimization done (n=299): time 6.893e-06/0.5887, allocations: 3 kB / 0.4952 GB, free: 77.41 MB / 394.7 MB Notification: Performance of matching and sorting (n=407): time 0.09279/0.6815, allocations: 28.97 MB / 0.5235 GB, free: 63.45 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.932e-05/0.6816, allocations: 410 kB / 0.5238 GB, free: 62.96 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006581/0.6882, allocations: 6.433 MB / 0.5301 GB, free: 58.21 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008968/0.6891, allocations: 85.64 kB / 0.5302 GB, free: 58.17 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002415/0.6915, allocations: 6.138 MB / 0.5362 GB, free: 52.22 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001386/0.6929, allocations: 1.605 MB / 0.5378 GB, free: 50.61 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001919/0.6948, allocations: 2.165 MB / 0.5399 GB, free: 48.43 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 4.35e-05/0.6949, allocations: 476.8 kB / 0.5403 GB, free: 47.96 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002065/0.6969, allocations: 1.351 MB / 0.5417 GB, free: 46.6 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003938/0.7009, allocations: 9.007 MB / 0.5505 GB, free: 34.3 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007037/0.7079, allocations: 10.87 MB / 0.5611 GB, free: 20.73 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001302/0.708, allocations: 48 kB / 0.5611 GB, free: 20.68 MB / 394.7 MB Notification: Performance of matching and sorting (n=1304) (initialization): time 0.0184/0.7264, allocations: 9.33 MB / 0.5702 GB, free: 11.33 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001067/0.7265, allocations: 80 kB / 0.5703 GB, free: 11.25 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001663/0.7267, allocations: 168.9 kB / 0.5705 GB, free: 11.09 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006534/0.7332, allocations: 2.144 MB / 0.5726 GB, free: 8.941 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005241/0.7385, allocations: 2.109 MB / 0.5746 GB, free: 6.828 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01085/0.7493, allocations: 7.778 MB / 0.5822 GB, free: 14.93 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006566/0.7559, allocations: 395.7 kB / 0.5826 GB, free: 14.55 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001426/0.7573, allocations: 459.8 kB / 0.583 GB, free: 14.1 MB / 410.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.003442/0.7608, allocations: 0.914 MB / 0.5839 GB, free: 13.17 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001734/0.7625, allocations: 0.8002 MB / 0.5847 GB, free: 12.37 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008363/0.7709, allocations: 4.238 MB / 0.5888 GB, free: 8.078 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.625e-05/0.7709, allocations: 44 kB / 0.5889 GB, free: 8.035 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.56e-05/0.7709, allocations: 15.5 kB / 0.5889 GB, free: 8.023 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.595e-05/0.7709, allocations: 19.94 kB / 0.5889 GB, free: 8.004 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02852/0.7995, allocations: 14.16 MB / 0.6028 GB, free: 9.48 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.999e-05/0.7995, allocations: 12 kB / 0.6028 GB, free: 9.469 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001792/0.8013, allocations: 0.5547 MB / 0.6033 GB, free: 8.914 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006005/0.8073, allocations: 1.882 MB / 0.6051 GB, free: 7.02 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003267/0.8076, allocations: 87.5 kB / 0.6052 GB, free: 6.938 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01083/0.8184, allocations: 6.98 MB / 0.612 GB, free: 15.84 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.197e-05/0.8184, allocations: 27.86 kB / 0.6121 GB, free: 15.82 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01197/0.8304, allocations: 6.164 MB / 0.6181 GB, free: 9.27 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003401/0.8338, allocations: 1.217 MB / 0.6193 GB, free: 8.047 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001553/0.8354, allocations: 87.97 kB / 0.6194 GB, free: 7.961 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002804/0.8382, allocations: 104 kB / 0.6195 GB, free: 7.859 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006525/0.8388, allocations: 306.1 kB / 0.6198 GB, free: 7.559 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002347/0.8391, allocations: 92 kB / 0.6198 GB, free: 7.469 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.005281/0.8443, allocations: 2.786 MB / 0.6226 GB, free: 4.707 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.81e-07/0.8443, allocations: 0 / 0.6226 GB, free: 4.707 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01073/0.8551, allocations: 2.601 MB / 0.6251 GB, free: 2.109 MB / 442.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.001065/0.8561, allocations: 322.2 kB / 0.6254 GB, free: 1.781 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01023/0.8664, allocations: 5.384 MB / 0.6307 GB, free: 12.39 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.578e-05/0.8664, allocations: 0 / 0.6307 GB, free: 12.39 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003622/0.87, allocations: 1.875 MB / 0.6325 GB, free: 10.49 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006053/0.8761, allocations: 1.054 MB / 0.6335 GB, free: 9.441 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1563/1.032, allocations: 16.91 MB / 0.65 GB, free: 171.8 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004293/1.037, allocations: 2.731 MB / 0.6527 GB, free: 171.5 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.004828/1.041, allocations: 0.9027 MB / 0.6536 GB, free: 171.5 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002457/1.044, allocations: 1.211 MB / 0.6548 GB, free: 171.4 MB / 458.7 MB Notification: Performance of SimCode: time 2.414e-06/1.044, allocations: 0 / 0.6548 GB, free: 171.4 MB / 458.7 MB Notification: Performance of Templates: time 0.1616/1.206, allocations: 105.8 MB / 0.7581 GB, free: 86.99 MB / 458.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.893100411165506]