Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.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.Engine1a,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001065/0.001065, allocations: 95.25 kB / 18 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.00113/0.001131, 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.358/1.358, allocations: 227.7 MB / 247.5 MB, free: 9.473 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002423/0.0002426, allocations: 8 kB / 308.4 MB, free: 0.5508 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08661/0.08686, allocations: 51.52 MB / 359.9 MB, free: 13.03 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.2504/0.3373, allocations: 100.3 MB / 460.2 MB, free: 6.266 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.04173/0.3791, allocations: 19.56 MB / 479.7 MB, free: 2.641 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01736/0.3965, allocations: 470.8 kB / 480.2 MB, free: 2.18 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002523/0.399, allocations: 0.7073 MB / 480.9 MB, free: 1.469 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007694/0.4068, allocations: 3.145 MB / 484 MB, free: 14.32 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003007/0.4098, allocations: 1.455 MB / 485.5 MB, free: 12.86 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0186/0.4284, allocations: 17.62 MB / 0.4913 GB, free: 11.21 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01379/0.4422, allocations: 10.16 MB / 0.5012 GB, free: 0.9453 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004726/0.447, allocations: 2.7 MB / 0.5039 GB, free: 14.23 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006423/0.4534, allocations: 4.427 MB / 0.5082 GB, free: 9.793 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001435/0.4549, allocations: 276 kB / 0.5085 GB, free: 9.523 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003196/0.4581, allocations: 1.291 MB / 0.5097 GB, free: 8.23 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004094/0.4622, allocations: 3.681 MB / 0.5133 GB, free: 4.539 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005458/0.4677, allocations: 3.849 MB / 0.5171 GB, free: 0.6602 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01024/0.4779, allocations: 10.53 MB / 0.5274 GB, free: 6.105 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.753e-06/0.478, allocations: 8 kB / 0.5274 GB, free: 6.098 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.725e-06/0.478, allocations: 0 / 0.5274 GB, free: 6.098 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003909/0.4784, allocations: 0 / 0.5274 GB, free: 6.098 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: 2386 * Number of variables: 2386 Notification: Performance of Generate backend data structure: time 0.3247/0.8031, allocations: 7.977 MB / 0.5352 GB, free: 146.5 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.426e-05/0.8031, allocations: 8.719 kB / 0.5352 GB, free: 146.5 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04908/0.8522, allocations: 5.356 MB / 0.5404 GB, free: 146 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01881/0.8711, allocations: 7.704 MB / 0.5479 GB, free: 142.7 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004197/0.8715, allocations: 432.6 kB / 0.5483 GB, free: 142.5 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002098/0.8736, allocations: 0.5836 MB / 0.5489 GB, free: 142.3 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02749/0.9011, allocations: 16.63 MB / 0.5652 GB, free: 129.6 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000264/0.9014, allocations: 99.11 kB / 0.5653 GB, free: 129.5 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009217/0.9024, allocations: 268.6 kB / 0.5655 GB, free: 129.3 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00369/0.9061, allocations: 2.765 MB / 0.5682 GB, free: 126.5 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02426/0.9303, allocations: 13.69 MB / 0.5816 GB, free: 112.8 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.07014/1.001, allocations: 68.11 MB / 0.6481 GB, free: 43 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01784/1.018, allocations: 7.954 MB / 0.6559 GB, free: 34.91 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004691/1.023, allocations: 4.51 MB / 0.6603 GB, free: 30.39 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0161/1.039, allocations: 12.4 MB / 0.6724 GB, free: 17.88 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.149e-05/1.039, allocations: 72.56 kB / 0.6724 GB, free: 17.8 MB / 446.1 MB Notification: Performance of pre-optimization done (n=280): time 5.47e-06/1.039, allocations: 0 / 0.6724 GB, free: 17.8 MB / 446.1 MB Notification: Performance of matching and sorting (n=339): time 0.3823/1.422, allocations: 50.99 MB / 0.7222 GB, free: 144.7 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001432/1.422, allocations: 402.3 kB / 0.7226 GB, free: 144.2 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01181/1.434, allocations: 7.113 MB / 0.7296 GB, free: 141.8 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001024/1.435, allocations: 77.36 kB / 0.7296 GB, free: 141.7 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002973/1.438, allocations: 5.015 MB / 0.7345 GB, free: 137.9 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001597/1.439, allocations: 1.263 MB / 0.7358 GB, free: 136.9 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000988/1.44, allocations: 0.8069 MB / 0.7366 GB, free: 136.6 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.764e-05/1.44, allocations: 301.1 kB / 0.7369 GB, free: 136.3 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005275/1.446, allocations: 4.544 MB / 0.7413 GB, free: 134.7 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00652/1.452, allocations: 9.269 MB / 0.7503 GB, free: 126.5 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01298/1.465, allocations: 14.54 MB / 0.7645 GB, free: 112.3 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.629e-05/1.465, allocations: 44 kB / 0.7646 GB, free: 112.2 MB / 462.1 MB Notification: Performance of matching and sorting (n=1184) (initialization): time 0.03403/1.499, allocations: 19.76 MB / 0.7839 GB, free: 92.44 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.525e-05/1.499, allocations: 79.98 kB / 0.784 GB, free: 92.36 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001211/1.5, allocations: 160 kB / 0.7841 GB, free: 92.2 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01903/1.519, allocations: 7.069 MB / 0.791 GB, free: 85.12 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005632/1.524, allocations: 1.93 MB / 0.7929 GB, free: 83.18 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04026/1.564, allocations: 33.21 MB / 0.8253 GB, free: 49.58 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008994/1.573, allocations: 0.6031 MB / 0.8259 GB, free: 48.98 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001721/1.575, allocations: 496 kB / 0.8264 GB, free: 48.49 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 733 * Number of states: 0 () * Number of discrete variables: 66 (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 (1048): * Single equations (assignments): 1042 * 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,93,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.006984/1.582, allocations: 3.47 MB / 0.8298 GB, free: 45.01 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00195/1.584, allocations: 0.6287 MB / 0.8304 GB, free: 44.38 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02634/1.611, allocations: 13.32 MB / 0.8434 GB, free: 30.98 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.546e-05/1.611, allocations: 46.05 kB / 0.8434 GB, free: 30.94 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.06e-05/1.611, allocations: 23.98 kB / 0.8435 GB, free: 30.92 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.184e-05/1.611, allocations: 11.95 kB / 0.8435 GB, free: 30.91 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0443/1.655, allocations: 26.72 MB / 0.8696 GB, free: 3.688 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.463e-05/1.655, allocations: 8 kB / 0.8696 GB, free: 3.68 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001957/1.657, allocations: 423.2 kB / 0.87 GB, free: 3.27 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.2432/1.9, allocations: 6.676 MB / 0.8765 GB, free: 132.8 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009556/1.901, allocations: 62.52 kB / 0.8766 GB, free: 132.8 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04603/1.947, allocations: 31.97 MB / 0.9078 GB, free: 120.6 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.065e-06/1.947, allocations: 12.81 kB / 0.9078 GB, free: 120.6 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03496/1.982, allocations: 18.77 MB / 0.9261 GB, free: 109.7 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002378/1.985, allocations: 0.7 MB / 0.9268 GB, free: 109.4 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002865/1.988, allocations: 63.94 kB / 0.9269 GB, free: 109.3 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006266/1.994, allocations: 311.1 kB / 0.9272 GB, free: 109 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001585/1.996, allocations: 244.8 kB / 0.9274 GB, free: 108.8 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007407/1.996, allocations: 89.17 kB / 0.9275 GB, free: 108.7 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.008388/2.005, allocations: 4.555 MB / 0.9319 GB, free: 104.1 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.81e-07/2.005, allocations: 0 / 0.9319 GB, free: 104.1 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.01103/2.016, allocations: 2.111 MB / 0.934 GB, free: 102 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * 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 (214): * Single equations (assignments): 208 * 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,87,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.001184/2.017, allocations: 209.7 kB / 0.9342 GB, free: 101.8 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01837/2.035, allocations: 11.58 MB / 0.9455 GB, free: 90.3 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.15e-05/2.035, allocations: 4 kB / 0.9455 GB, free: 90.3 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00885/2.044, allocations: 4.999 MB / 0.9504 GB, free: 85.3 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01429/2.059, allocations: 0.9354 MB / 0.9513 GB, free: 84.39 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03533/2.094, allocations: 23.83 MB / 0.9746 GB, free: 60.57 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006034/2.1, allocations: 5.457 MB / 0.9799 GB, free: 55.08 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001772/2.102, allocations: 439.4 kB / 0.9803 GB, free: 54.65 MB / 462.1 MB Notification: Performance of SimCode: time 8.81e-07/2.102, allocations: 0 / 0.9803 GB, free: 54.65 MB / 462.1 MB Notification: Performance of Templates: time 0.4679/2.57, allocations: 204.7 MB / 1.18 GB, free: 18.48 MB / 478.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1a/Engine1a.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches