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.0008119/0.0008118, allocations: 92.28 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008904/0.0008904, allocations: 206.3 kB / 18.29 MB, free: 5.473 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.411/1.411, allocations: 227.7 MB / 246.8 MB, free: 11.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002256/0.0002259, allocations: 4 kB / 307.7 MB, free: 0.8125 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09524/0.09548, allocations: 51.52 MB / 359.3 MB, free: 13.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic): time 0.2716/0.3671, allocations: 110.8 MB / 470.1 MB, free: 11.8 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.05077/0.4179, allocations: 21.97 MB / 492.1 MB, free: 5.758 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0174/0.4354, allocations: 0.5104 MB / 492.6 MB, free: 5.246 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002511/0.4379, allocations: 0.8005 MB / 493.4 MB, free: 4.441 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007863/0.4458, allocations: 3.383 MB / 496.8 MB, free: 1.047 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003804/0.4496, allocations: 1.852 MB / 498.6 MB, free: 15.2 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.02229/0.4719, allocations: 19.1 MB / 0.5056 GB, free: 12.06 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02073/0.4927, allocations: 14.36 MB / 0.5196 GB, free: 13.56 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005422/0.4982, allocations: 2.992 MB / 0.5225 GB, free: 10.56 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007216/0.5054, allocations: 5.054 MB / 0.5275 GB, free: 5.488 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001523/0.5069, allocations: 336 kB / 0.5278 GB, free: 5.16 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003898/0.5109, allocations: 1.568 MB / 0.5293 GB, free: 3.59 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.238/0.7489, allocations: 4.227 MB / 0.5335 GB, free: 21.14 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01139/0.7603, allocations: 4.474 MB / 0.5378 GB, free: 20.87 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02188/0.7822, allocations: 16.02 MB / 0.5535 GB, free: 18.91 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.099e-06/0.7823, allocations: 0 / 0.5535 GB, free: 18.91 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.284e-06/0.7823, allocations: 0 / 0.5535 GB, free: 18.91 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0006336/0.7829, allocations: 0 / 0.5535 GB, free: 18.91 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.02878/0.8117, allocations: 9.207 MB / 0.5625 GB, free: 15.14 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.872e-05/0.8118, allocations: 8.125 kB / 0.5625 GB, free: 15.14 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0478/0.8596, allocations: 5.532 MB / 0.5679 GB, free: 13.16 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02037/0.88, allocations: 8.673 MB / 0.5763 GB, free: 10.4 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003992/0.8804, allocations: 0.5255 MB / 0.5769 GB, free: 10.38 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003066/0.8835, allocations: 0.7317 MB / 0.5776 GB, free: 10.36 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03732/0.9208, allocations: 19.59 MB / 0.5967 GB, free: 4.297 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003252/0.9212, allocations: 96.17 kB / 0.5968 GB, free: 4.277 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001077/0.9223, allocations: 319.9 kB / 0.5971 GB, free: 4.277 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003906/0.9262, allocations: 2.82 MB / 0.5998 GB, free: 3.734 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03375/0.96, allocations: 16.33 MB / 0.6158 GB, free: 5.957 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.1133/1.073, allocations: 74.5 MB / 0.6885 GB, free: 10.29 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02362/1.097, allocations: 8.52 MB / 0.6969 GB, free: 1.637 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007685/1.105, allocations: 4.778 MB / 0.7015 GB, free: 12.84 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02995/1.135, allocations: 15.49 MB / 0.7167 GB, free: 12.88 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.41e-05/1.135, allocations: 68.66 kB / 0.7167 GB, free: 12.8 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=320): time 9.347e-06/1.135, allocations: 0 / 0.7167 GB, free: 12.8 MB / 0.5606 GB Notification: Performance of matching and sorting (n=426): time 0.4536/1.588, allocations: 52.49 MB / 0.768 GB, free: 244.5 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001193/1.589, allocations: 410.7 kB / 0.7684 GB, free: 244 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01182/1.6, allocations: 7.546 MB / 0.7757 GB, free: 237.7 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.001456/1.602, allocations: 90.56 kB / 0.7758 GB, free: 237.6 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.003482/1.605, allocations: 5.592 MB / 0.7813 GB, free: 232.6 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.002062/1.607, allocations: 1.562 MB / 0.7828 GB, free: 231.2 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001571/1.609, allocations: 0.9129 MB / 0.7837 GB, free: 230.4 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 5.739e-05/1.609, allocations: 301.1 kB / 0.784 GB, free: 230.1 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007224/1.616, allocations: 5.218 MB / 0.7891 GB, free: 225.6 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009477/1.626, allocations: 10.26 MB / 0.7991 GB, free: 213.4 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01869/1.645, allocations: 16.31 MB / 0.815 GB, free: 194.6 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001411/1.645, allocations: 52 kB / 0.8151 GB, free: 194.6 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1333) (initialization): time 0.0409/1.686, allocations: 21.24 MB / 0.8358 GB, free: 173.3 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001122/1.686, allocations: 79.94 kB / 0.8359 GB, free: 173.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001854/1.686, allocations: 172.8 kB / 0.8361 GB, free: 173.1 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01913/1.705, allocations: 6.663 MB / 0.8426 GB, free: 166.4 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007652/1.713, allocations: 2.148 MB / 0.8447 GB, free: 164.3 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04527/1.758, allocations: 32.84 MB / 0.8767 GB, free: 131.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01175/1.77, allocations: 0.6241 MB / 0.8774 GB, free: 130.7 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002071/1.772, allocations: 0.5273 MB / 0.8779 GB, free: 130.1 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.0124/1.784, allocations: 4.102 MB / 0.8819 GB, free: 126 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002189/1.787, allocations: 0.6982 MB / 0.8826 GB, free: 125.3 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04212/1.829, allocations: 14.3 MB / 0.8965 GB, free: 111 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.63e-05/1.829, allocations: 46.19 kB / 0.8966 GB, free: 110.9 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.675e-05/1.829, allocations: 24 kB / 0.8966 GB, free: 110.9 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.871e-05/1.829, allocations: 19.92 kB / 0.8966 GB, free: 110.9 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05325/1.882, allocations: 28.24 MB / 0.9242 GB, free: 82.43 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.991e-05/1.882, allocations: 15.92 kB / 0.9242 GB, free: 82.41 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002895/1.885, allocations: 0.5941 MB / 0.9248 GB, free: 81.82 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01791/1.903, allocations: 6.327 MB / 0.931 GB, free: 75.48 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001221/1.904, allocations: 77.8 kB / 0.931 GB, free: 75.41 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04058/1.945, allocations: 29.76 MB / 0.9601 GB, free: 45.5 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-05/1.945, allocations: 11.94 kB / 0.9601 GB, free: 45.49 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3144/2.26, allocations: 20.92 MB / 0.9805 GB, free: 228.7 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002957/2.263, allocations: 0.7506 MB / 0.9813 GB, free: 228.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003437/2.266, allocations: 79.19 kB / 0.9813 GB, free: 228.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005658/2.272, allocations: 334.6 kB / 0.9817 GB, free: 228.6 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002032/2.274, allocations: 302.1 kB / 0.9819 GB, free: 228.6 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008571/2.275, allocations: 114.5 kB / 0.9821 GB, free: 228.6 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.01279/2.287, allocations: 4.826 MB / 0.9868 GB, free: 228.4 MB / 0.5606 GB Notification: Performance of sort global known variables: time 5.01e-07/2.288, allocations: 3.906 kB / 0.9868 GB, free: 228.4 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.01622/2.304, allocations: 2.406 MB / 0.9891 GB, free: 228.4 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.001331/2.305, allocations: 278.4 kB / 0.9894 GB, free: 228.3 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0194/2.325, allocations: 12.7 MB / 1.002 GB, free: 224.4 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.182e-05/2.325, allocations: 1.969 kB / 1.002 GB, free: 224.4 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.007634/2.332, allocations: 5.34 MB / 1.007 GB, free: 222.1 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01552/2.348, allocations: 1.009 MB / 1.008 GB, free: 221.7 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04208/2.39, allocations: 26.9 MB / 1.034 GB, free: 207.9 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008506/2.398, allocations: 6.372 MB / 1.04 GB, free: 203.1 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.007432/2.406, allocations: 2.953 MB / 1.043 GB, free: 201.2 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001335/2.407, allocations: 434.2 kB / 1.044 GB, free: 200.8 MB / 0.5606 GB Notification: Performance of SimCode: time 1.233e-06/2.407, allocations: 0 / 1.044 GB, free: 200.8 MB / 0.5606 GB Notification: Performance of Templates: time 0.1595/2.567, allocations: 105.5 MB / 1.147 GB, free: 101.9 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