Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.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.Engine1b,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001431/0.001431, allocations: 113.6 kB / 17.69 MB, free: 5.297 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.001593/0.001594, allocations: 191 kB / 18.63 MB, free: 4.363 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.353/1.353, allocations: 222.9 MB / 242.3 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009414/0.0009414, allocations: 52.64 kB / 302.1 MB, free: 5.152 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09324/0.0942, allocations: 49.44 MB / 351.5 MB, free: 3.68 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.1725/0.2667, allocations: 20.5 MB / 372 MB, free: 9.738 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01289/0.2796, allocations: 6.192 MB / 378.2 MB, free: 9.41 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004649/0.2843, allocations: 165.9 kB / 378.4 MB, free: 9.41 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01128/0.2956, allocations: 6.357 MB / 384.7 MB, free: 7.535 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009435/0.3051, allocations: 3.422 MB / 388.2 MB, free: 6.113 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004249/0.3094, allocations: 1.664 MB / 389.8 MB, free: 5.082 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01572/0.3251, allocations: 12.66 MB / 402.5 MB, free: 15.08 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01051/0.3357, allocations: 8.064 MB / 410.5 MB, free: 7.105 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006575/0.3423, allocations: 3.747 MB / 414.3 MB, free: 3.57 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01048/0.3528, allocations: 4.955 MB / 419.2 MB, free: 14.89 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002773/0.3556, allocations: 0.7461 MB / 420 MB, free: 14.15 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004917/0.3606, allocations: 1.713 MB / 421.7 MB, free: 12.48 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005403/0.366, allocations: 4.35 MB / 426.1 MB, free: 8.137 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008385/0.3744, allocations: 4.667 MB / 430.7 MB, free: 3.465 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01789/0.3923, allocations: 14.17 MB / 444.9 MB, free: 5.59 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.253e-06/0.3924, allocations: 0 / 444.9 MB, free: 5.59 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.3924, allocations: 4 kB / 444.9 MB, free: 5.586 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0004869/0.3929, allocations: 0 / 444.9 MB, free: 5.586 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2489 * Number of variables: 2489 Notification: Performance of Generate backend data structure: time 0.02493/0.4178, allocations: 10.03 MB / 454.9 MB, free: 11.62 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.769e-05/0.4179, allocations: 12.03 kB / 454.9 MB, free: 11.61 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04043/0.4583, allocations: 5.278 MB / 460.2 MB, free: 6.312 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02043/0.4788, allocations: 8.245 MB / 468.5 MB, free: 14.11 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003821/0.4792, allocations: 456.6 kB / 468.9 MB, free: 13.71 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002191/0.4814, allocations: 0.61 MB / 469.5 MB, free: 13.15 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0336/0.515, allocations: 17.13 MB / 486.6 MB, free: 11.12 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004469/0.5155, allocations: 95.11 kB / 486.7 MB, free: 11.02 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001852/0.5174, allocations: 284.7 kB / 487 MB, free: 10.8 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004539/0.5219, allocations: 2.859 MB / 489.9 MB, free: 7.945 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03269/0.5546, allocations: 14.04 MB / 0.4921 GB, free: 9.895 MB / 414.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.4118/0.9665, allocations: 69.68 MB / 0.5602 GB, free: 101 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01977/0.9863, allocations: 8.216 MB / 0.5682 GB, free: 99.58 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004623/0.9909, allocations: 4.64 MB / 0.5727 GB, free: 97.61 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01795/1.009, allocations: 12.77 MB / 0.5852 GB, free: 91.82 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.679e-05/1.009, allocations: 71 kB / 0.5852 GB, free: 91.77 MB / 446.1 MB Notification: Performance of pre-optimization done (n=294): time 4.799e-06/1.009, allocations: 3.969 kB / 0.5853 GB, free: 91.77 MB / 446.1 MB Notification: Performance of matching and sorting (n=360): time 0.1677/1.177, allocations: 52.48 MB / 0.6365 GB, free: 47.15 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001224/1.177, allocations: 405.8 kB / 0.6369 GB, free: 46.67 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00972/1.187, allocations: 7.276 MB / 0.644 GB, free: 39.42 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001239/1.188, allocations: 81.64 kB / 0.6441 GB, free: 39.33 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002866/1.191, allocations: 5.206 MB / 0.6492 GB, free: 34.13 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002083/1.193, allocations: 1.331 MB / 0.6505 GB, free: 32.81 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003271/1.196, allocations: 1.915 MB / 0.6523 GB, free: 30.88 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.599e-05/1.196, allocations: 301.1 kB / 0.6526 GB, free: 30.59 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005225/1.201, allocations: 4.711 MB / 0.6572 GB, free: 25.87 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007326/1.209, allocations: 9.541 MB / 0.6665 GB, free: 14.05 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01494/1.224, allocations: 15.01 MB / 0.6812 GB, free: 12.71 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001184/1.224, allocations: 48 kB / 0.6812 GB, free: 12.66 MB / 462.1 MB Notification: Performance of matching and sorting (n=1221) (initialization): time 0.04231/1.266, allocations: 20.46 MB / 0.7012 GB, free: 8.148 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.905e-05/1.266, allocations: 76 kB / 0.7013 GB, free: 8.074 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000159/1.266, allocations: 164 kB / 0.7015 GB, free: 7.914 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02192/1.288, allocations: 7.312 MB / 0.7086 GB, free: 0.5781 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.2088/1.497, allocations: 1.995 MB / 0.7105 GB, free: 154.2 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04804/1.545, allocations: 36.54 MB / 0.7462 GB, free: 139.7 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008964/1.554, allocations: 0.6093 MB / 0.7468 GB, free: 139.6 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001899/1.556, allocations: 0.5001 MB / 0.7473 GB, free: 139.5 MB / 478.1 MB 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 (1082): * Single equations (assignments): 1076 * 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,97,55.1%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.007125/1.563, allocations: 3.595 MB / 0.7508 GB, free: 138.1 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001916/1.565, allocations: 0.6572 MB / 0.7515 GB, free: 138.1 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02576/1.591, allocations: 13.94 MB / 0.7651 GB, free: 130.1 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.305e-05/1.591, allocations: 43.94 kB / 0.7651 GB, free: 130 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.959e-05/1.591, allocations: 20 kB / 0.7651 GB, free: 130 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.032e-05/1.591, allocations: 15.94 kB / 0.7652 GB, free: 130 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04857/1.64, allocations: 27.7 MB / 0.7922 GB, free: 102 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.675e-05/1.64, allocations: 8 kB / 0.7922 GB, free: 102 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002214/1.642, allocations: 472.6 kB / 0.7927 GB, free: 101.6 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01903/1.661, allocations: 6.964 MB / 0.7995 GB, free: 94.66 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008208/1.662, allocations: 69.64 kB / 0.7995 GB, free: 94.59 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03838/1.7, allocations: 35.34 MB / 0.834 GB, free: 59.12 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.285e-06/1.701, allocations: 11.69 kB / 0.8341 GB, free: 59.11 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03368/1.734, allocations: 19.71 MB / 0.8533 GB, free: 39.54 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004718/1.739, allocations: 1.425 MB / 0.8547 GB, free: 38.09 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002611/1.742, allocations: 64 kB / 0.8548 GB, free: 38.03 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00496/1.747, allocations: 323.5 kB / 0.8551 GB, free: 37.71 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001333/1.748, allocations: 256.9 kB / 0.8553 GB, free: 37.46 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000609/1.749, allocations: 88 kB / 0.8554 GB, free: 37.38 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.007959/1.757, allocations: 4.66 MB / 0.8599 GB, free: 32.75 MB / 478.1 MB Notification: Performance of sort global known variables: time 6.01e-07/1.757, allocations: 0 / 0.8599 GB, free: 32.75 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.009961/1.767, allocations: 2.226 MB / 0.8621 GB, free: 30.54 MB / 478.1 MB 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 (232): * Single equations (assignments): 226 * 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.001034/1.768, allocations: 217.2 kB / 0.8623 GB, free: 30.33 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01833/1.786, allocations: 12.04 MB / 0.8741 GB, free: 18.3 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.362e-05/1.786, allocations: 4 kB / 0.8741 GB, free: 18.3 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.2052/1.991, allocations: 5.268 MB / 0.8792 GB, free: 154.4 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006434/1.998, allocations: 1.015 MB / 0.8802 GB, free: 154.3 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03797/2.036, allocations: 20.31 MB / 0.9001 GB, free: 149 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008281/2.044, allocations: 5.737 MB / 0.9057 GB, free: 147.2 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.006404/2.05, allocations: 2.691 MB / 0.9083 GB, free: 147.1 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001569/2.052, allocations: 403.8 kB / 0.9087 GB, free: 147.1 MB / 478.1 MB Notification: Performance of SimCode: time 1.232e-06/2.052, allocations: 3.844 kB / 0.9087 GB, free: 147.1 MB / 478.1 MB Notification: Performance of Templates: time 0.1393/2.191, allocations: 95.36 MB / 1.002 GB, free: 59.8 MB / 478.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1b/Engine1b.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches