Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001102/0.001102, allocations: 107.5 kB / 16.62 MB, free: 6.812 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001182/0.001182, allocations: 193.9 kB / 17.55 MB, free: 5.953 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.302/1.302, allocations: 222.9 MB / 241.2 MB, free: 15.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009623/0.0009624, allocations: 47.72 kB / 300.1 MB, free: 6.133 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08638/0.08736, allocations: 49.45 MB / 349.6 MB, free: 4.676 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.2355/0.3229, allocations: 103.3 MB / 452.9 MB, free: 13.27 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.04258/0.3655, allocations: 19.85 MB / 472.8 MB, free: 9.367 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01614/0.3817, allocations: 470.8 kB / 473.2 MB, free: 8.906 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009658/0.3913, allocations: 5.641 MB / 478.9 MB, free: 3.25 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006797/0.3982, allocations: 3.126 MB / 482 MB, free: 116 kB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002565/0.4008, allocations: 1.494 MB / 483.5 MB, free: 14.62 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01459/0.4154, allocations: 13.45 MB / 496.9 MB, free: 1.145 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00868/0.4241, allocations: 8.023 MB / 0.4931 GB, free: 9.055 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004968/0.4291, allocations: 3.688 MB / 0.4967 GB, free: 5.355 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006345/0.4355, allocations: 5.282 MB / 0.5019 GB, free: 60 kB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001294/0.4368, allocations: 0.711 MB / 0.5026 GB, free: 15.34 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002754/0.4395, allocations: 1.697 MB / 0.5042 GB, free: 13.65 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003456/0.443, allocations: 4.259 MB / 0.5084 GB, free: 9.379 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00425/0.4473, allocations: 4.503 MB / 0.5128 GB, free: 4.852 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0116/0.4589, allocations: 13.4 MB / 0.5259 GB, free: 7.414 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.99e-06/0.4589, allocations: 0 / 0.5259 GB, free: 7.414 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.4589, allocations: 0 / 0.5259 GB, free: 7.414 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0002362/0.4592, allocations: 0 / 0.5259 GB, free: 7.414 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.3024/0.7616, allocations: 9.665 MB / 0.5353 GB, free: 153.1 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.054e-05/0.7617, allocations: 10.28 kB / 0.5353 GB, free: 153.1 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04467/0.8063, allocations: 5.235 MB / 0.5404 GB, free: 152.4 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01745/0.8238, allocations: 7.871 MB / 0.5481 GB, free: 148.8 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003562/0.8242, allocations: 424.2 kB / 0.5485 GB, free: 148.6 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001982/0.8262, allocations: 0.5916 MB / 0.5491 GB, free: 148.4 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02435/0.8506, allocations: 16.55 MB / 0.5653 GB, free: 134.5 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002368/0.8508, allocations: 103.1 kB / 0.5654 GB, free: 134.4 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007019/0.8515, allocations: 263.8 kB / 0.5656 GB, free: 134.2 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003367/0.8549, allocations: 2.764 MB / 0.5683 GB, free: 131.4 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02239/0.8773, allocations: 13.63 MB / 0.5816 GB, free: 117.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.06611/0.9435, allocations: 68.06 MB / 0.6481 GB, free: 47.7 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01731/0.9608, allocations: 7.898 MB / 0.6558 GB, free: 39.66 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004552/0.9654, allocations: 4.514 MB / 0.6602 GB, free: 35.13 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01562/0.981, allocations: 12.42 MB / 0.6723 GB, free: 22.52 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.025e-05/0.9811, allocations: 64.5 kB / 0.6724 GB, free: 22.45 MB / 446.1 MB Notification: Performance of pre-optimization done (n=280): time 5.961e-06/0.9811, allocations: 0 / 0.6724 GB, free: 22.45 MB / 446.1 MB Notification: Performance of matching and sorting (n=339): time 0.3476/1.329, allocations: 50.13 MB / 0.7213 GB, free: 152.8 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001243/1.329, allocations: 394 kB / 0.7217 GB, free: 152.4 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009591/1.339, allocations: 7.124 MB / 0.7287 GB, free: 150 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000791/1.339, allocations: 76.7 kB / 0.7288 GB, free: 149.9 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002632/1.342, allocations: 5.018 MB / 0.7337 GB, free: 146.2 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001246/1.343, allocations: 1.261 MB / 0.7349 GB, free: 145.2 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002135/1.345, allocations: 1.866 MB / 0.7367 GB, free: 144.3 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.599e-05/1.345, allocations: 305.1 kB / 0.737 GB, free: 144.1 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004933/1.35, allocations: 4.545 MB / 0.7414 GB, free: 142.4 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006934/1.357, allocations: 9.263 MB / 0.7505 GB, free: 134.5 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01453/1.372, allocations: 14.53 MB / 0.7647 GB, free: 122 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001479/1.372, allocations: 44 kB / 0.7647 GB, free: 121.9 MB / 462.1 MB Notification: Performance of matching and sorting (n=1184) (initialization): time 0.03602/1.408, allocations: 19.75 MB / 0.784 GB, free: 102.1 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001344/1.408, allocations: 72 kB / 0.7841 GB, free: 102 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001891/1.408, allocations: 160 kB / 0.7842 GB, free: 101.9 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01864/1.427, allocations: 7.073 MB / 0.7911 GB, free: 94.8 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006177/1.433, allocations: 1.931 MB / 0.793 GB, free: 92.87 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04085/1.474, allocations: 35.32 MB / 0.8275 GB, free: 57.14 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007724/1.482, allocations: 0.5843 MB / 0.8281 GB, free: 56.55 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001221/1.483, allocations: 500 kB / 0.8286 GB, free: 56.07 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.005117/1.488, allocations: 3.482 MB / 0.832 GB, free: 52.58 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001511/1.49, allocations: 0.6287 MB / 0.8326 GB, free: 51.94 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02419/1.514, allocations: 13.32 MB / 0.8456 GB, free: 38.55 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.847e-05/1.514, allocations: 39.83 kB / 0.8456 GB, free: 38.51 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.088e-05/1.514, allocations: 24 kB / 0.8456 GB, free: 38.49 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.205e-05/1.514, allocations: 16.5 kB / 0.8457 GB, free: 38.47 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04143/1.556, allocations: 26.69 MB / 0.8717 GB, free: 11.29 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.891e-05/1.556, allocations: 4 kB / 0.8717 GB, free: 11.29 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001897/1.558, allocations: 432.1 kB / 0.8721 GB, free: 10.87 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.2112/1.769, allocations: 6.655 MB / 0.8786 GB, free: 139.4 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001003/1.77, allocations: 59.75 kB / 0.8787 GB, free: 139.4 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04112/1.811, allocations: 34 MB / 0.9119 GB, free: 126 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.712e-06/1.811, allocations: 10.91 kB / 0.9119 GB, free: 126 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03077/1.842, allocations: 18.78 MB / 0.9302 GB, free: 113.2 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002521/1.844, allocations: 0.6893 MB / 0.9309 GB, free: 112.9 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001283/1.846, allocations: 63.98 kB / 0.931 GB, free: 112.8 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003247/1.849, allocations: 303.5 kB / 0.9313 GB, free: 112.5 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009434/1.85, allocations: 247.3 kB / 0.9315 GB, free: 112.3 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000273/1.85, allocations: 94.06 kB / 0.9316 GB, free: 112.2 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.007704/1.858, allocations: 4.555 MB / 0.936 GB, free: 107.7 MB / 462.1 MB Notification: Performance of sort global known variables: time 6.91e-07/1.858, allocations: 0 / 0.936 GB, free: 107.7 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.009404/1.867, allocations: 2.137 MB / 0.9381 GB, free: 105.5 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.000742/1.868, allocations: 216.8 kB / 0.9383 GB, free: 105.3 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.02065/1.889, allocations: 14.41 MB / 0.9524 GB, free: 91.01 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.105e-05/1.889, allocations: 7.844 kB / 0.9524 GB, free: 91 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007177/1.896, allocations: 5.002 MB / 0.9573 GB, free: 86 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006585/1.903, allocations: 0.996 MB / 0.9583 GB, free: 85.05 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03086/1.934, allocations: 23.28 MB / 0.981 GB, free: 61.81 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00561/1.939, allocations: 5.531 MB / 0.9864 GB, free: 56.24 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.005907/1.945, allocations: 2.601 MB / 0.989 GB, free: 53.63 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001087/1.946, allocations: 391.4 kB / 0.9893 GB, free: 53.25 MB / 462.1 MB Notification: Performance of SimCode: time 8.12e-07/1.946, allocations: 0 / 0.9893 GB, free: 53.25 MB / 462.1 MB Notification: Performance of Templates: time 0.3702/2.316, allocations: 98.95 MB / 1.086 GB, free: 112 MB / 462.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1a/Engine1a.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches