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.001522/0.001522, allocations: 114 kB / 17.33 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001863/0.001863, allocations: 213.8 kB / 18.27 MB, free: 5.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.372/1.372, allocations: 227.4 MB / 246.4 MB, free: 10.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002096/0.002096, allocations: 63.92 kB / 306.4 MB, free: 0.9609 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1122/0.1143, allocations: 50.54 MB / 357 MB, free: 14.41 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic): time 0.2545/0.3689, allocations: 113.5 MB / 470.4 MB, free: 9.926 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.05043/0.4194, allocations: 21.94 MB / 492.4 MB, free: 3.926 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02126/0.4407, allocations: 0.5104 MB / 492.9 MB, free: 3.414 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01349/0.4542, allocations: 7.652 MB / 0.4888 GB, free: 11.74 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007972/0.4622, allocations: 3.31 MB / 0.492 GB, free: 8.422 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003686/0.4659, allocations: 1.905 MB / 0.4939 GB, free: 6.516 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0166/0.4826, allocations: 14.65 MB / 0.5082 GB, free: 7.84 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01229/0.4949, allocations: 11 MB / 0.519 GB, free: 12.77 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007937/0.5029, allocations: 4.366 MB / 0.5232 GB, free: 8.387 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008477/0.5114, allocations: 6.296 MB / 0.5294 GB, free: 2.074 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002304/0.5137, allocations: 1 MB / 0.5303 GB, free: 1.074 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2199/0.7336, allocations: 2.152 MB / 0.5324 GB, free: 23.95 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007977/0.7416, allocations: 5.07 MB / 0.5374 GB, free: 23.95 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01429/0.7559, allocations: 5.436 MB / 0.5427 GB, free: 23.1 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02454/0.7805, allocations: 16.93 MB / 0.5592 GB, free: 21.12 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.843e-06/0.7805, allocations: 0 / 0.5592 GB, free: 21.12 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.7805, allocations: 0 / 0.5592 GB, free: 21.12 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0006624/0.7812, allocations: 3.719 kB / 0.5592 GB, free: 21.12 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: 2752 * Number of variables: 2752 Notification: Performance of Generate backend data structure: time 0.03565/0.8169, allocations: 11.18 MB / 0.5702 GB, free: 16.18 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.072e-05/0.8169, allocations: 9.406 kB / 0.5702 GB, free: 16.18 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04613/0.8631, allocations: 5.419 MB / 0.5755 GB, free: 13.98 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02115/0.8843, allocations: 8.678 MB / 0.5839 GB, free: 11.19 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000517/0.8848, allocations: 0.519 MB / 0.5844 GB, free: 11.18 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003984/0.8888, allocations: 0.7339 MB / 0.5852 GB, free: 11.15 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04877/0.9376, allocations: 19.51 MB / 0.6042 GB, free: 15.6 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006865/0.9384, allocations: 97.47 kB / 0.6043 GB, free: 15.54 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003656/0.942, allocations: 331.7 kB / 0.6046 GB, free: 15.26 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004575/0.9466, allocations: 2.816 MB / 0.6074 GB, free: 12.47 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03808/0.9847, allocations: 16.25 MB / 0.6232 GB, free: 12.48 MB / 478.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.1139/1.099, allocations: 74.43 MB / 0.6959 GB, free: 0.8984 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02291/1.122, allocations: 8.477 MB / 0.7042 GB, free: 8.301 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006809/1.128, allocations: 4.772 MB / 0.7089 GB, free: 3.508 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02545/1.154, allocations: 15.48 MB / 0.724 GB, free: 3.535 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.426e-05/1.154, allocations: 75.31 kB / 0.7241 GB, free: 3.453 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=320): time 7.103e-06/1.154, allocations: 0 / 0.7241 GB, free: 3.453 MB / 0.5606 GB Notification: Performance of matching and sorting (n=426): time 0.4046/1.559, allocations: 52.28 MB / 0.7751 GB, free: 238.4 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001759/1.559, allocations: 411.3 kB / 0.7755 GB, free: 237.9 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01446/1.573, allocations: 7.55 MB / 0.7829 GB, free: 231.6 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.001243/1.575, allocations: 89.7 kB / 0.783 GB, free: 231.5 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.003211/1.578, allocations: 5.594 MB / 0.7884 GB, free: 226 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.002011/1.58, allocations: 1.547 MB / 0.7899 GB, free: 224.5 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003435/1.583, allocations: 2.088 MB / 0.792 GB, free: 222.4 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.923e-05/1.583, allocations: 309.1 kB / 0.7923 GB, free: 222.1 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006827/1.59, allocations: 5.217 MB / 0.7974 GB, free: 216.9 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009666/1.6, allocations: 10.26 MB / 0.8074 GB, free: 204.2 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01703/1.617, allocations: 16.31 MB / 0.8233 GB, free: 185.5 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001396/1.617, allocations: 48.09 kB / 0.8233 GB, free: 185.5 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1333) (initialization): time 0.04173/1.659, allocations: 21.24 MB / 0.8441 GB, free: 164.2 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001187/1.659, allocations: 83.94 kB / 0.8442 GB, free: 164.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000194/1.659, allocations: 172.2 kB / 0.8443 GB, free: 163.9 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01957/1.679, allocations: 6.684 MB / 0.8509 GB, free: 157.2 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00701/1.686, allocations: 2.148 MB / 0.853 GB, free: 155.1 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04141/1.727, allocations: 35.05 MB / 0.8872 GB, free: 119.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009847/1.737, allocations: 0.618 MB / 0.8878 GB, free: 119.3 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002047/1.739, allocations: 0.5376 MB / 0.8883 GB, free: 118.8 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 (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.007159/1.747, allocations: 4.095 MB / 0.8923 GB, free: 114.6 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001429/1.748, allocations: 0.6942 MB / 0.893 GB, free: 113.9 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02665/1.775, allocations: 14.3 MB / 0.907 GB, free: 99.59 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.535e-05/1.775, allocations: 44 kB / 0.907 GB, free: 99.55 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.618e-05/1.775, allocations: 24 kB / 0.907 GB, free: 99.52 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.281e-05/1.775, allocations: 19.92 kB / 0.907 GB, free: 99.5 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05184/1.827, allocations: 28.24 MB / 0.9346 GB, free: 71.05 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.125e-05/1.827, allocations: 11.98 kB / 0.9346 GB, free: 71.04 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003053/1.83, allocations: 0.5968 MB / 0.9352 GB, free: 70.44 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0187/1.849, allocations: 6.339 MB / 0.9414 GB, free: 64.09 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001421/1.85, allocations: 83.98 kB / 0.9415 GB, free: 64.01 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04098/1.891, allocations: 31.92 MB / 0.9727 GB, free: 31.94 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.607e-06/1.891, allocations: 15.88 kB / 0.9727 GB, free: 31.93 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.239/2.13, allocations: 20.91 MB / 0.9931 GB, free: 226.6 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002338/2.133, allocations: 0.7379 MB / 0.9938 GB, free: 226.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002212/2.135, allocations: 79.17 kB / 0.9939 GB, free: 226.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004464/2.139, allocations: 328.8 kB / 0.9942 GB, free: 226.5 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001216/2.141, allocations: 302.3 kB / 0.9945 GB, free: 226.4 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003703/2.141, allocations: 118.8 kB / 0.9946 GB, free: 226.4 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.007799/2.149, allocations: 4.826 MB / 0.9993 GB, free: 225.4 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3.71e-07/2.149, allocations: 0 / 0.9993 GB, free: 225.4 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.01101/2.16, allocations: 2.403 MB / 1.002 GB, free: 225.2 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 (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.001381/2.161, allocations: 276.3 kB / 1.002 GB, free: 225 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0303/2.192, allocations: 17.8 MB / 1.019 GB, free: 219.9 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.27e-05/2.192, allocations: 3.719 kB / 1.019 GB, free: 219.9 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.008399/2.2, allocations: 5.344 MB / 1.025 GB, free: 217.6 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01294/2.213, allocations: 1.076 MB / 1.026 GB, free: 217.2 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06195/2.275, allocations: 26.83 MB / 1.052 GB, free: 195.6 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01938/2.294, allocations: 6.38 MB / 1.058 GB, free: 190.8 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.01371/2.308, allocations: 2.951 MB / 1.061 GB, free: 188.9 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00269/2.311, allocations: 431.1 kB / 1.061 GB, free: 188.5 MB / 0.5606 GB Notification: Performance of SimCode: time 1.082e-06/2.311, allocations: 0 / 1.061 GB, free: 188.5 MB / 0.5606 GB Notification: Performance of Templates: time 0.1771/2.488, allocations: 112 MB / 1.171 GB, free: 79.36 MB / 0.5606 GB 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.0.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