Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009742/0.000974, allocations: 97.91 kB / 18.01 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001075/0.001075, allocations: 201.5 kB / 18.93 MB, free: 4.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.339/1.339, allocations: 227.7 MB / 247.5 MB, free: 9.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000225/0.000225, allocations: 8 kB / 308.4 MB, free: 0.582 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08825/0.0885, allocations: 51.52 MB / 359.9 MB, free: 13.06 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.2545/0.343, allocations: 108.1 MB / 468 MB, free: 14.44 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04412/0.3872, allocations: 20.87 MB / 488.9 MB, free: 9.508 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01786/0.4051, allocations: 0.4987 MB / 489.4 MB, free: 9.008 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002576/0.4077, allocations: 0.7305 MB / 490.1 MB, free: 8.273 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007491/0.4152, allocations: 3.239 MB / 493.4 MB, free: 5.023 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003036/0.4182, allocations: 1.529 MB / 494.9 MB, free: 3.492 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01915/0.4374, allocations: 18.08 MB / 0.5009 GB, free: 1.379 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01404/0.4515, allocations: 10.63 MB / 0.5113 GB, free: 6.637 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005135/0.4567, allocations: 2.841 MB / 0.5141 GB, free: 3.785 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006646/0.4633, allocations: 4.626 MB / 0.5186 GB, free: 15.14 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00154/0.4649, allocations: 288 kB / 0.5189 GB, free: 14.86 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003408/0.4683, allocations: 1.299 MB / 0.5202 GB, free: 13.56 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004655/0.473, allocations: 3.822 MB / 0.5239 GB, free: 9.73 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006114/0.4791, allocations: 4 MB / 0.5278 GB, free: 5.699 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2337/0.7128, allocations: 10.92 MB / 0.5385 GB, free: 26.04 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.283e-06/0.7129, allocations: 2.094 kB / 0.5385 GB, free: 26.04 MB / 446.1 MB Notification: Performance of FrontEnd: time 3.326e-06/0.7129, allocations: 0 / 0.5385 GB, free: 26.04 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0006423/0.7136, allocations: 0 / 0.5385 GB, free: 26.04 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2488 * Number of variables: 2488 Notification: Performance of Generate backend data structure: time 0.02483/0.7384, allocations: 8.289 MB / 0.5466 GB, free: 22.63 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.069e-05/0.7385, allocations: 9.438 kB / 0.5466 GB, free: 22.63 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04951/0.788, allocations: 5.397 MB / 0.5518 GB, free: 22.08 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0197/0.8078, allocations: 7.879 MB / 0.5595 GB, free: 20.99 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004926/0.8083, allocations: 447.6 kB / 0.56 GB, free: 20.98 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003341/0.8117, allocations: 0.6148 MB / 0.5606 GB, free: 20.96 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03887/0.8505, allocations: 17.2 MB / 0.5774 GB, free: 16.3 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000559/0.8511, allocations: 95.05 kB / 0.5775 GB, free: 16.28 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002682/0.8538, allocations: 277.7 kB / 0.5777 GB, free: 16.28 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004389/0.8582, allocations: 2.86 MB / 0.5805 GB, free: 15.71 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02988/0.8881, allocations: 14.1 MB / 0.5943 GB, free: 10.2 MB / 446.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.09504/0.9832, allocations: 70.05 MB / 0.6627 GB, free: 2.957 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02053/1.004, allocations: 8.259 MB / 0.6708 GB, free: 10.57 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005875/1.01, allocations: 4.626 MB / 0.6753 GB, free: 5.934 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02039/1.03, allocations: 12.78 MB / 0.6878 GB, free: 9.043 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.441e-05/1.03, allocations: 64.56 kB / 0.6878 GB, free: 8.973 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=293): time 5.591e-06/1.03, allocations: 0 / 0.6878 GB, free: 8.973 MB / 0.5294 GB Notification: Performance of matching and sorting (n=359): time 0.4113/1.441, allocations: 53.31 MB / 0.7399 GB, free: 256.7 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001336/1.442, allocations: 403.2 kB / 0.7403 GB, free: 256.3 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01294/1.455, allocations: 7.263 MB / 0.7474 GB, free: 253.9 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.001159/1.456, allocations: 80.27 kB / 0.7474 GB, free: 253.8 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.003241/1.459, allocations: 5.2 MB / 0.7525 GB, free: 249.9 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001874/1.461, allocations: 1.337 MB / 0.7538 GB, free: 248.9 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001468/1.462, allocations: 0.8301 MB / 0.7546 GB, free: 248.6 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.961e-05/1.463, allocations: 301.1 kB / 0.7549 GB, free: 248.3 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006469/1.469, allocations: 4.714 MB / 0.7595 GB, free: 246.6 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008234/1.477, allocations: 9.542 MB / 0.7688 GB, free: 238.5 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01563/1.493, allocations: 15 MB / 0.7835 GB, free: 226.3 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001233/1.493, allocations: 48 kB / 0.7835 GB, free: 226.2 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1220) (initialization): time 0.04015/1.533, allocations: 20.46 MB / 0.8035 GB, free: 207.6 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 9.656e-05/1.533, allocations: 76.22 kB / 0.8036 GB, free: 207.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001501/1.534, allocations: 172 kB / 0.8038 GB, free: 207.3 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02108/1.555, allocations: 7.346 MB / 0.8109 GB, free: 200 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006637/1.561, allocations: 1.996 MB / 0.8129 GB, free: 198 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04057/1.602, allocations: 34.38 MB / 0.8464 GB, free: 163.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00955/1.612, allocations: 0.6092 MB / 0.847 GB, free: 162.6 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001926/1.613, allocations: 0.4961 MB / 0.8475 GB, free: 162.1 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 749 * Number of states: 0 () * Number of discrete variables: 72 (rod3.color[3],rod3.color[2],rod3.color[1],rod1.color[3],rod1.color[2],rod1.color[1],cylinder.boxColor[3],cylinder.boxColor[2],cylinder.boxColor[1],b2.cylinderColor[3],b2.cylinderColor[2],b2.cylinderColor[1],b1.cylinderColor[3],b1.cylinderColor[2],b1.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 (1081): * Single equations (assignments): 1075 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(8,96,51.6%), (3,5,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.006835/1.62, allocations: 3.607 MB / 0.851 GB, free: 158.5 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001658/1.622, allocations: 0.6518 MB / 0.8517 GB, free: 157.8 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02769/1.65, allocations: 13.93 MB / 0.8653 GB, free: 143.8 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.624e-05/1.65, allocations: 42.34 kB / 0.8653 GB, free: 143.8 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.655e-05/1.65, allocations: 20.88 kB / 0.8654 GB, free: 143.7 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.036e-05/1.65, allocations: 23.88 kB / 0.8654 GB, free: 143.7 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04813/1.698, allocations: 27.84 MB / 0.8926 GB, free: 115.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.03e-05/1.698, allocations: 7.25 kB / 0.8926 GB, free: 115.4 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002221/1.7, allocations: 468 kB / 0.893 GB, free: 114.9 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01958/1.72, allocations: 7.009 MB / 0.8999 GB, free: 107.9 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007784/1.721, allocations: 60 kB / 0.8999 GB, free: 107.9 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03874/1.76, allocations: 33.26 MB / 0.9324 GB, free: 74.21 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.312e-06/1.76, allocations: 9.797 kB / 0.9324 GB, free: 74.2 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03569/1.795, allocations: 19.7 MB / 0.9516 GB, free: 54.31 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002438/1.798, allocations: 0.7112 MB / 0.9523 GB, free: 53.57 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002328/1.8, allocations: 61.33 kB / 0.9524 GB, free: 53.52 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004066/1.804, allocations: 323.5 kB / 0.9527 GB, free: 53.2 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009904/1.805, allocations: 258.8 kB / 0.953 GB, free: 52.95 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002985/1.805, allocations: 97.33 kB / 0.953 GB, free: 52.85 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.007066/1.813, allocations: 4.642 MB / 0.9576 GB, free: 48.24 MB / 0.5606 GB Notification: Performance of sort global known variables: time 4.21e-07/1.813, allocations: 0 / 0.9576 GB, free: 48.24 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.01135/1.824, allocations: 2.206 MB / 0.9597 GB, free: 46.04 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * 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 (231): * Single equations (assignments): 225 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(7,90,55.1%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001094/1.825, allocations: 223.1 kB / 0.9599 GB, free: 45.82 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01901/1.844, allocations: 12.02 MB / 0.9717 GB, free: 33.77 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.275e-05/1.844, allocations: 0 / 0.9717 GB, free: 33.77 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.008368/1.852, allocations: 5.27 MB / 0.9768 GB, free: 28.45 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0128/1.865, allocations: 0.9436 MB / 0.9778 GB, free: 27.52 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2474/2.113, allocations: 24.83 MB / 1.002 GB, free: 234.5 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007146/2.12, allocations: 5.659 MB / 1.008 GB, free: 233.5 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001829/2.122, allocations: 454.4 kB / 1.008 GB, free: 233.5 MB / 0.5606 GB Notification: Performance of SimCode: time 1.343e-06/2.122, allocations: 0 / 1.008 GB, free: 233.5 MB / 0.5606 GB Notification: Performance of Templates: time 0.2567/2.378, allocations: 212.7 MB / 1.216 GB, free: 41.36 MB / 0.5606 GB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1b/Engine1b.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches