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.00125/0.00125, allocations: 117.6 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001302/0.001302, allocations: 203.9 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.352/1.352, allocations: 227.4 MB / 246.9 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001182/0.001182, allocations: 55.91 kB / 358.7 MB, free: 12.88 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2645/0.2657, allocations: 50.55 MB / 409.3 MB, free: 1.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.02049/0.2863, allocations: 20.44 MB / 429.7 MB, free: 13.04 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01432/0.3007, allocations: 6.187 MB / 435.9 MB, free: 6.84 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004247/0.3049, allocations: 167.4 kB / 436.1 MB, free: 6.676 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01115/0.3162, allocations: 6.331 MB / 442.4 MB, free: 332 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0097/0.3259, allocations: 3.494 MB / 445.9 MB, free: 12.82 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004234/0.3302, allocations: 1.658 MB / 447.6 MB, free: 11.16 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01866/0.3489, allocations: 12.94 MB / 460.5 MB, free: 14.19 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01141/0.3603, allocations: 8.058 MB / 468.6 MB, free: 6.043 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007369/0.3677, allocations: 3.751 MB / 472.3 MB, free: 2.281 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0072/0.375, allocations: 4.962 MB / 477.3 MB, free: 13.3 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002423/0.3774, allocations: 0.7461 MB / 478 MB, free: 12.55 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00407/0.3815, allocations: 1.701 MB / 479.7 MB, free: 10.86 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004795/0.3863, allocations: 4.435 MB / 484.2 MB, free: 6.41 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007084/0.3934, allocations: 4.639 MB / 488.8 MB, free: 1.746 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01709/0.4106, allocations: 14.1 MB / 0.4911 GB, free: 3.602 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.204e-05/0.4106, allocations: 4 kB / 0.4911 GB, free: 3.598 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.935e-06/0.4106, allocations: 0 / 0.4911 GB, free: 3.598 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0004473/0.4111, allocations: 0 / 0.4911 GB, free: 3.598 MB / 414.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.02318/0.4343, allocations: 10.02 MB / 0.5009 GB, free: 9.492 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.053e-05/0.4343, allocations: 8.031 kB / 0.5009 GB, free: 9.484 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03782/0.4722, allocations: 5.279 MB / 0.5061 GB, free: 4.188 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02018/0.4924, allocations: 8.087 MB / 0.514 GB, free: 12.04 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004683/0.4929, allocations: 444 kB / 0.5144 GB, free: 11.6 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002532/0.4954, allocations: 0.6126 MB / 0.515 GB, free: 10.99 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03068/0.5261, allocations: 17.12 MB / 0.5317 GB, free: 8.805 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002735/0.5264, allocations: 103.2 kB / 0.5318 GB, free: 8.703 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007523/0.5272, allocations: 275.8 kB / 0.5321 GB, free: 8.434 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004212/0.5314, allocations: 2.866 MB / 0.5349 GB, free: 5.562 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4195/0.9509, allocations: 14.02 MB / 0.5486 GB, free: 111.5 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.06704/1.018, allocations: 69.68 MB / 0.6166 GB, free: 48.3 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01848/1.036, allocations: 8.189 MB / 0.6246 GB, free: 39.99 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004977/1.042, allocations: 4.627 MB / 0.6291 GB, free: 35.36 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0174/1.059, allocations: 12.76 MB / 0.6416 GB, free: 22.47 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.635e-05/1.059, allocations: 68.5 kB / 0.6416 GB, free: 22.39 MB / 462.1 MB Notification: Performance of pre-optimization done (n=293): time 5.289e-06/1.059, allocations: 0 / 0.6416 GB, free: 22.39 MB / 462.1 MB Notification: Performance of matching and sorting (n=359): time 0.1807/1.24, allocations: 52.43 MB / 0.6928 GB, free: 2.031 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002113/1.24, allocations: 406.2 kB / 0.6932 GB, free: 1.547 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01494/1.255, allocations: 7.256 MB / 0.7003 GB, free: 10.32 MB / 0.4982 GB Notification: Performance of collectPreVariables (initialization): time 0.0009985/1.256, allocations: 81.7 kB / 0.7004 GB, free: 10.23 MB / 0.4982 GB Notification: Performance of collectInitialEqns (initialization): time 0.004463/1.26, allocations: 5.202 MB / 0.7055 GB, free: 4.984 MB / 0.4982 GB Notification: Performance of collectInitialBindings (initialization): time 0.002141/1.263, allocations: 1.326 MB / 0.7068 GB, free: 3.641 MB / 0.4982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004698/1.267, allocations: 1.908 MB / 0.7086 GB, free: 1.719 MB / 0.4982 GB Notification: Performance of setup shared object (initialization): time 9.82e-05/1.267, allocations: 305.1 kB / 0.7089 GB, free: 1.418 MB / 0.4982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00716/1.275, allocations: 4.715 MB / 0.7135 GB, free: 12.69 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01062/1.285, allocations: 9.538 MB / 0.7228 GB, free: 0.8125 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2604/1.546, allocations: 15 MB / 0.7375 GB, free: 171.5 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001978/1.546, allocations: 47.38 kB / 0.7375 GB, free: 171.5 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1220) (initialization): time 0.03791/1.584, allocations: 20.46 MB / 0.7575 GB, free: 166.6 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 8.716e-05/1.584, allocations: 73.69 kB / 0.7576 GB, free: 166.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001545/1.584, allocations: 165.5 kB / 0.7577 GB, free: 166.6 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01938/1.604, allocations: 7.331 MB / 0.7649 GB, free: 165.4 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005992/1.61, allocations: 1.991 MB / 0.7668 GB, free: 165.2 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03954/1.649, allocations: 36.58 MB / 0.8026 GB, free: 132.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009428/1.659, allocations: 0.5965 MB / 0.8032 GB, free: 131.9 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002114/1.661, allocations: 0.5 MB / 0.8036 GB, free: 131.4 MB / 0.5294 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.007426/1.668, allocations: 3.598 MB / 0.8072 GB, free: 127.9 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001473/1.67, allocations: 0.654 MB / 0.8078 GB, free: 127.6 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03291/1.703, allocations: 13.93 MB / 0.8214 GB, free: 113.6 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.829e-05/1.703, allocations: 39.98 kB / 0.8214 GB, free: 113.6 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.178e-05/1.703, allocations: 20 kB / 0.8215 GB, free: 113.6 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.799e-05/1.703, allocations: 19.94 kB / 0.8215 GB, free: 113.5 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04572/1.749, allocations: 27.68 MB / 0.8485 GB, free: 85.55 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.745e-05/1.749, allocations: 4 kB / 0.8485 GB, free: 85.55 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002248/1.751, allocations: 463.3 kB / 0.849 GB, free: 85.1 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01843/1.769, allocations: 6.969 MB / 0.8558 GB, free: 78.11 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009133/1.77, allocations: 71.66 kB / 0.8558 GB, free: 78.05 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03993/1.81, allocations: 35.34 MB / 0.8903 GB, free: 42.51 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.674e-06/1.81, allocations: 12 kB / 0.8903 GB, free: 42.5 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03323/1.843, allocations: 19.71 MB / 0.9096 GB, free: 22.64 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00207/1.846, allocations: 0.6984 MB / 0.9103 GB, free: 21.92 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001806/1.847, allocations: 60 kB / 0.9103 GB, free: 21.86 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003857/1.851, allocations: 331.5 kB / 0.9106 GB, free: 21.54 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0011/1.852, allocations: 246.8 kB / 0.9109 GB, free: 21.3 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000315/1.853, allocations: 96 kB / 0.911 GB, free: 21.2 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.006534/1.859, allocations: 4.642 MB / 0.9155 GB, free: 16.59 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.01e-07/1.859, allocations: 0 / 0.9155 GB, free: 16.59 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.009047/1.868, allocations: 2.206 MB / 0.9177 GB, free: 14.39 MB / 0.5294 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.000723/1.869, allocations: 224.8 kB / 0.9179 GB, free: 14.18 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01776/1.887, allocations: 12.05 MB / 0.9296 GB, free: 2.094 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.263e-05/1.887, allocations: 4 kB / 0.9296 GB, free: 2.09 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.008874/1.896, allocations: 5.283 MB / 0.9348 GB, free: 12.77 MB / 0.5451 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.259/2.155, allocations: 1.009 MB / 0.9358 GB, free: 188.2 MB / 0.5451 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03901/2.194, allocations: 20.3 MB / 0.9556 GB, free: 183.3 MB / 0.5451 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006722/2.201, allocations: 5.725 MB / 0.9612 GB, free: 182.2 MB / 0.5451 GB Notification: Performance of simCode: alias equations: time 0.005806/2.206, allocations: 2.697 MB / 0.9638 GB, free: 182.1 MB / 0.5451 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001135/2.208, allocations: 409.5 kB / 0.9642 GB, free: 182.1 MB / 0.5451 GB Notification: Performance of SimCode: time 1.132e-06/2.208, allocations: 0 / 0.9642 GB, free: 182.1 MB / 0.5451 GB Notification: Performance of Templates: time 0.1332/2.341, allocations: 98.26 MB / 1.06 GB, free: 87.79 MB / 0.5451 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1b/Engine1b.csv","/var/lib/jenkins/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