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.001284/0.001284, allocations: 107.8 kB / 17.06 MB, free: 6.137 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.001255/0.001255, allocations: 188 kB / 18 MB, free: 5.219 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.373/1.373, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001282/0.001282, allocations: 47.92 kB / 351.3 MB, free: 3.219 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3078/0.3091, allocations: 49.43 MB / 400.8 MB, free: 8.973 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic): time 0.02291/0.332, allocations: 23.4 MB / 424.2 MB, free: 1.527 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01512/0.3472, allocations: 7.08 MB / 431.2 MB, free: 10.42 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004614/0.3519, allocations: 179.4 kB / 431.4 MB, free: 10.25 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01546/0.3675, allocations: 7.94 MB / 439.3 MB, free: 2.281 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01296/0.3805, allocations: 3.691 MB / 443 MB, free: 14.58 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006257/0.3868, allocations: 2.005 MB / 445 MB, free: 12.57 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01852/0.4053, allocations: 13.26 MB / 458.3 MB, free: 15.28 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01494/0.4203, allocations: 10.45 MB / 468.8 MB, free: 4.734 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007754/0.4281, allocations: 4.269 MB / 473 MB, free: 464 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009004/0.4372, allocations: 5.715 MB / 478.7 MB, free: 10.72 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003674/0.4409, allocations: 1 MB / 479.7 MB, free: 9.723 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006603/0.4475, allocations: 2.17 MB / 481.9 MB, free: 7.551 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.009859/0.4574, allocations: 5.113 MB / 487 MB, free: 2.426 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01327/0.4707, allocations: 5.414 MB / 492.4 MB, free: 12.97 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02302/0.4938, allocations: 17.25 MB / 0.4977 GB, free: 11.67 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.927e-06/0.4938, allocations: 3.984 kB / 0.4977 GB, free: 11.66 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.4938, allocations: 0 / 0.4977 GB, free: 11.66 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0006963/0.4946, allocations: 4 kB / 0.4978 GB, free: 11.66 MB / 430.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.03843/0.533, allocations: 11.2 MB / 0.5087 GB, free: 368 kB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.366e-05/0.5331, allocations: 11.89 kB / 0.5087 GB, free: 356 kB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04234/0.5754, allocations: 5.414 MB / 0.514 GB, free: 10.91 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02181/0.5973, allocations: 9.039 MB / 0.5228 GB, free: 1.777 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004471/0.5978, allocations: 0.5218 MB / 0.5233 GB, free: 1.254 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003481/0.6012, allocations: 0.7259 MB / 0.524 GB, free: 0.5273 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.468/1.069, allocations: 19.52 MB / 0.5431 GB, free: 116.8 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005966/1.07, allocations: 98.17 kB / 0.5432 GB, free: 116.7 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002514/1.072, allocations: 324.8 kB / 0.5435 GB, free: 116.6 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004206/1.077, allocations: 2.82 MB / 0.5463 GB, free: 116 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03395/1.111, allocations: 16.24 MB / 0.5621 GB, free: 109 MB / 462.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.08525/1.196, allocations: 74.04 MB / 0.6344 GB, free: 34.41 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01897/1.215, allocations: 8.511 MB / 0.6427 GB, free: 25.74 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005198/1.22, allocations: 4.772 MB / 0.6474 GB, free: 20.95 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01983/1.24, allocations: 15.4 MB / 0.6624 GB, free: 5.023 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.107e-05/1.24, allocations: 69.45 kB / 0.6625 GB, free: 4.945 MB / 462.1 MB Notification: Performance of pre-optimization done (n=321): time 5.34e-06/1.24, allocations: 0 / 0.6625 GB, free: 4.945 MB / 462.1 MB Notification: Performance of matching and sorting (n=428): time 0.1849/1.425, allocations: 54.64 MB / 0.7158 GB, free: 14.18 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002197/1.425, allocations: 402.8 kB / 0.7162 GB, free: 13.7 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01264/1.438, allocations: 7.568 MB / 0.7236 GB, free: 6.172 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.001246/1.439, allocations: 89.7 kB / 0.7237 GB, free: 6.078 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.005089/1.444, allocations: 5.597 MB / 0.7292 GB, free: 420 kB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.002714/1.447, allocations: 1.561 MB / 0.7307 GB, free: 14.83 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004033/1.451, allocations: 2.086 MB / 0.7327 GB, free: 12.73 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 9.653e-05/1.451, allocations: 301.1 kB / 0.733 GB, free: 12.43 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008413/1.46, allocations: 5.221 MB / 0.7381 GB, free: 7.207 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3218/1.781, allocations: 10.27 MB / 0.7481 GB, free: 175.3 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01907/1.8, allocations: 16.3 MB / 0.7641 GB, free: 164.8 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003736/1.801, allocations: 52.94 kB / 0.7641 GB, free: 164.8 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1335) (initialization): time 0.04386/1.845, allocations: 21.26 MB / 0.7849 GB, free: 157.7 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001543/1.845, allocations: 85.45 kB / 0.785 GB, free: 157.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002047/1.845, allocations: 171.9 kB / 0.7851 GB, free: 157.7 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01746/1.863, allocations: 6.649 MB / 0.7916 GB, free: 154.8 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006839/1.87, allocations: 2.154 MB / 0.7937 GB, free: 152.9 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04132/1.911, allocations: 35.03 MB / 0.8279 GB, free: 118.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008435/1.919, allocations: 0.6227 MB / 0.8285 GB, free: 117.7 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001458/1.921, allocations: 0.5349 MB / 0.8291 GB, free: 117.2 MB / 0.5294 GB 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.006059/1.927, allocations: 4.095 MB / 0.8331 GB, free: 113.2 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001355/1.928, allocations: 0.6929 MB / 0.8337 GB, free: 112.8 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02503/1.953, allocations: 14.31 MB / 0.8477 GB, free: 98.48 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.713e-05/1.953, allocations: 48 kB / 0.8478 GB, free: 98.43 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.133e-05/1.953, allocations: 24 kB / 0.8478 GB, free: 98.41 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.637e-05/1.953, allocations: 25.17 kB / 0.8478 GB, free: 98.38 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05212/2.006, allocations: 27.92 MB / 0.8751 GB, free: 70.51 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.627e-05/2.006, allocations: 8 kB / 0.8751 GB, free: 70.5 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002729/2.008, allocations: 0.5818 MB / 0.8756 GB, free: 69.92 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01725/2.026, allocations: 6.343 MB / 0.8818 GB, free: 63.57 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008073/2.027, allocations: 79.98 kB / 0.8819 GB, free: 63.49 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03725/2.064, allocations: 31.89 MB / 0.9131 GB, free: 31.65 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.167e-06/2.064, allocations: 11.94 kB / 0.9131 GB, free: 31.64 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03362/2.097, allocations: 20.97 MB / 0.9336 GB, free: 10.54 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004557/2.102, allocations: 1.56 MB / 0.9351 GB, free: 8.957 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001762/2.104, allocations: 83.92 kB / 0.9352 GB, free: 8.875 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003994/2.108, allocations: 335.6 kB / 0.9355 GB, free: 8.547 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001109/2.109, allocations: 295.2 kB / 0.9358 GB, free: 8.258 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003692/2.109, allocations: 120 kB / 0.9359 GB, free: 8.141 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.2714/2.381, allocations: 4.829 MB / 0.9406 GB, free: 167.2 MB / 0.5294 GB Notification: Performance of sort global known variables: time 5.11e-07/2.381, allocations: 0 / 0.9406 GB, free: 167.2 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.01113/2.392, allocations: 2.435 MB / 0.943 GB, free: 167.2 MB / 0.5294 GB 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.001169/2.393, allocations: 286.9 kB / 0.9432 GB, free: 167.1 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01776/2.411, allocations: 12.75 MB / 0.9557 GB, free: 164.6 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.128e-05/2.411, allocations: 0 / 0.9557 GB, free: 164.6 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.007391/2.418, allocations: 5.324 MB / 0.9609 GB, free: 162.3 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006427/2.425, allocations: 1.077 MB / 0.9619 GB, free: 161.9 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03718/2.462, allocations: 22.48 MB / 0.9839 GB, free: 150.3 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009833/2.472, allocations: 6.379 MB / 0.9901 GB, free: 145.5 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.007369/2.479, allocations: 2.964 MB / 0.993 GB, free: 143.7 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001849/2.481, allocations: 434.7 kB / 0.9934 GB, free: 143.3 MB / 0.5294 GB Notification: Performance of SimCode: time 9.31e-07/2.481, allocations: 0 / 0.9934 GB, free: 143.3 MB / 0.5294 GB Notification: Performance of Templates: time 0.1538/2.635, allocations: 107.4 MB / 1.098 GB, free: 38.35 MB / 0.5294 GB 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1b_analytic/Engine1b_analytic.csv","/var/lib/jenkins/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