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.001243/0.001243, allocations: 114 kB / 17.33 MB, free: 5.98 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001319/0.001319, allocations: 205.8 kB / 18.27 MB, free: 5.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.391/1.391, allocations: 227.4 MB / 246.4 MB, free: 10.72 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001244/0.001244, allocations: 69.25 kB / 306.4 MB, free: 0.9219 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09907/0.1003, allocations: 50.53 MB / 357 MB, free: 14.39 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.2645/0.3649, allocations: 110.6 MB / 467.6 MB, free: 12.73 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04924/0.4142, allocations: 20.85 MB / 488.5 MB, free: 7.82 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01787/0.4321, allocations: 0.5026 MB / 489 MB, free: 7.316 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01118/0.4434, allocations: 6.105 MB / 495.1 MB, free: 1.195 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0079/0.4513, allocations: 3.168 MB / 498.2 MB, free: 14.02 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003482/0.4548, allocations: 1.576 MB / 499.8 MB, free: 12.44 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0167/0.4715, allocations: 14.05 MB / 0.5018 GB, free: 14.36 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0119/0.4835, allocations: 8.448 MB / 0.5101 GB, free: 5.844 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006912/0.4904, allocations: 3.871 MB / 0.5139 GB, free: 1.961 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007474/0.4979, allocations: 5.516 MB / 0.5192 GB, free: 12.43 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00248/0.5005, allocations: 0.746 MB / 0.52 GB, free: 11.68 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004212/0.5047, allocations: 1.705 MB / 0.5216 GB, free: 9.977 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005622/0.5103, allocations: 4.403 MB / 0.5259 GB, free: 5.562 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007747/0.5181, allocations: 4.682 MB / 0.5305 GB, free: 0.8555 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2279/0.746, allocations: 13.83 MB / 0.544 GB, free: 23.76 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.7461, allocations: 0 / 0.544 GB, free: 23.76 MB / 446.1 MB Notification: Performance of FrontEnd: time 8.21e-07/0.7461, allocations: 0.75 kB / 0.544 GB, free: 23.76 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0005734/0.7467, allocations: 0 / 0.544 GB, free: 23.76 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.03663/0.7833, allocations: 10.01 MB / 0.5538 GB, free: 20.17 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.86e-05/0.7833, allocations: 10.53 kB / 0.5538 GB, free: 20.17 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04561/0.829, allocations: 5.275 MB / 0.559 GB, free: 19.62 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01931/0.8483, allocations: 7.898 MB / 0.5667 GB, free: 17.88 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003727/0.8487, allocations: 445.4 kB / 0.5671 GB, free: 17.86 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003251/0.852, allocations: 0.6117 MB / 0.5677 GB, free: 17.84 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03701/0.889, allocations: 17.13 MB / 0.5844 GB, free: 12.22 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003829/0.8894, allocations: 102.8 kB / 0.5845 GB, free: 12.2 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001657/0.8911, allocations: 281.5 kB / 0.5848 GB, free: 12.2 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003941/0.895, allocations: 2.854 MB / 0.5876 GB, free: 11.62 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0325/0.9275, allocations: 14.04 MB / 0.6013 GB, free: 1.543 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.1091/1.037, allocations: 69.99 MB / 0.6696 GB, free: 10.4 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02213/1.059, allocations: 8.203 MB / 0.6776 GB, free: 2.066 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006467/1.065, allocations: 4.636 MB / 0.6822 GB, free: 13.43 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02258/1.088, allocations: 12.77 MB / 0.6946 GB, free: 0.543 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.642e-05/1.088, allocations: 67.92 kB / 0.6947 GB, free: 484 kB / 0.5294 GB Notification: Performance of pre-optimization done (n=293): time 5.37e-06/1.088, allocations: 4 kB / 0.6947 GB, free: 480 kB / 0.5294 GB Notification: Performance of matching and sorting (n=359): time 0.4248/1.513, allocations: 52.41 MB / 0.7459 GB, free: 254.9 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001131/1.513, allocations: 397.1 kB / 0.7463 GB, free: 254.4 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01119/1.524, allocations: 7.268 MB / 0.7534 GB, free: 251.9 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.001224/1.526, allocations: 77.27 kB / 0.7534 GB, free: 251.9 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.003169/1.529, allocations: 5.199 MB / 0.7585 GB, free: 247.9 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.002135/1.531, allocations: 1.335 MB / 0.7598 GB, free: 246.9 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002885/1.534, allocations: 1.914 MB / 0.7617 GB, free: 246 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 5.022e-05/1.534, allocations: 301.1 kB / 0.762 GB, free: 245.7 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006262/1.54, allocations: 4.708 MB / 0.7666 GB, free: 244 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009056/1.549, allocations: 9.543 MB / 0.7759 GB, free: 235.1 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01749/1.567, allocations: 15.01 MB / 0.7905 GB, free: 219 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001466/1.567, allocations: 44 kB / 0.7906 GB, free: 219 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1220) (initialization): time 0.04237/1.609, allocations: 20.45 MB / 0.8106 GB, free: 200.1 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002111/1.609, allocations: 76 kB / 0.8106 GB, free: 200 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002949/1.61, allocations: 164 kB / 0.8108 GB, free: 199.8 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02093/1.631, allocations: 7.353 MB / 0.818 GB, free: 192.5 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007758/1.639, allocations: 2 MB / 0.8199 GB, free: 190.5 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04611/1.685, allocations: 36.58 MB / 0.8556 GB, free: 153.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009325/1.694, allocations: 0.5968 MB / 0.8562 GB, free: 152.9 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001833/1.696, allocations: 0.5017 MB / 0.8567 GB, free: 152.4 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.008037/1.704, allocations: 3.605 MB / 0.8602 GB, free: 148.8 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002038/1.706, allocations: 0.6595 MB / 0.8609 GB, free: 148.1 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02755/1.734, allocations: 13.92 MB / 0.8745 GB, free: 134.1 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.979e-05/1.734, allocations: 36 kB / 0.8745 GB, free: 134.1 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.684e-05/1.734, allocations: 24 kB / 0.8745 GB, free: 134 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.599e-05/1.734, allocations: 15.94 kB / 0.8745 GB, free: 134 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04699/1.781, allocations: 27.85 MB / 0.9017 GB, free: 105.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.262e-05/1.781, allocations: 4 kB / 0.9017 GB, free: 105.7 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002149/1.783, allocations: 467.3 kB / 0.9022 GB, free: 105.3 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01846/1.801, allocations: 6.991 MB / 0.909 GB, free: 98.25 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001044/1.803, allocations: 63.98 kB / 0.9091 GB, free: 98.19 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04189/1.844, allocations: 35.34 MB / 0.9436 GB, free: 62.44 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.588e-06/1.845, allocations: 15.69 kB / 0.9436 GB, free: 62.43 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03437/1.879, allocations: 19.69 MB / 0.9628 GB, free: 42.55 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003257/1.882, allocations: 0.7034 MB / 0.9635 GB, free: 41.82 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002997/1.885, allocations: 64 kB / 0.9636 GB, free: 41.76 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005328/1.891, allocations: 323.5 kB / 0.9639 GB, free: 41.45 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001626/1.892, allocations: 254.8 kB / 0.9641 GB, free: 41.2 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007984/1.893, allocations: 95.75 kB / 0.9642 GB, free: 41.11 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.009449/1.902, allocations: 4.642 MB / 0.9688 GB, free: 36.5 MB / 0.5606 GB Notification: Performance of sort global known variables: time 4.1e-07/1.902, allocations: 4 kB / 0.9688 GB, free: 36.49 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.01447/1.917, allocations: 2.209 MB / 0.9709 GB, free: 34.29 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.001785/1.919, allocations: 214.4 kB / 0.9711 GB, free: 34.08 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.2601/2.179, allocations: 15.34 MB / 0.9861 GB, free: 244.2 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.561e-05/2.179, allocations: 1.844 kB / 0.9861 GB, free: 244.2 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.01358/2.193, allocations: 5.272 MB / 0.9912 GB, free: 243.7 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007909/2.2, allocations: 1.018 MB / 0.9922 GB, free: 243.6 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04586/2.246, allocations: 24.23 MB / 1.016 GB, free: 234.1 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01079/2.257, allocations: 5.72 MB / 1.021 GB, free: 232.2 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.008154/2.265, allocations: 2.698 MB / 1.024 GB, free: 232 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00157/2.267, allocations: 396.9 kB / 1.025 GB, free: 232 MB / 0.5606 GB Notification: Performance of SimCode: time 1.402e-06/2.267, allocations: 0 / 1.025 GB, free: 232 MB / 0.5606 GB Notification: Performance of Templates: time 0.1681/2.435, allocations: 103.3 MB / 1.125 GB, free: 135.6 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/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