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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001425/0.001425, allocations: 117 kB / 17.7 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001562/0.001562, allocations: 191 kB / 18.63 MB, free: 4.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.298/1.298, allocations: 222.9 MB / 242.3 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001009/0.001009, allocations: 50.67 kB / 302.1 MB, free: 5.145 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1065/0.1075, allocations: 49.44 MB / 351.5 MB, free: 3.676 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic): time 0.1878/0.2954, allocations: 23.38 MB / 374.9 MB, free: 9.73 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0142/0.3096, allocations: 7.07 MB / 382 MB, free: 8.574 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004502/0.3142, allocations: 176.9 kB / 382.1 MB, free: 8.539 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01444/0.3287, allocations: 7.952 MB / 390.1 MB, free: 6.156 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009026/0.3377, allocations: 3.574 MB / 393.7 MB, free: 4.035 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004528/0.3423, allocations: 2.011 MB / 395.7 MB, free: 2.762 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01712/0.3594, allocations: 13.25 MB / 408.9 MB, free: 10.71 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01392/0.3734, allocations: 10.45 MB / 419.4 MB, free: 268 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007915/0.3813, allocations: 4.27 MB / 423.6 MB, free: 11.97 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009614/0.391, allocations: 5.695 MB / 429.3 MB, free: 6.262 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003068/0.3941, allocations: 1 MB / 430.3 MB, free: 5.262 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006194/0.4003, allocations: 2.162 MB / 432.5 MB, free: 3.102 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006341/0.4067, allocations: 5.024 MB / 437.5 MB, free: 14.07 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008614/0.4153, allocations: 5.418 MB / 442.9 MB, free: 8.621 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01806/0.4334, allocations: 17.25 MB / 460.2 MB, free: 7.32 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/0.4334, allocations: 0 / 460.2 MB, free: 7.32 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.4334, allocations: 0 / 460.2 MB, free: 7.32 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0005232/0.434, allocations: 0 / 460.2 MB, free: 7.32 MB / 366.1 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.02658/0.4606, allocations: 11.2 MB / 471.4 MB, free: 12.02 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.72e-05/0.4606, allocations: 11.89 kB / 471.4 MB, free: 12.01 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04346/0.5041, allocations: 5.418 MB / 476.8 MB, free: 6.57 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02281/0.5269, allocations: 9.043 MB / 485.9 MB, free: 13.43 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005003/0.5275, allocations: 0.5297 MB / 486.4 MB, free: 12.9 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003608/0.5311, allocations: 0.7259 MB / 487.1 MB, free: 12.18 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03667/0.5678, allocations: 19.51 MB / 0.4948 GB, free: 7.621 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002753/0.5681, allocations: 95.17 kB / 0.4948 GB, free: 7.527 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008798/0.569, allocations: 323.8 kB / 0.4952 GB, free: 7.211 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003927/0.5729, allocations: 2.817 MB / 0.4979 GB, free: 4.391 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03227/0.6052, allocations: 16.25 MB / 0.5138 GB, free: 4.117 MB / 430.1 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.4298/1.035, allocations: 74.05 MB / 0.5861 GB, free: 91.33 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02033/1.055, allocations: 8.5 MB / 0.5944 GB, free: 87.83 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00572/1.061, allocations: 4.77 MB / 0.599 GB, free: 85.23 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02272/1.084, allocations: 15.41 MB / 0.6141 GB, free: 74.18 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.731e-05/1.084, allocations: 68.98 kB / 0.6142 GB, free: 74.11 MB / 446.1 MB Notification: Performance of pre-optimization done (n=321): time 7.044e-06/1.084, allocations: 3.812 kB / 0.6142 GB, free: 74.11 MB / 446.1 MB Notification: Performance of matching and sorting (n=428): time 0.1659/1.25, allocations: 54.61 MB / 0.6675 GB, free: 19.51 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.838e-05/1.25, allocations: 414.7 kB / 0.6679 GB, free: 19.02 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009217/1.259, allocations: 7.563 MB / 0.6753 GB, free: 11.49 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001205/1.261, allocations: 93.7 kB / 0.6754 GB, free: 11.39 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003001/1.264, allocations: 5.589 MB / 0.6808 GB, free: 5.805 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001705/1.265, allocations: 1.555 MB / 0.6823 GB, free: 4.262 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002813/1.268, allocations: 2.094 MB / 0.6844 GB, free: 2.156 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.415e-05/1.268, allocations: 301.1 kB / 0.6847 GB, free: 1.859 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007354/1.276, allocations: 5.223 MB / 0.6898 GB, free: 12.63 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01143/1.287, allocations: 10.27 MB / 0.6998 GB, free: 15.95 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2296/1.517, allocations: 16.31 MB / 0.7157 GB, free: 150.2 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002305/1.517, allocations: 52.84 kB / 0.7158 GB, free: 150.2 MB / 478.1 MB Notification: Performance of matching and sorting (n=1335) (initialization): time 0.04511/1.562, allocations: 21.24 MB / 0.7365 GB, free: 144.8 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.87e-05/1.562, allocations: 84.23 kB / 0.7366 GB, free: 144.8 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001909/1.562, allocations: 170 kB / 0.7368 GB, free: 144.8 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01814/1.581, allocations: 6.656 MB / 0.7433 GB, free: 143.5 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007155/1.588, allocations: 2.152 MB / 0.7454 GB, free: 143.3 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0419/1.63, allocations: 35.04 MB / 0.7796 GB, free: 116.3 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008215/1.638, allocations: 0.6226 MB / 0.7802 GB, free: 115.7 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00136/1.639, allocations: 0.5312 MB / 0.7807 GB, free: 115.1 MB / 478.1 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 (1178): * Single equations (assignments): 1173 * 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.006634/1.646, allocations: 4.103 MB / 0.7847 GB, free: 111.1 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001815/1.648, allocations: 0.6905 MB / 0.7854 GB, free: 110.8 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0257/1.673, allocations: 14.32 MB / 0.7994 GB, free: 96.44 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.112e-05/1.674, allocations: 46.62 kB / 0.7994 GB, free: 96.4 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.416e-05/1.674, allocations: 26.25 kB / 0.7994 GB, free: 96.38 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.807e-05/1.674, allocations: 23.86 kB / 0.7995 GB, free: 96.35 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0535/1.727, allocations: 28.07 MB / 0.8269 GB, free: 68.3 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.652e-05/1.727, allocations: 12.92 kB / 0.8269 GB, free: 68.29 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002855/1.73, allocations: 0.5928 MB / 0.8275 GB, free: 67.7 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01756/1.748, allocations: 6.314 MB / 0.8336 GB, free: 61.38 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00115/1.749, allocations: 81.64 kB / 0.8337 GB, free: 61.3 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03645/1.785, allocations: 31.92 MB / 0.8649 GB, free: 29.28 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.256e-06/1.786, allocations: 8 kB / 0.8649 GB, free: 29.27 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2467/2.032, allocations: 20.93 MB / 0.8853 GB, free: 144 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005183/2.037, allocations: 1.566 MB / 0.8868 GB, free: 143.9 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001643/2.039, allocations: 80.83 kB / 0.8869 GB, free: 143.9 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003867/2.043, allocations: 326.9 kB / 0.8872 GB, free: 143.9 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001148/2.044, allocations: 303.2 kB / 0.8875 GB, free: 143.9 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003652/2.045, allocations: 118.2 kB / 0.8876 GB, free: 143.9 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.008108/2.053, allocations: 4.832 MB / 0.8924 GB, free: 143.7 MB / 478.1 MB Notification: Performance of sort global known variables: time 6.02e-07/2.053, allocations: 1.281 kB / 0.8924 GB, free: 143.7 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.01105/2.064, allocations: 2.43 MB / 0.8947 GB, free: 143.7 MB / 478.1 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.001043/2.065, allocations: 289.6 kB / 0.895 GB, free: 143.6 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01751/2.082, allocations: 12.75 MB / 0.9075 GB, free: 139.3 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.451e-05/2.082, allocations: 3.969 kB / 0.9075 GB, free: 139.3 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007663/2.09, allocations: 5.348 MB / 0.9127 GB, free: 136.9 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006332/2.096, allocations: 1.078 MB / 0.9137 GB, free: 136.5 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03852/2.135, allocations: 22.44 MB / 0.9356 GB, free: 125.2 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009643/2.145, allocations: 6.385 MB / 0.9419 GB, free: 120.4 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.006718/2.151, allocations: 2.959 MB / 0.9448 GB, free: 118.7 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001275/2.153, allocations: 443 kB / 0.9452 GB, free: 118.3 MB / 478.1 MB Notification: Performance of SimCode: time 1.243e-06/2.153, allocations: 0 / 0.9452 GB, free: 118.3 MB / 478.1 MB Notification: Performance of Templates: time 0.1445/2.297, allocations: 104.3 MB / 1.047 GB, free: 16.21 MB / 478.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.makefile (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=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1b_analytic/Engine1b_analytic.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches