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.001396/0.001396, allocations: 105.3 kB / 17.06 MB, free: 6.016 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.001563/0.001563, allocations: 196 kB / 18 MB, free: 5.094 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.294/1.294, allocations: 222.9 MB / 241.7 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009113/0.0009113, allocations: 44.02 kB / 351.3 MB, free: 3.211 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2476/0.2486, allocations: 49.43 MB / 400.8 MB, free: 8.762 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.02051/0.2691, allocations: 20.53 MB / 421.3 MB, free: 4.262 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01229/0.2814, allocations: 6.177 MB / 427.5 MB, free: 14.07 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003514/0.285, allocations: 167.4 kB / 427.6 MB, free: 13.9 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01082/0.2958, allocations: 6.351 MB / 434 MB, free: 7.531 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008136/0.304, allocations: 3.438 MB / 437.4 MB, free: 4.082 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003529/0.3076, allocations: 1.662 MB / 439.1 MB, free: 2.418 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01613/0.3237, allocations: 12.66 MB / 451.7 MB, free: 5.734 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00954/0.3333, allocations: 8.049 MB / 459.8 MB, free: 13.6 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006207/0.3396, allocations: 3.751 MB / 463.5 MB, free: 9.836 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007321/0.3469, allocations: 4.974 MB / 468.5 MB, free: 4.848 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001642/0.3486, allocations: 0.7461 MB / 469.3 MB, free: 4.102 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003248/0.3518, allocations: 1.725 MB / 471 MB, free: 2.375 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003852/0.3557, allocations: 4.454 MB / 475.4 MB, free: 13.91 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005757/0.3615, allocations: 4.666 MB / 480.1 MB, free: 9.219 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01428/0.3758, allocations: 14.17 MB / 494.3 MB, free: 11 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.171e-06/0.3758, allocations: 0 / 494.3 MB, free: 11 MB / 414.1 MB Notification: Performance of FrontEnd: time 3.948e-06/0.3758, allocations: 3.984 kB / 494.3 MB, free: 11 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0003863/0.3762, allocations: 0 / 494.3 MB, free: 11 MB / 414.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.02557/0.4018, allocations: 10.03 MB / 0.4925 GB, free: 0.8789 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.155e-05/0.4019, allocations: 12.03 kB / 0.4925 GB, free: 0.8672 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0482/0.4501, allocations: 5.275 MB / 0.4977 GB, free: 11.57 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02061/0.4707, allocations: 8.255 MB / 0.5057 GB, free: 3.254 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004464/0.4712, allocations: 452 kB / 0.5061 GB, free: 2.812 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003088/0.4743, allocations: 0.6126 MB / 0.5067 GB, free: 2.199 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03221/0.5065, allocations: 17.14 MB / 0.5235 GB, free: 4 kB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003349/0.5069, allocations: 95.11 kB / 0.5236 GB, free: 15.91 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001138/0.508, allocations: 283.8 kB / 0.5238 GB, free: 15.63 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004433/0.5125, allocations: 2.851 MB / 0.5266 GB, free: 12.77 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4256/0.9381, allocations: 14.03 MB / 0.5403 GB, free: 118.3 MB / 462.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.08505/1.023, allocations: 69.69 MB / 0.6084 GB, free: 61.63 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02132/1.045, allocations: 8.218 MB / 0.6164 GB, free: 53.31 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005054/1.05, allocations: 4.642 MB / 0.6209 GB, free: 48.66 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01872/1.068, allocations: 12.76 MB / 0.6334 GB, free: 35.77 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.944e-05/1.069, allocations: 68.56 kB / 0.6335 GB, free: 35.7 MB / 462.1 MB Notification: Performance of pre-optimization done (n=294): time 5.3e-06/1.069, allocations: 0 / 0.6335 GB, free: 35.7 MB / 462.1 MB Notification: Performance of matching and sorting (n=360): time 0.1844/1.253, allocations: 52.52 MB / 0.6848 GB, free: 15.24 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001944/1.253, allocations: 402.2 kB / 0.6851 GB, free: 14.76 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01005/1.263, allocations: 7.272 MB / 0.6922 GB, free: 7.516 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009523/1.264, allocations: 77.7 kB / 0.6923 GB, free: 7.434 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004122/1.268, allocations: 5.208 MB / 0.6974 GB, free: 2.172 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001925/1.27, allocations: 1.33 MB / 0.6987 GB, free: 0.8242 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00298/1.273, allocations: 1.912 MB / 0.7006 GB, free: 14.89 MB / 0.4982 GB Notification: Performance of setup shared object (initialization): time 9.799e-05/1.273, allocations: 305.1 kB / 0.7009 GB, free: 14.59 MB / 0.4982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006561/1.28, allocations: 4.712 MB / 0.7055 GB, free: 9.875 MB / 0.4982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009239/1.289, allocations: 9.538 MB / 0.7148 GB, free: 14 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01812/1.307, allocations: 15.01 MB / 0.7294 GB, free: 12.66 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000111/1.307, allocations: 48 kB / 0.7295 GB, free: 12.61 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1221) (initialization): time 0.3039/1.611, allocations: 20.47 MB / 0.7495 GB, free: 177.6 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001448/1.612, allocations: 74.81 kB / 0.7495 GB, free: 177.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003442/1.612, allocations: 165.4 kB / 0.7497 GB, free: 177.6 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02286/1.635, allocations: 7.302 MB / 0.7568 GB, free: 177.5 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00659/1.641, allocations: 2.006 MB / 0.7588 GB, free: 177.4 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0434/1.685, allocations: 36.55 MB / 0.7945 GB, free: 151.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009264/1.694, allocations: 0.5978 MB / 0.7951 GB, free: 150.5 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001692/1.696, allocations: 0.5039 MB / 0.7956 GB, free: 150 MB / 0.5294 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 (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.005843/1.702, allocations: 3.594 MB / 0.7991 GB, free: 146.6 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001603/1.703, allocations: 0.658 MB / 0.7997 GB, free: 146.2 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02583/1.729, allocations: 13.94 MB / 0.8133 GB, free: 132.3 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.061e-05/1.729, allocations: 43.94 kB / 0.8134 GB, free: 132.2 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.223e-05/1.729, allocations: 20 kB / 0.8134 GB, free: 132.2 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.978e-05/1.729, allocations: 15.94 kB / 0.8134 GB, free: 132.2 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0488/1.778, allocations: 27.69 MB / 0.8404 GB, free: 104.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.544e-05/1.778, allocations: 14.19 kB / 0.8405 GB, free: 104.3 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002296/1.781, allocations: 467.3 kB / 0.8409 GB, free: 103.8 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01987/1.801, allocations: 6.963 MB / 0.8477 GB, free: 96.83 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00107/1.802, allocations: 68 kB / 0.8478 GB, free: 96.76 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04258/1.844, allocations: 35.34 MB / 0.8823 GB, free: 61.21 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.877e-06/1.844, allocations: 15.88 kB / 0.8823 GB, free: 61.2 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03512/1.879, allocations: 19.7 MB / 0.9015 GB, free: 41.68 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004958/1.884, allocations: 1.429 MB / 0.9029 GB, free: 40.27 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00235/1.887, allocations: 67.94 kB / 0.903 GB, free: 40.21 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005049/1.892, allocations: 328.6 kB / 0.9033 GB, free: 39.89 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001386/1.893, allocations: 254.8 kB / 0.9035 GB, free: 39.64 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005727/1.894, allocations: 88 kB / 0.9036 GB, free: 39.55 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.007898/1.902, allocations: 4.654 MB / 0.9082 GB, free: 34.93 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3.01e-07/1.902, allocations: 4 kB / 0.9082 GB, free: 34.93 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.009395/1.911, allocations: 2.224 MB / 0.9103 GB, free: 32.71 MB / 0.5294 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 (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.0006578/1.912, allocations: 220.7 kB / 0.9106 GB, free: 32.5 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01686/1.929, allocations: 12.03 MB / 0.9223 GB, free: 20.43 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.189e-05/1.929, allocations: 8 kB / 0.9223 GB, free: 20.42 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.00829/1.937, allocations: 5.288 MB / 0.9275 GB, free: 15.09 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007046/1.944, allocations: 1.018 MB / 0.9285 GB, free: 14.07 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2556/2.2, allocations: 20.29 MB / 0.9483 GB, free: 174.1 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005991/2.206, allocations: 5.727 MB / 0.9539 GB, free: 173.1 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.005486/2.211, allocations: 2.695 MB / 0.9565 GB, free: 173.1 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001089/2.212, allocations: 412 kB / 0.9569 GB, free: 173.1 MB / 0.5294 GB Notification: Performance of SimCode: time 9.62e-07/2.212, allocations: 3.391 kB / 0.9569 GB, free: 173.1 MB / 0.5294 GB Notification: Performance of Templates: time 0.1431/2.356, allocations: 99.61 MB / 1.054 GB, free: 83.26 MB / 0.5294 GB 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 -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/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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches