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.001067/0.001067, allocations: 91.2 kB / 16.65 MB, free: 6.586 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.001207/0.001207, allocations: 185.2 kB / 17.57 MB, free: 6.203 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.389/1.389, allocations: 223.3 MB / 241.6 MB, free: 14.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002896/0.0002893, allocations: 7.938 kB / 301.4 MB, free: 5.91 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.113/0.1133, allocations: 50.41 MB / 351.8 MB, free: 3.488 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.2887/0.402, allocations: 101 MB / 452.8 MB, free: 15.16 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.05332/0.4554, allocations: 19.87 MB / 472.7 MB, free: 11.22 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02438/0.4798, allocations: 474.8 kB / 473.1 MB, free: 10.75 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003655/0.4835, allocations: 0.7111 MB / 473.8 MB, free: 10.04 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0112/0.4948, allocations: 3.166 MB / 477 MB, free: 6.863 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004226/0.499, allocations: 1.457 MB / 478.5 MB, free: 5.406 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0239/0.5229, allocations: 17.32 MB / 495.8 MB, free: 4.062 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01576/0.5387, allocations: 10.16 MB / 0.4941 GB, free: 9.801 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005444/0.5442, allocations: 2.7 MB / 0.4967 GB, free: 7.09 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007149/0.5514, allocations: 4.431 MB / 0.501 GB, free: 2.645 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001459/0.5529, allocations: 280 kB / 0.5013 GB, free: 2.371 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003027/0.5559, allocations: 1.311 MB / 0.5026 GB, free: 1.059 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003955/0.5599, allocations: 3.709 MB / 0.5062 GB, free: 13.34 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005432/0.5654, allocations: 3.88 MB / 0.51 GB, free: 9.43 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01345/0.5789, allocations: 12.72 MB / 0.5224 GB, free: 12.67 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.063e-06/0.5789, allocations: 0 / 0.5224 GB, free: 12.67 MB / 446.1 MB Notification: Performance of FrontEnd: time 3.125e-06/0.5789, allocations: 0 / 0.5224 GB, free: 12.67 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004021/0.5793, allocations: 0 / 0.5224 GB, free: 12.67 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.01863/0.598, allocations: 8.004 MB / 0.5302 GB, free: 4.578 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.195e-05/0.598, allocations: 8.031 kB / 0.5302 GB, free: 4.57 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.4755/1.074, allocations: 5.346 MB / 0.5355 GB, free: 50.46 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0217/1.095, allocations: 7.87 MB / 0.5432 GB, free: 49.57 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006826/1.096, allocations: 429.5 kB / 0.5436 GB, free: 49.56 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002875/1.099, allocations: 0.5846 MB / 0.5441 GB, free: 49.54 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03129/1.13, allocations: 16.63 MB / 0.5604 GB, free: 46.66 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000448/1.131, allocations: 103.6 kB / 0.5605 GB, free: 46.64 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00111/1.132, allocations: 267.2 kB / 0.5607 GB, free: 46.64 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004364/1.136, allocations: 2.761 MB / 0.5634 GB, free: 46.62 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02897/1.165, allocations: 13.69 MB / 0.5768 GB, free: 41.16 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.08277/1.248, allocations: 68.11 MB / 0.6433 GB, free: 3.898 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02048/1.269, allocations: 7.95 MB / 0.6511 GB, free: 11.82 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006284/1.275, allocations: 4.518 MB / 0.6555 GB, free: 7.293 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01931/1.294, allocations: 12.4 MB / 0.6676 GB, free: 10.79 MB / 0.4982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.944e-05/1.294, allocations: 67.12 kB / 0.6677 GB, free: 10.72 MB / 0.4982 GB Notification: Performance of pre-optimization done (n=280): time 5.009e-06/1.294, allocations: 1.75 kB / 0.6677 GB, free: 10.72 MB / 0.4982 GB Notification: Performance of matching and sorting (n=339): time 0.1882/1.483, allocations: 51 MB / 0.7175 GB, free: 7.949 MB / 0.5451 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002189/1.483, allocations: 402 kB / 0.7178 GB, free: 7.469 MB / 0.5451 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01121/1.494, allocations: 7.119 MB / 0.7248 GB, free: 384 kB / 0.5451 GB Notification: Performance of collectPreVariables (initialization): time 0.001003/1.495, allocations: 79.77 kB / 0.7249 GB, free: 300 kB / 0.5451 GB Notification: Performance of collectInitialEqns (initialization): time 0.2066/1.702, allocations: 5.018 MB / 0.7298 GB, free: 245.9 MB / 0.5451 GB Notification: Performance of collectInitialBindings (initialization): time 0.002081/1.704, allocations: 1.257 MB / 0.731 GB, free: 244.9 MB / 0.5451 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001554/1.705, allocations: 0.8035 MB / 0.7318 GB, free: 244.6 MB / 0.5451 GB Notification: Performance of setup shared object (initialization): time 4.881e-05/1.705, allocations: 307.2 kB / 0.7321 GB, free: 244.3 MB / 0.5451 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006801/1.712, allocations: 4.541 MB / 0.7365 GB, free: 242.7 MB / 0.5451 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008595/1.721, allocations: 9.27 MB / 0.7456 GB, free: 234.8 MB / 0.5451 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01551/1.736, allocations: 14.53 MB / 0.7598 GB, free: 224.3 MB / 0.5451 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002134/1.737, allocations: 45.16 kB / 0.7598 GB, free: 224.3 MB / 0.5451 GB Notification: Performance of matching and sorting (n=1184) (initialization): time 0.03744/1.774, allocations: 19.77 MB / 0.7791 GB, free: 216.6 MB / 0.5451 GB Notification: Performance of prepare postOptimizeDAE: time 9.182e-05/1.774, allocations: 76.03 kB / 0.7792 GB, free: 216.5 MB / 0.5451 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001233/1.774, allocations: 160 kB / 0.7793 GB, free: 216.3 MB / 0.5451 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01879/1.793, allocations: 7.07 MB / 0.7862 GB, free: 210.2 MB / 0.5451 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005807/1.799, allocations: 1.926 MB / 0.7881 GB, free: 208.3 MB / 0.5451 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03784/1.837, allocations: 33.22 MB / 0.8206 GB, free: 174.7 MB / 0.5451 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007946/1.845, allocations: 0.5941 MB / 0.8211 GB, free: 174.1 MB / 0.5451 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001467/1.846, allocations: 496 kB / 0.8216 GB, free: 173.6 MB / 0.5451 GB 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.006217/1.853, allocations: 3.473 MB / 0.825 GB, free: 170.1 MB / 0.5451 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001379/1.854, allocations: 0.6325 MB / 0.8256 GB, free: 169.5 MB / 0.5451 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02567/1.88, allocations: 13.32 MB / 0.8386 GB, free: 156.1 MB / 0.5451 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.059e-05/1.88, allocations: 40.64 kB / 0.8387 GB, free: 156.1 MB / 0.5451 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.336e-05/1.88, allocations: 24 kB / 0.8387 GB, free: 156 MB / 0.5451 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.76e-05/1.88, allocations: 15.94 kB / 0.8387 GB, free: 156 MB / 0.5451 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04353/1.923, allocations: 26.72 MB / 0.8648 GB, free: 128.8 MB / 0.5451 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.951e-05/1.923, allocations: 12.66 kB / 0.8648 GB, free: 128.8 MB / 0.5451 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001974/1.925, allocations: 423.3 kB / 0.8652 GB, free: 128.4 MB / 0.5451 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01897/1.944, allocations: 6.681 MB / 0.8717 GB, free: 121.7 MB / 0.5451 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007016/1.945, allocations: 60 kB / 0.8718 GB, free: 121.6 MB / 0.5451 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03716/1.982, allocations: 31.98 MB / 0.903 GB, free: 89.28 MB / 0.5451 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.416e-06/1.982, allocations: 7.938 kB / 0.903 GB, free: 89.27 MB / 0.5451 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0328/2.015, allocations: 18.79 MB / 0.9214 GB, free: 70.28 MB / 0.5451 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002546/2.018, allocations: 0.6919 MB / 0.9221 GB, free: 69.56 MB / 0.5451 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001922/2.02, allocations: 63.98 kB / 0.9221 GB, free: 69.5 MB / 0.5451 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003924/2.024, allocations: 307.5 kB / 0.9224 GB, free: 69.2 MB / 0.5451 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001034/2.025, allocations: 246.6 kB / 0.9226 GB, free: 68.95 MB / 0.5451 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002675/2.025, allocations: 86.73 kB / 0.9227 GB, free: 68.87 MB / 0.5451 GB Notification: Performance of sorting global known variables: time 0.006967/2.032, allocations: 4.559 MB / 0.9272 GB, free: 64.34 MB / 0.5451 GB Notification: Performance of sort global known variables: time 8.51e-07/2.032, allocations: 0 / 0.9272 GB, free: 64.34 MB / 0.5451 GB Notification: Performance of remove unused functions: time 0.009761/2.042, allocations: 2.135 MB / 0.9293 GB, free: 62.21 MB / 0.5451 GB 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.0008422/2.043, allocations: 218.7 kB / 0.9295 GB, free: 61.99 MB / 0.5451 GB Notification: Performance of simCode: created initialization part: time 0.017/2.06, allocations: 11.58 MB / 0.9408 GB, free: 50.38 MB / 0.5451 GB Notification: Performance of simCode: created event and clocks part: time 1.251e-05/2.06, allocations: 0 / 0.9408 GB, free: 50.38 MB / 0.5451 GB Notification: Performance of simCode: created simulation system equations: time 0.00833/2.068, allocations: 4.997 MB / 0.9457 GB, free: 45.34 MB / 0.5451 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01267/2.081, allocations: 0.9433 MB / 0.9466 GB, free: 44.4 MB / 0.5451 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2585/2.339, allocations: 23.34 MB / 0.9694 GB, free: 224.3 MB / 0.5451 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01256/2.352, allocations: 5.537 MB / 0.9748 GB, free: 223.4 MB / 0.5451 GB Notification: Performance of simCode: alias equations: time 0.008427/2.36, allocations: 2.602 MB / 0.9773 GB, free: 223.3 MB / 0.5451 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001718/2.362, allocations: 392 kB / 0.9777 GB, free: 223.3 MB / 0.5451 GB Notification: Performance of SimCode: time 9.82e-07/2.362, allocations: 0 / 0.9777 GB, free: 223.3 MB / 0.5451 GB Notification: Performance of Templates: time 0.1429/2.505, allocations: 93.08 MB / 1.069 GB, free: 157.7 MB / 0.5451 GB 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