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.001453/0.001453, allocations: 117 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001391/0.001391, allocations: 204.5 kB / 19.36 MB, free: 3.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.421/1.421, allocations: 227.4 MB / 247.5 MB, free: 10.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001296/0.001296, allocations: 62.77 kB / 308.4 MB, free: 15.86 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1156/0.1169, allocations: 50.53 MB / 358.9 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic): time 0.2056/0.3225, allocations: 23.3 MB / 382.2 MB, free: 8.359 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01517/0.3377, allocations: 7.081 MB / 389.3 MB, free: 4.176 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006454/0.3442, allocations: 176.5 kB / 389.5 MB, free: 4.141 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01503/0.3593, allocations: 7.916 MB / 397.4 MB, free: 108 kB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0143/0.3737, allocations: 3.546 MB / 400.9 MB, free: 13.48 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005525/0.3792, allocations: 2.003 MB / 402.9 MB, free: 12.11 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01875/0.398, allocations: 13.55 MB / 416.5 MB, free: 1.336 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01311/0.4112, allocations: 10.44 MB / 426.9 MB, free: 6.816 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008984/0.4202, allocations: 4.262 MB / 431.2 MB, free: 2.543 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01006/0.4303, allocations: 5.684 MB / 436.9 MB, free: 12.84 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004289/0.4346, allocations: 1 MB / 437.9 MB, free: 11.84 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007778/0.4424, allocations: 2.139 MB / 440 MB, free: 9.703 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007436/0.4499, allocations: 5.004 MB / 445 MB, free: 4.688 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01008/0.46, allocations: 5.394 MB / 450.4 MB, free: 15.26 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02058/0.4806, allocations: 17.19 MB / 467.6 MB, free: 14.02 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.074e-05/0.4807, allocations: 4 kB / 467.6 MB, free: 14.02 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.4807, allocations: 0 / 467.6 MB, free: 14.02 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0006047/0.4813, allocations: 0 / 467.6 MB, free: 14.02 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.033/0.5143, allocations: 11.18 MB / 478.8 MB, free: 2.738 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.342e-05/0.5144, allocations: 12.02 kB / 478.8 MB, free: 2.727 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04307/0.5575, allocations: 5.414 MB / 484.2 MB, free: 13.29 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02434/0.5818, allocations: 8.867 MB / 493.1 MB, free: 4.332 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004839/0.5824, allocations: 0.5259 MB / 493.6 MB, free: 3.805 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003371/0.5857, allocations: 0.7298 MB / 494.3 MB, free: 3.074 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03994/0.6257, allocations: 19.51 MB / 0.5018 GB, free: 14.52 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005148/0.6263, allocations: 91.17 kB / 0.5019 GB, free: 14.43 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002456/0.6287, allocations: 327.8 kB / 0.5022 GB, free: 14.11 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004174/0.6329, allocations: 2.817 MB / 0.5049 GB, free: 11.29 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03426/0.6672, allocations: 16.26 MB / 0.5208 GB, free: 10.99 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.481/1.148, allocations: 74.02 MB / 0.5931 GB, free: 83.69 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02164/1.17, allocations: 8.482 MB / 0.6014 GB, free: 79.33 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00603/1.176, allocations: 4.774 MB / 0.6061 GB, free: 76.57 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02493/1.201, allocations: 15.47 MB / 0.6212 GB, free: 60.8 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.686e-05/1.201, allocations: 68.59 kB / 0.6212 GB, free: 60.72 MB / 446.1 MB Notification: Performance of pre-optimization done (n=320): time 7.144e-06/1.201, allocations: 2.25 kB / 0.6212 GB, free: 60.72 MB / 446.1 MB Notification: Performance of matching and sorting (n=426): time 0.1592/1.36, allocations: 52.3 MB / 0.6723 GB, free: 8.352 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001268/1.36, allocations: 406.8 kB / 0.6727 GB, free: 7.867 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0103/1.371, allocations: 7.551 MB / 0.6801 GB, free: 360 kB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001312/1.372, allocations: 93.7 kB / 0.6801 GB, free: 260 kB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004968/1.377, allocations: 5.591 MB / 0.6856 GB, free: 10.66 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002827/1.38, allocations: 1.551 MB / 0.6871 GB, free: 9.117 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005112/1.385, allocations: 2.082 MB / 0.6892 GB, free: 7.027 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001354/1.385, allocations: 305.1 kB / 0.6894 GB, free: 6.727 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008546/1.394, allocations: 5.224 MB / 0.6945 GB, free: 1.496 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01488/1.409, allocations: 10.26 MB / 0.7046 GB, free: 4.816 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2783/1.687, allocations: 16.29 MB / 0.7205 GB, free: 140.7 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001799/1.687, allocations: 48.97 kB / 0.7205 GB, free: 140.7 MB / 478.1 MB Notification: Performance of matching and sorting (n=1333) (initialization): time 0.05144/1.739, allocations: 21.25 MB / 0.7413 GB, free: 133.6 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001522/1.739, allocations: 78 kB / 0.7413 GB, free: 133.6 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002898/1.739, allocations: 172 kB / 0.7415 GB, free: 133.6 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0196/1.759, allocations: 6.657 MB / 0.748 GB, free: 132.2 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007023/1.766, allocations: 2.156 MB / 0.7501 GB, free: 132 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04455/1.811, allocations: 35.04 MB / 0.7843 GB, free: 99.79 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01127/1.822, allocations: 0.6175 MB / 0.7849 GB, free: 99.19 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002257/1.824, allocations: 0.5423 MB / 0.7855 GB, free: 98.65 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.008532/1.833, allocations: 4.097 MB / 0.7895 GB, free: 94.66 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001851/1.835, allocations: 0.6906 MB / 0.7901 GB, free: 94.34 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02671/1.861, allocations: 14.3 MB / 0.8041 GB, free: 79.98 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.665e-05/1.861, allocations: 44 kB / 0.8042 GB, free: 79.94 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.72e-05/1.861, allocations: 24 kB / 0.8042 GB, free: 79.92 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.453e-05/1.862, allocations: 23.86 kB / 0.8042 GB, free: 79.89 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05824/1.92, allocations: 28.06 MB / 0.8316 GB, free: 51.86 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.334e-05/1.92, allocations: 9.641 kB / 0.8316 GB, free: 51.85 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003137/1.923, allocations: 0.5934 MB / 0.8322 GB, free: 51.25 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0181/1.941, allocations: 6.318 MB / 0.8384 GB, free: 44.93 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001172/1.942, allocations: 83.98 kB / 0.8384 GB, free: 44.85 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03832/1.981, allocations: 31.9 MB / 0.8696 GB, free: 12.83 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.231e-05/1.981, allocations: 11.94 kB / 0.8696 GB, free: 12.82 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2729/2.254, allocations: 20.92 MB / 0.89 GB, free: 139.9 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002638/2.256, allocations: 0.7368 MB / 0.8908 GB, free: 139.8 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002709/2.259, allocations: 77.53 kB / 0.8908 GB, free: 139.8 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005969/2.265, allocations: 336.9 kB / 0.8911 GB, free: 139.8 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002407/2.268, allocations: 303 kB / 0.8914 GB, free: 139.8 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001125/2.269, allocations: 110.6 kB / 0.8915 GB, free: 139.8 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.01319/2.282, allocations: 4.828 MB / 0.8963 GB, free: 138.9 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.182e-06/2.282, allocations: 0 / 0.8963 GB, free: 138.9 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.01377/2.296, allocations: 2.41 MB / 0.8986 GB, free: 138.6 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.001661/2.297, allocations: 276.8 kB / 0.8989 GB, free: 138.5 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01962/2.317, allocations: 12.74 MB / 0.9113 GB, free: 133.5 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.728e-05/2.317, allocations: 3.812 kB / 0.9113 GB, free: 133.5 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00902/2.326, allocations: 5.344 MB / 0.9165 GB, free: 131.2 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01406/2.34, allocations: 1.082 MB / 0.9176 GB, free: 130.7 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0466/2.387, allocations: 22.43 MB / 0.9395 GB, free: 116.2 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01175/2.399, allocations: 6.375 MB / 0.9457 GB, free: 111.4 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.008255/2.407, allocations: 2.952 MB / 0.9486 GB, free: 109.4 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002057/2.409, allocations: 429.9 kB / 0.949 GB, free: 109 MB / 478.1 MB Notification: Performance of SimCode: time 1.403e-06/2.409, allocations: 3.594 kB / 0.949 GB, free: 109 MB / 478.1 MB Notification: Performance of Templates: time 0.155/2.564, allocations: 103.9 MB / 1.05 GB, free: 5.754 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 -s cvode -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