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.001127/0.001127, allocations: 109.8 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00139/0.00139, allocations: 211.9 kB / 19.25 MB, free: 3.895 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.377/1.377, allocations: 227.4 MB / 247.4 MB, free: 10.59 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00139/0.00139, allocations: 59.3 kB / 307.6 MB, free: 0.6602 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09285/0.09427, allocations: 50.54 MB / 358.2 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic): time 0.1844/0.2787, allocations: 23.29 MB / 381.4 MB, free: 8.547 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01544/0.2942, allocations: 7.073 MB / 388.5 MB, free: 4.441 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005435/0.2996, allocations: 180.8 kB / 388.7 MB, free: 4.402 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01413/0.3138, allocations: 7.918 MB / 396.6 MB, free: 468 kB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01133/0.3252, allocations: 3.539 MB / 400.2 MB, free: 13.84 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005585/0.3308, allocations: 2.008 MB / 402.2 MB, free: 12.46 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.02023/0.3511, allocations: 13.56 MB / 415.7 MB, free: 1.934 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01637/0.3675, allocations: 10.46 MB / 426.2 MB, free: 7.391 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008611/0.3762, allocations: 4.246 MB / 430.4 MB, free: 3.133 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008807/0.385, allocations: 5.688 MB / 436.1 MB, free: 13.43 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003711/0.3888, allocations: 1.004 MB / 437.1 MB, free: 12.43 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00693/0.3958, allocations: 2.139 MB / 439.3 MB, free: 10.29 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007685/0.4035, allocations: 5 MB / 444.3 MB, free: 5.273 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01143/0.415, allocations: 5.398 MB / 449.7 MB, free: 15.84 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02191/0.4369, allocations: 16.87 MB / 466.5 MB, free: 14.93 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.077e-05/0.437, allocations: 0 / 466.5 MB, free: 14.93 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.437, allocations: 0 / 466.5 MB, free: 14.93 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0006327/0.4376, allocations: 0 / 466.5 MB, free: 14.93 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.03279/0.4705, allocations: 11.19 MB / 477.7 MB, free: 3.645 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.937e-05/0.4705, allocations: 19.97 kB / 477.7 MB, free: 3.625 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04747/0.518, allocations: 5.418 MB / 483.2 MB, free: 14.19 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02202/0.5401, allocations: 8.669 MB / 491.8 MB, free: 5.426 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005376/0.5407, allocations: 0.5259 MB / 492.3 MB, free: 4.898 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00334/0.544, allocations: 0.7376 MB / 493.1 MB, free: 4.16 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04397/0.588, allocations: 19.5 MB / 0.5006 GB, free: 15.61 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005644/0.5886, allocations: 103.1 kB / 0.5007 GB, free: 15.51 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003086/0.5917, allocations: 323.8 kB / 0.501 GB, free: 15.2 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004686/0.5964, allocations: 2.817 MB / 0.5037 GB, free: 12.38 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03856/0.635, allocations: 16.25 MB / 0.5196 GB, free: 12.1 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.454/1.089, allocations: 74.43 MB / 0.5923 GB, free: 83.72 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0224/1.112, allocations: 8.473 MB / 0.6006 GB, free: 79.33 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005965/1.118, allocations: 4.775 MB / 0.6052 GB, free: 76.72 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02557/1.143, allocations: 15.47 MB / 0.6203 GB, free: 61.57 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.093e-05/1.143, allocations: 72.59 kB / 0.6204 GB, free: 61.48 MB / 446.1 MB Notification: Performance of pre-optimization done (n=320): time 1.032e-05/1.143, allocations: 0 / 0.6204 GB, free: 61.48 MB / 446.1 MB Notification: Performance of matching and sorting (n=426): time 0.1806/1.324, allocations: 52.3 MB / 0.6715 GB, free: 9.094 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001111/1.324, allocations: 402.8 kB / 0.6718 GB, free: 8.613 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01313/1.337, allocations: 7.554 MB / 0.6792 GB, free: 1.094 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001173/1.338, allocations: 101.1 kB / 0.6793 GB, free: 0.9922 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.005569/1.344, allocations: 5.598 MB / 0.6848 GB, free: 11.45 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002815/1.347, allocations: 1.552 MB / 0.6863 GB, free: 9.879 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0077/1.355, allocations: 2.082 MB / 0.6883 GB, free: 7.785 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001089/1.355, allocations: 313.1 kB / 0.6886 GB, free: 7.477 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009631/1.364, allocations: 5.22 MB / 0.6937 GB, free: 2.25 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01457/1.379, allocations: 10.26 MB / 0.7038 GB, free: 5.57 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2218/1.601, allocations: 16.29 MB / 0.7197 GB, free: 141 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001985/1.601, allocations: 48.34 kB / 0.7197 GB, free: 141 MB / 478.1 MB Notification: Performance of matching and sorting (n=1333) (initialization): time 0.04945/1.651, allocations: 21.25 MB / 0.7405 GB, free: 134 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002233/1.651, allocations: 76.72 kB / 0.7405 GB, free: 134 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003086/1.651, allocations: 173.2 kB / 0.7407 GB, free: 134 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02033/1.672, allocations: 6.673 MB / 0.7472 GB, free: 132.6 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007155/1.679, allocations: 2.153 MB / 0.7493 GB, free: 132.4 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05035/1.729, allocations: 35.05 MB / 0.7835 GB, free: 100.6 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009114/1.738, allocations: 0.6211 MB / 0.7842 GB, free: 99.99 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002181/1.741, allocations: 0.536 MB / 0.7847 GB, free: 99.46 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.008156/1.749, allocations: 4.099 MB / 0.7887 GB, free: 95.46 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002217/1.751, allocations: 0.6876 MB / 0.7894 GB, free: 95.14 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03098/1.782, allocations: 14.31 MB / 0.8033 GB, free: 80.79 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.479e-05/1.782, allocations: 44 kB / 0.8034 GB, free: 80.74 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.047e-05/1.782, allocations: 24 kB / 0.8034 GB, free: 80.72 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001246/1.782, allocations: 23.86 kB / 0.8034 GB, free: 80.7 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05962/1.842, allocations: 28.24 MB / 0.831 GB, free: 52.39 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.783e-05/1.842, allocations: 11.98 kB / 0.831 GB, free: 52.38 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003032/1.845, allocations: 0.5928 MB / 0.8316 GB, free: 51.78 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01865/1.864, allocations: 6.337 MB / 0.8378 GB, free: 45.44 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00128/1.865, allocations: 83.98 kB / 0.8379 GB, free: 45.36 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04533/1.91, allocations: 31.91 MB / 0.869 GB, free: 13.34 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.487e-06/1.91, allocations: 11.94 kB / 0.869 GB, free: 13.32 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2721/2.183, allocations: 20.92 MB / 0.8894 GB, free: 139.8 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002529/2.185, allocations: 0.7389 MB / 0.8902 GB, free: 139.7 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002853/2.188, allocations: 81.64 kB / 0.8902 GB, free: 139.7 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005691/2.194, allocations: 327.5 kB / 0.8906 GB, free: 139.7 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002039/2.196, allocations: 300.7 kB / 0.8908 GB, free: 139.7 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001046/2.197, allocations: 118.9 kB / 0.891 GB, free: 139.7 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.01238/2.209, allocations: 4.832 MB / 0.8957 GB, free: 138.8 MB / 478.1 MB Notification: Performance of sort global known variables: time 7.22e-07/2.209, allocations: 0 / 0.8957 GB, free: 138.8 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.01493/2.224, allocations: 2.406 MB / 0.898 GB, free: 138.5 MB / 478.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.001767/2.226, allocations: 278.1 kB / 0.8983 GB, free: 138.4 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.03137/2.257, allocations: 17.79 MB / 0.9157 GB, free: 133.4 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.937e-05/2.258, allocations: 3.031 kB / 0.9157 GB, free: 133.4 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.009971/2.268, allocations: 5.338 MB / 0.9209 GB, free: 131.1 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0112/2.279, allocations: 1.094 MB / 0.922 GB, free: 130.6 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04964/2.328, allocations: 23.43 MB / 0.9448 GB, free: 110.8 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01068/2.339, allocations: 6.299 MB / 0.951 GB, free: 106 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002286/2.342, allocations: 486.6 kB / 0.9515 GB, free: 105.5 MB / 478.1 MB Notification: Performance of SimCode: time 8.81e-07/2.342, allocations: 4 kB / 0.9515 GB, free: 105.5 MB / 478.1 MB Notification: Performance of Templates: time 0.3995/2.741, allocations: 163.7 MB / 1.111 GB, free: 107.6 MB / 478.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1b_analytic/Engine1b_analytic.csv","/var/lib/jenkins1/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