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.0008124/0.0008126, allocations: 93.67 kB / 18 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009636/0.0009637, allocations: 204.9 kB / 18.93 MB, free: 4.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.459/1.459, allocations: 227.7 MB / 247.5 MB, free: 11.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002517/0.0002517, allocations: 8 kB / 308.4 MB, free: 0.7695 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09964/0.09991, allocations: 51.52 MB / 359.9 MB, free: 13.25 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic): time 0.2759/0.3759, allocations: 110.8 MB / 470.8 MB, free: 11.76 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0564/0.4323, allocations: 21.98 MB / 492.7 MB, free: 5.711 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02489/0.4573, allocations: 0.4987 MB / 493.2 MB, free: 5.211 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00349/0.4608, allocations: 0.8045 MB / 494 MB, free: 4.402 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01079/0.4716, allocations: 3.384 MB / 497.4 MB, free: 1.012 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005123/0.4768, allocations: 1.857 MB / 499.3 MB, free: 15.16 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.02147/0.4983, allocations: 19.1 MB / 0.5062 GB, free: 12.02 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0209/0.5192, allocations: 14.37 MB / 0.5203 GB, free: 13.52 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006247/0.5255, allocations: 2.977 MB / 0.5232 GB, free: 10.53 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008802/0.5344, allocations: 5.066 MB / 0.5281 GB, free: 5.445 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002293/0.5367, allocations: 336 kB / 0.5284 GB, free: 5.117 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004567/0.5413, allocations: 1.568 MB / 0.53 GB, free: 3.547 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2593/0.8007, allocations: 4.222 MB / 0.5341 GB, free: 21.15 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01481/0.8155, allocations: 4.469 MB / 0.5385 GB, free: 20.88 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02224/0.8378, allocations: 13.59 MB / 0.5517 GB, free: 20.16 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.933e-06/0.8378, allocations: 0 / 0.5517 GB, free: 20.16 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.705e-06/0.8379, allocations: 0 / 0.5517 GB, free: 20.16 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0008008/0.8387, allocations: 2.156 kB / 0.5517 GB, free: 20.16 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.03327/0.8719, allocations: 9.209 MB / 0.5607 GB, free: 16.39 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.285e-05/0.872, allocations: 8.562 kB / 0.5607 GB, free: 16.39 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04881/0.9208, allocations: 5.532 MB / 0.5661 GB, free: 14.66 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02255/0.9434, allocations: 8.682 MB / 0.5746 GB, free: 11.89 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000635/0.9441, allocations: 0.5173 MB / 0.5751 GB, free: 11.87 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004599/0.9487, allocations: 0.7335 MB / 0.5758 GB, free: 11.84 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04884/0.9976, allocations: 19.59 MB / 0.595 GB, free: 5.785 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007415/0.9984, allocations: 96.48 kB / 0.5951 GB, free: 5.766 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00382/1.002, allocations: 322.4 kB / 0.5954 GB, free: 5.766 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004425/1.007, allocations: 2.816 MB / 0.5981 GB, free: 5.227 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03958/1.046, allocations: 16.33 MB / 0.6141 GB, free: 8.367 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.121/1.167, allocations: 74.5 MB / 0.6868 GB, free: 12.7 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02452/1.192, allocations: 8.524 MB / 0.6951 GB, free: 4.051 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007897/1.2, allocations: 4.774 MB / 0.6998 GB, free: 15.26 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03131/1.231, allocations: 15.48 MB / 0.7149 GB, free: 15.29 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.811e-05/1.231, allocations: 79.08 kB / 0.715 GB, free: 15.2 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=320): time 8.767e-06/1.231, allocations: 0 / 0.715 GB, free: 15.2 MB / 0.5606 GB Notification: Performance of matching and sorting (n=426): time 0.4369/1.668, allocations: 52.48 MB / 0.7662 GB, free: 245.7 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001187/1.668, allocations: 416 kB / 0.7666 GB, free: 245.2 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01546/1.684, allocations: 7.551 MB / 0.774 GB, free: 239.6 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.001364/1.685, allocations: 90.41 kB / 0.7741 GB, free: 239.5 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.004416/1.69, allocations: 5.587 MB / 0.7796 GB, free: 234.5 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.002409/1.692, allocations: 1.56 MB / 0.7811 GB, free: 233.1 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003077/1.695, allocations: 0.9104 MB / 0.782 GB, free: 232.3 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.982e-05/1.695, allocations: 301.1 kB / 0.7823 GB, free: 232 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008486/1.704, allocations: 5.223 MB / 0.7874 GB, free: 227.5 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0114/1.715, allocations: 10.26 MB / 0.7974 GB, free: 215.6 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01948/1.735, allocations: 16.3 MB / 0.8133 GB, free: 196.9 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001766/1.735, allocations: 48 kB / 0.8133 GB, free: 196.9 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1333) (initialization): time 0.04684/1.782, allocations: 21.25 MB / 0.8341 GB, free: 175.6 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002214/1.782, allocations: 76.75 kB / 0.8342 GB, free: 175.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002746/1.782, allocations: 172 kB / 0.8343 GB, free: 175.4 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02037/1.803, allocations: 6.665 MB / 0.8408 GB, free: 168.7 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007376/1.81, allocations: 2.145 MB / 0.8429 GB, free: 166.5 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.051/1.861, allocations: 32.84 MB / 0.875 GB, free: 133.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009997/1.871, allocations: 0.6241 MB / 0.8756 GB, free: 133 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002615/1.874, allocations: 0.5329 MB / 0.8761 GB, free: 132.4 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.01089/1.885, allocations: 4.104 MB / 0.8801 GB, free: 128.3 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002396/1.887, allocations: 0.6981 MB / 0.8808 GB, free: 127.6 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03445/1.922, allocations: 14.3 MB / 0.8948 GB, free: 113.2 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.846e-05/1.922, allocations: 46.19 kB / 0.8948 GB, free: 113.2 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.679e-05/1.922, allocations: 28 kB / 0.8949 GB, free: 113.2 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001094/1.922, allocations: 19.92 kB / 0.8949 GB, free: 113.2 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06416/1.986, allocations: 28.25 MB / 0.9225 GB, free: 84.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.6e-05/1.986, allocations: 8.562 kB / 0.9225 GB, free: 84.69 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003118/1.989, allocations: 0.5933 MB / 0.923 GB, free: 84.1 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01954/2.009, allocations: 6.323 MB / 0.9292 GB, free: 77.76 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001387/2.01, allocations: 80 kB / 0.9293 GB, free: 77.68 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04502/2.056, allocations: 29.75 MB / 0.9584 GB, free: 47.78 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.115e-05/2.056, allocations: 11.94 kB / 0.9584 GB, free: 47.77 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2578/2.313, allocations: 20.92 MB / 0.9788 GB, free: 230.9 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003297/2.317, allocations: 0.7437 MB / 0.9795 GB, free: 230.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003366/2.32, allocations: 81.66 kB / 0.9796 GB, free: 230.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006446/2.327, allocations: 333.9 kB / 0.9799 GB, free: 230.8 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002127/2.329, allocations: 300 kB / 0.9802 GB, free: 230.8 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001126/2.33, allocations: 113.3 kB / 0.9803 GB, free: 230.8 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.01353/2.343, allocations: 4.826 MB / 0.985 GB, free: 230.6 MB / 0.5606 GB Notification: Performance of sort global known variables: time 6.41e-07/2.344, allocations: 3.531 kB / 0.985 GB, free: 230.6 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.01598/2.359, allocations: 2.412 MB / 0.9874 GB, free: 230.6 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.001838/2.361, allocations: 277.5 kB / 0.9876 GB, free: 230.5 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0225/2.384, allocations: 12.7 MB / 1 GB, free: 227.6 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.386e-05/2.384, allocations: 0 / 1 GB, free: 227.6 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.009573/2.394, allocations: 5.345 MB / 1.005 GB, free: 225.3 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01877/2.412, allocations: 1.016 MB / 1.006 GB, free: 224.9 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04887/2.461, allocations: 27.58 MB / 1.033 GB, free: 209.4 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01217/2.473, allocations: 6.302 MB / 1.039 GB, free: 204.7 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002452/2.476, allocations: 491.1 kB / 1.04 GB, free: 204.2 MB / 0.5606 GB Notification: Performance of SimCode: time 1.253e-06/2.476, allocations: 0 / 1.04 GB, free: 204.2 MB / 0.5606 GB Notification: Performance of Templates: time 0.2022/2.678, allocations: 162 MB / 1.198 GB, free: 49.71 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/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