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.001594/0.001594, allocations: 118.8 kB / 17.79 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.001681/0.001682, allocations: 202 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.377/1.377, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001707/0.001707, allocations: 63.89 kB / 358.8 MB, free: 12.87 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2687/0.2704, allocations: 50.53 MB / 409.3 MB, free: 1.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.02156/0.292, allocations: 20.44 MB / 429.7 MB, free: 13.06 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01409/0.3061, allocations: 6.187 MB / 435.9 MB, free: 6.859 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003848/0.31, allocations: 171.4 kB / 436.1 MB, free: 6.691 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01171/0.3218, allocations: 6.328 MB / 442.4 MB, free: 352 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009061/0.3309, allocations: 3.389 MB / 445.8 MB, free: 12.94 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003805/0.3347, allocations: 1.658 MB / 447.5 MB, free: 11.28 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01754/0.3523, allocations: 12.94 MB / 460.4 MB, free: 14.31 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0133/0.3656, allocations: 8.054 MB / 468.4 MB, free: 6.172 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006689/0.3723, allocations: 3.758 MB / 472.2 MB, free: 2.402 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00723/0.3796, allocations: 4.958 MB / 477.2 MB, free: 13.43 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002429/0.3821, allocations: 0.7461 MB / 477.9 MB, free: 12.68 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004325/0.3864, allocations: 1.698 MB / 479.6 MB, free: 10.98 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005574/0.392, allocations: 4.439 MB / 484 MB, free: 6.535 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007315/0.3994, allocations: 4.639 MB / 488.7 MB, free: 1.871 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01609/0.4155, allocations: 14.1 MB / 0.491 GB, free: 3.723 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.667e-06/0.4155, allocations: 3.984 kB / 0.491 GB, free: 3.719 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.264e-06/0.4155, allocations: 4 kB / 0.491 GB, free: 3.715 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0005339/0.4161, allocations: 0 / 0.491 GB, free: 3.715 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.02924/0.4453, allocations: 10.01 MB / 0.5008 GB, free: 9.617 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.768e-05/0.4454, allocations: 8.031 kB / 0.5008 GB, free: 9.609 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04953/0.4949, allocations: 5.275 MB / 0.5059 GB, free: 4.316 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02014/0.5151, allocations: 8.091 MB / 0.5138 GB, free: 12.16 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004446/0.5156, allocations: 451.9 kB / 0.5143 GB, free: 11.72 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002197/0.5178, allocations: 0.6127 MB / 0.5149 GB, free: 11.11 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0339/0.5517, allocations: 17.13 MB / 0.5316 GB, free: 8.914 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003619/0.5521, allocations: 99.11 kB / 0.5317 GB, free: 8.816 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00148/0.5536, allocations: 275.8 kB / 0.532 GB, free: 8.547 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004434/0.558, allocations: 2.862 MB / 0.5348 GB, free: 5.68 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.409/0.967, allocations: 14.02 MB / 0.5484 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.07231/1.039, allocations: 69.67 MB / 0.6165 GB, free: 48.4 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0183/1.058, allocations: 8.196 MB / 0.6245 GB, free: 40.1 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004454/1.062, allocations: 4.634 MB / 0.629 GB, free: 35.46 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01679/1.079, allocations: 12.75 MB / 0.6415 GB, free: 22.58 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.88e-05/1.079, allocations: 72.5 kB / 0.6415 GB, free: 22.5 MB / 462.1 MB Notification: Performance of pre-optimization done (n=293): time 6.082e-06/1.079, allocations: 0.8438 kB / 0.6415 GB, free: 22.5 MB / 462.1 MB Notification: Performance of matching and sorting (n=359): time 0.1879/1.267, allocations: 52.43 MB / 0.6927 GB, free: 2.141 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001796/1.267, allocations: 398.2 kB / 0.6931 GB, free: 1.664 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0115/1.279, allocations: 7.265 MB / 0.7002 GB, free: 10.43 MB / 0.4982 GB Notification: Performance of collectPreVariables (initialization): time 0.001101/1.28, allocations: 77.7 kB / 0.7003 GB, free: 10.34 MB / 0.4982 GB Notification: Performance of collectInitialEqns (initialization): time 0.004425/1.284, allocations: 5.202 MB / 0.7054 GB, free: 5.086 MB / 0.4982 GB Notification: Performance of collectInitialBindings (initialization): time 0.00214/1.286, allocations: 1.328 MB / 0.7067 GB, free: 3.742 MB / 0.4982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003079/1.29, allocations: 1.912 MB / 0.7085 GB, free: 1.816 MB / 0.4982 GB Notification: Performance of setup shared object (initialization): time 8.993e-05/1.29, allocations: 305.1 kB / 0.7088 GB, free: 1.516 MB / 0.4982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00671/1.296, allocations: 4.707 MB / 0.7134 GB, free: 12.8 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01125/1.308, allocations: 9.538 MB / 0.7227 GB, free: 0.918 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2951/1.603, allocations: 15 MB / 0.7374 GB, free: 171.5 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001815/1.603, allocations: 47.34 kB / 0.7374 GB, free: 171.5 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1220) (initialization): time 0.04375/1.647, allocations: 20.46 MB / 0.7574 GB, free: 166.6 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001073/1.647, allocations: 75.56 kB / 0.7575 GB, free: 166.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001683/1.647, allocations: 165.5 kB / 0.7576 GB, free: 166.6 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02163/1.669, allocations: 7.332 MB / 0.7648 GB, free: 165.3 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00651/1.675, allocations: 2.001 MB / 0.7667 GB, free: 165.1 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04169/1.717, allocations: 36.57 MB / 0.8025 GB, free: 132.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008409/1.725, allocations: 0.6073 MB / 0.8031 GB, free: 131.9 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001871/1.727, allocations: 0.4961 MB / 0.8035 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.005859/1.733, allocations: 3.598 MB / 0.8071 GB, free: 127.9 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001379/1.735, allocations: 0.6534 MB / 0.8077 GB, free: 127.6 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02661/1.761, allocations: 13.92 MB / 0.8213 GB, free: 113.7 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.283e-05/1.761, allocations: 36 kB / 0.8213 GB, free: 113.6 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.615e-05/1.761, allocations: 20 kB / 0.8213 GB, free: 113.6 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.864e-05/1.761, allocations: 15.94 kB / 0.8214 GB, free: 113.6 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06612/1.828, allocations: 27.69 MB / 0.8484 GB, free: 85.61 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.41e-05/1.828, allocations: 12 kB / 0.8484 GB, free: 85.6 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002927/1.831, allocations: 464 kB / 0.8488 GB, free: 85.14 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03104/1.862, allocations: 6.968 MB / 0.8557 GB, free: 78.16 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001277/1.863, allocations: 63.98 kB / 0.8557 GB, free: 78.1 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0688/1.932, allocations: 35.34 MB / 0.8902 GB, free: 42.56 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-05/1.932, allocations: 7.938 kB / 0.8902 GB, free: 42.55 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04345/1.975, allocations: 19.7 MB / 0.9095 GB, free: 22.72 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002251/1.978, allocations: 0.7065 MB / 0.9102 GB, free: 22 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002264/1.98, allocations: 62.66 kB / 0.9102 GB, free: 21.94 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005017/1.985, allocations: 327.4 kB / 0.9105 GB, free: 21.62 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001392/1.986, allocations: 247.1 kB / 0.9108 GB, free: 21.38 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008111/1.987, allocations: 99.94 kB / 0.9109 GB, free: 21.28 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.00863/1.996, allocations: 4.646 MB / 0.9154 GB, free: 16.66 MB / 0.5294 GB Notification: Performance of sort global known variables: time 5.41e-07/1.996, allocations: 3.938 kB / 0.9154 GB, free: 16.66 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0134/2.009, allocations: 2.209 MB / 0.9176 GB, free: 14.46 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.001289/2.011, allocations: 213.6 kB / 0.9178 GB, free: 14.25 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01902/2.03, allocations: 12.06 MB / 0.9295 GB, free: 2.164 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.134e-05/2.03, allocations: 0.9375 kB / 0.9296 GB, free: 2.164 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.01008/2.04, allocations: 5.266 MB / 0.9347 GB, free: 12.85 MB / 0.5451 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.2448/2.285, allocations: 1.012 MB / 0.9357 GB, free: 188.3 MB / 0.5451 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04123/2.326, allocations: 20.3 MB / 0.9555 GB, free: 183.4 MB / 0.5451 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008116/2.334, allocations: 5.729 MB / 0.9611 GB, free: 182.3 MB / 0.5451 GB Notification: Performance of simCode: alias equations: time 0.006416/2.341, allocations: 2.693 MB / 0.9637 GB, free: 182.3 MB / 0.5451 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001608/2.342, allocations: 407.9 kB / 0.9641 GB, free: 182.2 MB / 0.5451 GB Notification: Performance of SimCode: time 1.673e-06/2.342, allocations: 0 / 0.9641 GB, free: 182.2 MB / 0.5451 GB Notification: Performance of Templates: time 0.1456/2.488, allocations: 99.58 MB / 1.061 GB, free: 86.6 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