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.0007747/0.0007748, allocations: 88.97 kB / 17.3 MB, free: 5.59 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.0008248/0.0008247, allocations: 182.2 kB / 18.21 MB, free: 5.191 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.109/1.109, allocations: 223.3 MB / 242.3 MB, free: 14.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002104/0.0002105, allocations: 7.938 kB / 302.1 MB, free: 5.91 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06939/0.06961, allocations: 50.41 MB / 352.5 MB, free: 3.492 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic): time 0.2011/0.2707, allocations: 111.6 MB / 464.1 MB, free: 4.418 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.03871/0.3095, allocations: 22.31 MB / 486.4 MB, free: 14.04 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01418/0.3237, allocations: 0.5026 MB / 486.9 MB, free: 13.53 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001677/0.3254, allocations: 0.7966 MB / 487.7 MB, free: 12.73 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00565/0.331, allocations: 3.422 MB / 491.2 MB, free: 9.297 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002689/0.3337, allocations: 1.851 MB / 493 MB, free: 7.445 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01537/0.3491, allocations: 18.8 MB / 0.4998 GB, free: 4.621 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01475/0.3639, allocations: 14.41 MB / 0.5139 GB, free: 6.086 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003323/0.3672, allocations: 3 MB / 0.5168 GB, free: 3.074 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00482/0.372, allocations: 5.058 MB / 0.5218 GB, free: 14 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000583/0.3726, allocations: 340 kB / 0.5221 GB, free: 13.67 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002366/0.375, allocations: 1.591 MB / 0.5236 GB, free: 12.07 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002936/0.3779, allocations: 4.25 MB / 0.5278 GB, free: 7.812 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003181/0.3811, allocations: 4.498 MB / 0.5322 GB, free: 3.281 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.18/0.5611, allocations: 13.62 MB / 0.5455 GB, free: 28.38 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.628e-06/0.5611, allocations: 0.6562 kB / 0.5455 GB, free: 28.38 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.5612, allocations: 0 / 0.5455 GB, free: 28.38 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004835/0.5616, allocations: 0.5625 kB / 0.5455 GB, free: 28.38 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.02122/0.5829, allocations: 9.241 MB / 0.5545 GB, free: 24.63 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.319e-05/0.5829, allocations: 8.75 kB / 0.5545 GB, free: 24.63 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04158/0.6245, allocations: 5.535 MB / 0.5599 GB, free: 24.04 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01439/0.6389, allocations: 8.835 MB / 0.5685 GB, free: 21.71 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002372/0.6392, allocations: 0.5249 MB / 0.5691 GB, free: 21.7 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001214/0.6404, allocations: 0.733 MB / 0.5698 GB, free: 21.68 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02541/0.6658, allocations: 19.58 MB / 0.5889 GB, free: 15.62 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001931/0.666, allocations: 93.83 kB / 0.589 GB, free: 15.6 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007297/0.6668, allocations: 325.9 kB / 0.5893 GB, free: 15.6 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00308/0.6698, allocations: 2.82 MB / 0.592 GB, free: 15.06 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02305/0.6929, allocations: 16.33 MB / 0.608 GB, free: 4.223 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.07779/0.7707, allocations: 74.52 MB / 0.6808 GB, free: 8.59 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02007/0.7908, allocations: 8.553 MB / 0.6891 GB, free: 15.9 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005319/0.7961, allocations: 4.775 MB / 0.6938 GB, free: 11.11 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0188/0.8149, allocations: 15.4 MB / 0.7088 GB, free: 11.27 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.25e-05/0.815, allocations: 67.39 kB / 0.7089 GB, free: 11.2 MB / 0.545 GB Notification: Performance of pre-optimization done (n=321): time 4.368e-06/0.815, allocations: 0 / 0.7089 GB, free: 11.2 MB / 0.545 GB Notification: Performance of matching and sorting (n=428): time 0.3102/1.125, allocations: 54.88 MB / 0.7625 GB, free: 254.9 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.793e-05/1.125, allocations: 407.7 kB / 0.7629 GB, free: 254.4 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007354/1.133, allocations: 7.56 MB / 0.7703 GB, free: 251.8 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0004148/1.133, allocations: 93.75 kB / 0.7703 GB, free: 251.7 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002163/1.135, allocations: 5.589 MB / 0.7758 GB, free: 247.5 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009365/1.136, allocations: 1.566 MB / 0.7773 GB, free: 246.3 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009256/1.137, allocations: 0.9199 MB / 0.7782 GB, free: 245.8 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 2.967e-05/1.137, allocations: 305.1 kB / 0.7785 GB, free: 245.5 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005188/1.142, allocations: 5.217 MB / 0.7836 GB, free: 241 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006452/1.149, allocations: 10.27 MB / 0.7936 GB, free: 229.3 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01265/1.161, allocations: 16.31 MB / 0.8096 GB, free: 211.8 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.879e-05/1.162, allocations: 50.62 kB / 0.8096 GB, free: 211.8 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1335) (initialization): time 0.03011/1.192, allocations: 21.25 MB / 0.8304 GB, free: 190.7 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 6.737e-05/1.192, allocations: 76 kB / 0.8304 GB, free: 190.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001006/1.192, allocations: 180.1 kB / 0.8306 GB, free: 190.5 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01609/1.208, allocations: 6.658 MB / 0.8371 GB, free: 183.8 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004985/1.213, allocations: 2.148 MB / 0.8392 GB, free: 181.6 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03469/1.248, allocations: 32.83 MB / 0.8713 GB, free: 148.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006518/1.254, allocations: 0.6264 MB / 0.8719 GB, free: 148.1 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006024/1.255, allocations: 0.5365 MB / 0.8724 GB, free: 147.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.005108/1.26, allocations: 4.098 MB / 0.8764 GB, free: 143.4 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008077/1.261, allocations: 0.6942 MB / 0.8771 GB, free: 142.7 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02361/1.284, allocations: 14.31 MB / 0.8911 GB, free: 128.3 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.727e-05/1.284, allocations: 44 kB / 0.8911 GB, free: 128.3 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.838e-05/1.284, allocations: 24 kB / 0.8911 GB, free: 128.3 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.667e-05/1.284, allocations: 23.86 kB / 0.8912 GB, free: 128.3 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03777/1.322, allocations: 28.26 MB / 0.9188 GB, free: 99.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.474e-05/1.322, allocations: 12.03 kB / 0.9188 GB, free: 99.79 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002241/1.324, allocations: 0.5967 MB / 0.9194 GB, free: 99.2 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01571/1.34, allocations: 6.329 MB / 0.9255 GB, free: 92.86 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003016/1.34, allocations: 78.03 kB / 0.9256 GB, free: 92.78 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03194/1.372, allocations: 29.76 MB / 0.9547 GB, free: 62.88 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.621e-06/1.372, allocations: 11.94 kB / 0.9547 GB, free: 62.87 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02877/1.401, allocations: 20.93 MB / 0.9751 GB, free: 41.75 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002648/1.404, allocations: 1.574 MB / 0.9767 GB, free: 40.15 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007851/1.405, allocations: 85.75 kB / 0.9767 GB, free: 40.07 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003119/1.408, allocations: 340.2 kB / 0.9771 GB, free: 39.74 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007167/1.409, allocations: 295.2 kB / 0.9774 GB, free: 39.45 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002991/1.409, allocations: 113.5 kB / 0.9775 GB, free: 39.34 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.005281/1.414, allocations: 4.834 MB / 0.9822 GB, free: 34.54 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.6e-07/1.414, allocations: 0 / 0.9822 GB, free: 34.54 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.006432/1.421, allocations: 2.43 MB / 0.9846 GB, free: 32.12 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.0006228/1.421, allocations: 292.4 kB / 0.9848 GB, free: 31.84 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.1501/1.571, allocations: 12.7 MB / 0.9972 GB, free: 248 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 9.337e-06/1.571, allocations: 4.531 kB / 0.9972 GB, free: 248 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.006549/1.578, allocations: 5.347 MB / 1.002 GB, free: 246.8 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01147/1.589, allocations: 1.016 MB / 1.003 GB, free: 246.4 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02935/1.619, allocations: 27.62 MB / 1.03 GB, free: 232.4 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005348/1.624, allocations: 6.303 MB / 1.037 GB, free: 227.8 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00157/1.626, allocations: 494.2 kB / 1.037 GB, free: 227.3 MB / 0.5606 GB Notification: Performance of SimCode: time 5.41e-07/1.626, allocations: 0 / 1.037 GB, free: 227.3 MB / 0.5606 GB Notification: Performance of Templates: time 0.1335/1.759, allocations: 162.4 MB / 1.196 GB, free: 71 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