Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.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_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00122/0.001221, allocations: 106.3 kB / 17.16 MB, free: 6.324 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.00125/0.00125, allocations: 198.9 kB / 18.08 MB, free: 5.422 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.338/1.338, allocations: 222.9 MB / 241.8 MB, free: 13.8 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001025/0.001026, allocations: 51.8 kB / 300.6 MB, free: 6.102 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09062/0.09166, allocations: 49.45 MB / 350.1 MB, free: 4.652 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic): time 0.2775/0.3692, allocations: 114.2 MB / 464.3 MB, free: 2.379 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.05559/0.4249, allocations: 22.39 MB / 486.7 MB, free: 11.93 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02428/0.4492, allocations: 0.5104 MB / 487.2 MB, free: 11.42 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01405/0.4633, allocations: 7.992 MB / 495.2 MB, free: 3.406 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009666/0.473, allocations: 3.398 MB / 498.6 MB, free: 15.99 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004895/0.4779, allocations: 1.852 MB / 0.4887 GB, free: 14.14 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.02403/0.502, allocations: 18.81 MB / 0.5071 GB, free: 11.3 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01568/0.5177, allocations: 10.13 MB / 0.517 GB, free: 1.09 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008139/0.5259, allocations: 3.738 MB / 0.5206 GB, free: 13.34 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01034/0.5363, allocations: 6.003 MB / 0.5265 GB, free: 7.32 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003435/0.5398, allocations: 0.6328 MB / 0.5271 GB, free: 6.688 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00628/0.5461, allocations: 1.873 MB / 0.5289 GB, free: 4.812 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007477/0.5536, allocations: 4.715 MB / 0.5335 GB, free: 88 kB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.244/0.7976, allocations: 5.022 MB / 0.5385 GB, free: 23.42 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01576/0.8134, allocations: 13.98 MB / 0.5521 GB, free: 22.7 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.113e-06/0.8135, allocations: 0 / 0.5521 GB, free: 22.7 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.8135, allocations: 0 / 0.5521 GB, free: 22.7 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0005994/0.8141, allocations: 0 / 0.5521 GB, free: 22.7 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: 2753 * Number of variables: 2753 Notification: Performance of Generate backend data structure: time 0.03685/0.851, allocations: 11.22 MB / 0.5631 GB, free: 18.73 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.239e-05/0.851, allocations: 7.375 kB / 0.5631 GB, free: 18.73 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04255/0.8936, allocations: 5.417 MB / 0.5684 GB, free: 18.13 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02219/0.9158, allocations: 8.847 MB / 0.577 GB, free: 16.55 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005166/0.9164, allocations: 0.5221 MB / 0.5775 GB, free: 16.53 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004387/0.9208, allocations: 0.726 MB / 0.5782 GB, free: 16.51 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04364/0.9644, allocations: 19.51 MB / 0.5973 GB, free: 9.09 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004468/0.9649, allocations: 100.4 kB / 0.5974 GB, free: 9.062 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002529/0.9675, allocations: 326.1 kB / 0.5977 GB, free: 8.879 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003772/0.9712, allocations: 2.822 MB / 0.6004 GB, free: 7.82 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03429/1.006, allocations: 16.25 MB / 0.6163 GB, free: 9.68 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.1196/1.125, allocations: 74.45 MB / 0.689 GB, free: 14.09 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02445/1.15, allocations: 8.506 MB / 0.6973 GB, free: 5.441 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007746/1.158, allocations: 4.769 MB / 0.702 GB, free: 0.6602 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03163/1.189, allocations: 15.39 MB / 0.717 GB, free: 0.7969 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.585e-05/1.189, allocations: 75.59 kB / 0.7171 GB, free: 0.7148 MB / 0.545 GB Notification: Performance of pre-optimization done (n=321): time 6.843e-06/1.189, allocations: 0 / 0.7171 GB, free: 0.7148 MB / 0.545 GB Notification: Performance of matching and sorting (n=428): time 0.4125/1.602, allocations: 54.61 MB / 0.7704 GB, free: 251.5 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001095/1.602, allocations: 418.1 kB / 0.7708 GB, free: 251.1 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0145/1.617, allocations: 7.559 MB / 0.7782 GB, free: 245.3 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.001313/1.618, allocations: 93.7 kB / 0.7783 GB, free: 245.2 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.004204/1.622, allocations: 5.593 MB / 0.7837 GB, free: 240.2 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.002624/1.625, allocations: 1.558 MB / 0.7852 GB, free: 238.8 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.007514/1.632, allocations: 2.088 MB / 0.7873 GB, free: 236.8 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 5.532e-05/1.632, allocations: 301.1 kB / 0.7876 GB, free: 236.5 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008293/1.641, allocations: 5.22 MB / 0.7927 GB, free: 232 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01069/1.651, allocations: 10.27 MB / 0.8027 GB, free: 219.7 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0192/1.671, allocations: 16.31 MB / 0.8186 GB, free: 201 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001833/1.671, allocations: 50.44 kB / 0.8187 GB, free: 201 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1335) (initialization): time 0.04449/1.715, allocations: 21.25 MB / 0.8394 GB, free: 179.7 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001076/1.716, allocations: 76 kB / 0.8395 GB, free: 179.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001706/1.716, allocations: 172 kB / 0.8397 GB, free: 179.4 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01981/1.736, allocations: 6.661 MB / 0.8462 GB, free: 172.8 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007483/1.743, allocations: 2.156 MB / 0.8483 GB, free: 170.6 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04389/1.787, allocations: 32.78 MB / 0.8803 GB, free: 137.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01104/1.798, allocations: 0.6201 MB / 0.8809 GB, free: 137.1 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003317/1.801, allocations: 0.5383 MB / 0.8814 GB, free: 136.5 MB / 0.5606 GB 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 (1178): * Single equations (assignments): 1173 * 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.01285/1.814, allocations: 4.1 MB / 0.8854 GB, free: 132.4 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002793/1.817, allocations: 0.6903 MB / 0.8861 GB, free: 131.7 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03281/1.85, allocations: 14.31 MB / 0.9001 GB, free: 117.3 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.112e-05/1.85, allocations: 47.94 kB / 0.9001 GB, free: 117.3 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.789e-05/1.85, allocations: 24 kB / 0.9002 GB, free: 117.3 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.335e-05/1.85, allocations: 19.92 kB / 0.9002 GB, free: 117.3 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06386/1.914, allocations: 28.26 MB / 0.9278 GB, free: 88.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.223e-05/1.914, allocations: 8 kB / 0.9278 GB, free: 88.79 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003031/1.917, allocations: 0.6015 MB / 0.9284 GB, free: 88.19 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01884/1.936, allocations: 6.319 MB / 0.9345 GB, free: 81.86 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001394/1.938, allocations: 76 kB / 0.9346 GB, free: 81.79 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0427/1.98, allocations: 29.73 MB / 0.9636 GB, free: 51.91 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.334e-06/1.98, allocations: 15.98 kB / 0.9637 GB, free: 51.89 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03855/2.019, allocations: 20.94 MB / 0.9841 GB, free: 30.77 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004787/2.024, allocations: 1.562 MB / 0.9856 GB, free: 29.18 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002861/2.027, allocations: 79.98 kB / 0.9857 GB, free: 29.11 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005484/2.032, allocations: 327.5 kB / 0.986 GB, free: 28.79 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001865/2.034, allocations: 303.2 kB / 0.9863 GB, free: 28.49 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000927/2.035, allocations: 116 kB / 0.9864 GB, free: 28.38 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.2175/2.252, allocations: 4.832 MB / 0.9911 GB, free: 238.3 MB / 0.5606 GB Notification: Performance of sort global known variables: time 5.51e-07/2.252, allocations: 1.594 kB / 0.9911 GB, free: 238.3 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0152/2.268, allocations: 2.427 MB / 0.9935 GB, free: 238.3 MB / 0.5606 GB 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 (296): * Single equations (assignments): 292 * 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.001922/2.27, allocations: 285.2 kB / 0.9938 GB, free: 238.2 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.02276/2.292, allocations: 12.7 MB / 1.006 GB, free: 236.7 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.283e-05/2.292, allocations: 0.875 kB / 1.006 GB, free: 236.7 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.009384/2.302, allocations: 5.352 MB / 1.011 GB, free: 234.4 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009526/2.311, allocations: 1.014 MB / 1.012 GB, free: 234 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05249/2.364, allocations: 27.54 MB / 1.039 GB, free: 218.5 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01471/2.379, allocations: 6.307 MB / 1.045 GB, free: 213.8 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003009/2.382, allocations: 493.5 kB / 1.046 GB, free: 213.3 MB / 0.5606 GB Notification: Performance of SimCode: time 1.813e-06/2.382, allocations: 3.938 kB / 1.046 GB, free: 213.3 MB / 0.5606 GB Notification: Performance of Templates: time 0.2145/2.596, allocations: 164.2 MB / 1.206 GB, free: 56.23 MB / 0.5606 GB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches