Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.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.Engine1b_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001622/0.001622, allocations: 106 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001852/0.001852, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.453/1.453, allocations: 227.4 MB / 246.8 MB, free: 10.51 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001906/0.001906, allocations: 66.25 kB / 307 MB, free: 0.5781 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1022/0.1041, allocations: 50.54 MB / 357.5 MB, free: 14.03 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic): time 0.1804/0.2846, allocations: 23.3 MB / 380.8 MB, free: 8.453 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01446/0.2991, allocations: 7.074 MB / 387.9 MB, free: 4.332 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004125/0.3032, allocations: 181.5 kB / 388.1 MB, free: 4.293 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.014/0.3173, allocations: 7.916 MB / 396 MB, free: 356 kB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01028/0.3276, allocations: 3.539 MB / 399.5 MB, free: 13.73 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004923/0.3325, allocations: 2.002 MB / 401.5 MB, free: 12.35 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01973/0.3523, allocations: 13.57 MB / 415.1 MB, free: 1.801 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01389/0.3662, allocations: 10.46 MB / 425.6 MB, free: 7.262 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008651/0.3749, allocations: 4.25 MB / 429.8 MB, free: 3 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01026/0.3852, allocations: 5.691 MB / 435.5 MB, free: 13.29 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002769/0.388, allocations: 1 MB / 436.5 MB, free: 12.29 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005241/0.3933, allocations: 2.139 MB / 438.7 MB, free: 10.15 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007476/0.4007, allocations: 5 MB / 443.7 MB, free: 5.141 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01061/0.4114, allocations: 5.394 MB / 449 MB, free: 15.71 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02314/0.4346, allocations: 16.86 MB / 465.9 MB, free: 14.8 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.822e-06/0.4346, allocations: 0 / 465.9 MB, free: 14.8 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.4346, allocations: 4 kB / 465.9 MB, free: 14.8 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0005845/0.4352, allocations: 0 / 465.9 MB, free: 14.8 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2752 * Number of variables: 2752 Notification: Performance of Generate backend data structure: time 0.03204/0.4673, allocations: 11.19 MB / 477.1 MB, free: 3.508 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.173e-05/0.4673, allocations: 12.03 kB / 477.1 MB, free: 3.496 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04724/0.5146, allocations: 5.418 MB / 482.5 MB, free: 14.06 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02186/0.5365, allocations: 8.669 MB / 491.2 MB, free: 5.297 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005963/0.5371, allocations: 0.5259 MB / 491.7 MB, free: 4.77 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003089/0.5402, allocations: 0.7298 MB / 492.5 MB, free: 4.039 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04664/0.5869, allocations: 19.51 MB / 0.5 GB, free: 15.48 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004026/0.5873, allocations: 103.1 kB / 0.5001 GB, free: 15.38 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002349/0.5897, allocations: 323.8 kB / 0.5004 GB, free: 15.07 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00467/0.5944, allocations: 2.814 MB / 0.5031 GB, free: 12.25 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03658/0.631, allocations: 16.25 MB / 0.519 GB, free: 11.98 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.4593/1.09, allocations: 74.43 MB / 0.5917 GB, free: 83.64 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02115/1.111, allocations: 8.484 MB / 0.6 GB, free: 79.23 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005713/1.117, allocations: 4.769 MB / 0.6046 GB, free: 76.63 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02051/1.138, allocations: 15.47 MB / 0.6197 GB, free: 61.39 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.879e-05/1.138, allocations: 72.59 kB / 0.6198 GB, free: 61.31 MB / 446.1 MB Notification: Performance of pre-optimization done (n=320): time 6.081e-06/1.138, allocations: 0 / 0.6198 GB, free: 61.31 MB / 446.1 MB Notification: Performance of matching and sorting (n=426): time 0.1753/1.313, allocations: 52.28 MB / 0.6709 GB, free: 8.934 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001358/1.313, allocations: 412.8 kB / 0.6713 GB, free: 8.445 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0117/1.325, allocations: 7.547 MB / 0.6786 GB, free: 0.9336 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001291/1.326, allocations: 93.7 kB / 0.6787 GB, free: 0.8359 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.005856/1.332, allocations: 5.6 MB / 0.6842 GB, free: 11.27 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002976/1.335, allocations: 1.561 MB / 0.6857 GB, free: 9.691 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004373/1.34, allocations: 2.082 MB / 0.6877 GB, free: 7.598 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001548/1.34, allocations: 313.1 kB / 0.688 GB, free: 7.289 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009417/1.349, allocations: 5.217 MB / 0.6931 GB, free: 2.066 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01738/1.367, allocations: 10.26 MB / 0.7032 GB, free: 5.387 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2175/1.584, allocations: 16.29 MB / 0.7191 GB, free: 140.9 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001228/1.584, allocations: 49.34 kB / 0.7191 GB, free: 140.9 MB / 478.1 MB Notification: Performance of matching and sorting (n=1333) (initialization): time 0.04256/1.627, allocations: 21.25 MB / 0.7399 GB, free: 133.9 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.743e-05/1.627, allocations: 80.88 kB / 0.7399 GB, free: 133.8 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001636/1.627, allocations: 171.3 kB / 0.7401 GB, free: 133.8 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01828/1.646, allocations: 6.672 MB / 0.7466 GB, free: 132.5 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00835/1.654, allocations: 2.151 MB / 0.7487 GB, free: 132.2 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0421/1.696, allocations: 35.06 MB / 0.783 GB, free: 100.4 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009619/1.706, allocations: 0.6289 MB / 0.7836 GB, free: 99.75 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002228/1.708, allocations: 0.5273 MB / 0.7841 GB, free: 99.22 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 778 * Number of states: 0 () * Number of discrete variables: 73 (jointRRP.jointUSP.prismatic.positiveBranch,jointRRP.jointUSP.rod1Color[3],jointRRP.jointUSP.rod1Color[2],jointRRP.jointUSP.rod1Color[1],jointRRP.jointUSP.cylinderColor[3],jointRRP.jointUSP.cylinderColor[2],jointRRP.jointUSP.cylinderColor[1],jointRRP.jointUSP.sphereColor[3],jointRRP.jointUSP.sphereColor[2],jointRRP.jointUSP.sphereColor[1],jointRRP.rodColor[3],jointRRP.rodColor[2],jointRRP.rodColor[1],jointRRP.cylinderColor[3],jointRRP.cylinderColor[2],jointRRP.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 (1176): * Single equations (assignments): 1171 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,129,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006547/1.715, allocations: 4.088 MB / 0.7881 GB, free: 95.23 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001551/1.716, allocations: 0.6887 MB / 0.7887 GB, free: 94.91 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02617/1.742, allocations: 14.3 MB / 0.8027 GB, free: 80.55 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.251e-05/1.742, allocations: 47.64 kB / 0.8028 GB, free: 80.52 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.541e-05/1.742, allocations: 24 kB / 0.8028 GB, free: 80.49 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.159e-05/1.743, allocations: 27.86 kB / 0.8028 GB, free: 80.46 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05005/1.793, allocations: 28.24 MB / 0.8304 GB, free: 52.15 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.298e-05/1.793, allocations: 12.03 kB / 0.8304 GB, free: 52.14 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003012/1.796, allocations: 0.5903 MB / 0.831 GB, free: 51.55 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0182/1.814, allocations: 6.346 MB / 0.8372 GB, free: 45.2 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001225/1.815, allocations: 75.98 kB / 0.8372 GB, free: 45.13 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03896/1.854, allocations: 31.92 MB / 0.8684 GB, free: 13.1 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.844e-06/1.854, allocations: 12.95 kB / 0.8684 GB, free: 13.09 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.245/2.099, allocations: 20.92 MB / 0.8888 GB, free: 155.7 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00241/2.102, allocations: 0.7393 MB / 0.8896 GB, free: 155.6 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0018/2.104, allocations: 77.73 kB / 0.8896 GB, free: 155.6 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004207/2.108, allocations: 328 kB / 0.89 GB, free: 155.6 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001233/2.109, allocations: 299.2 kB / 0.8902 GB, free: 155.6 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000352/2.109, allocations: 118.8 kB / 0.8904 GB, free: 155.6 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.008128/2.118, allocations: 4.825 MB / 0.8951 GB, free: 154.7 MB / 494.1 MB Notification: Performance of sort global known variables: time 3.21e-07/2.118, allocations: 0 / 0.8951 GB, free: 154.7 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.011/2.129, allocations: 2.412 MB / 0.8974 GB, free: 154.4 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 34 * 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 (294): * Single equations (assignments): 290 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,116,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001211/2.13, allocations: 277 kB / 0.8977 GB, free: 154.3 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.02971/2.16, allocations: 17.79 MB / 0.9151 GB, free: 149.3 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.665e-05/2.16, allocations: 6.5 kB / 0.9151 GB, free: 149.3 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00871/2.168, allocations: 5.346 MB / 0.9203 GB, free: 147 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009871/2.178, allocations: 1.072 MB / 0.9213 GB, free: 146.5 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03857/2.217, allocations: 22.66 MB / 0.9435 GB, free: 127.3 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008642/2.225, allocations: 6.384 MB / 0.9497 GB, free: 122.5 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.007316/2.233, allocations: 2.956 MB / 0.9526 GB, free: 120.6 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001471/2.234, allocations: 431.5 kB / 0.953 GB, free: 120.2 MB / 494.1 MB Notification: Performance of SimCode: time 1.072e-06/2.234, allocations: 3.938 kB / 0.953 GB, free: 120.2 MB / 494.1 MB Notification: Performance of Templates: time 0.3416/2.576, allocations: 112.1 MB / 1.063 GB, free: 138.6 MB / 494.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1b_analytic/Engine1b_analytic.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches