Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001279/0.001279, allocations: 176.4 kB / 17.4 MB, free: 4.426 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.331/1.331, allocations: 223.3 MB / 241.4 MB, free: 11.68 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007796/0.0007795, allocations: 98.81 kB / 292.6 MB, free: 10.8 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002916/0.0002917, allocations: 8 kB / 352.3 MB, free: 15.03 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2077/0.208, allocations: 50.4 MB / 402.7 MB, free: 32.48 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.123/0.331, allocations: 109.8 MB / 0.5005 GB, free: 2.559 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002479/0.3313, allocations: 91.95 kB / 0.5006 GB, free: 2.469 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8562/1.188, allocations: 235 MB / 0.73 GB, free: 42.32 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.725e-06/1.188, allocations: 0 / 0.73 GB, free: 42.32 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0008639/1.188, allocations: 234.3 kB / 0.7303 GB, free: 42.32 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4012 * Number of variables: 4012 Notification: Performance of Generate backend data structure: time 0.0615/1.25, allocations: 12.25 MB / 0.7422 GB, free: 37.98 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.226e-05/1.25, allocations: 14.5 kB / 0.7422 GB, free: 37.98 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02853/1.279, allocations: 3.879 MB / 0.746 GB, free: 37.2 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03699/1.316, allocations: 10.59 MB / 0.7564 GB, free: 35.79 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001298/1.317, allocations: 0.8849 MB / 0.7572 GB, free: 35.76 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008051/1.325, allocations: 1.18 MB / 0.7584 GB, free: 35.75 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0903/1.415, allocations: 33.17 MB / 0.7908 GB, free: 6.516 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006914/1.416, allocations: 107 kB / 0.7909 GB, free: 6.41 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005148/1.421, allocations: 0.5329 MB / 0.7914 GB, free: 5.934 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00336/1.425, allocations: 2.584 MB / 0.7939 GB, free: 3.359 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07103/1.496, allocations: 30.32 MB / 0.8235 GB, free: 5.031 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4267/1.923, allocations: 120.1 MB / 0.9408 GB, free: 16.45 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04453/1.967, allocations: 17.34 MB / 0.9578 GB, free: 11.98 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01128/1.978, allocations: 8.818 MB / 0.9664 GB, free: 7.793 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05186/2.03, allocations: 30.87 MB / 0.9965 GB, free: 1.418 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.377e-05/2.03, allocations: 88.8 kB / 0.9966 GB, free: 1.328 MB / 490.7 MB Notification: Performance of pre-optimization done (n=489): time 8.586e-06/2.03, allocations: 0 / 0.9966 GB, free: 1.328 MB / 490.7 MB Notification: Performance of matching and sorting (n=726): time 0.8494/2.88, allocations: 172.1 MB / 1.165 GB, free: 26.53 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.474e-05/2.88, allocations: 201.8 kB / 1.165 GB, free: 26.3 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01234/2.892, allocations: 7.857 MB / 1.173 GB, free: 18.59 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.002058/2.895, allocations: 137.7 kB / 1.173 GB, free: 18.45 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0038/2.898, allocations: 7.075 MB / 1.18 GB, free: 11.56 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.261/3.159, allocations: 2.572 MB / 1.182 GB, free: 98.39 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00222/3.162, allocations: 286.9 kB / 1.182 GB, free: 98.39 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.000957/3.163, allocations: 0.9111 MB / 1.183 GB, free: 98.05 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01608/3.179, allocations: 10.31 MB / 1.193 GB, free: 98.02 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02081/3.2, allocations: 17 MB / 1.21 GB, free: 89.74 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.03636/3.236, allocations: 28.64 MB / 1.238 GB, free: 76.46 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003591/3.236, allocations: 62.78 kB / 1.238 GB, free: 76.46 MB / 490.7 MB Notification: Performance of matching and sorting (n=1878) (initialization): time 0.05176/3.288, allocations: 27.69 MB / 1.265 GB, free: 65.05 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003063/3.288, allocations: 105.8 kB / 1.265 GB, free: 65.05 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004027/3.289, allocations: 227.8 kB / 1.265 GB, free: 65.05 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003881/3.289, allocations: 319.3 kB / 1.266 GB, free: 65.05 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01824/3.308, allocations: 4.26 MB / 1.27 GB, free: 64.67 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006864/3.308, allocations: 465.5 kB / 1.27 GB, free: 64.57 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01413/3.322, allocations: 1.234 MB / 1.271 GB, free: 64.34 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003278/3.326, allocations: 0.7411 MB / 1.272 GB, free: 64.23 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1034 * Number of states: 0 () * Number of discrete variables: 102 (body3.sphereColor[3],body3.sphereColor[2],body3.sphereColor[1],body3.cylinderColor[3],body3.cylinderColor[2],body3.cylinderColor[1],rod4.color[3],rod4.color[2],rod4.color[1],jointRRR3.rodColor[3],jointRRR3.rodColor[2],jointRRR3.rodColor[1],jointRRR3.cylinderColor[3],jointRRR3.cylinderColor[2],jointRRR3.cylinderColor[1],jointRRR3.jointUSR.rod1Color[3],jointRRR3.jointUSR.rod1Color[2],jointRRR3.jointUSR.rod1Color[1],jointRRR3.jointUSR.cylinderColor[3],jointRRR3.jointUSR.cylinderColor[2],jointRRR3.jointUSR.cylinderColor[1],jointRRR3.jointUSR.sphereColor[3],jointRRR3.jointUSR.sphereColor[2],jointRRR3.jointUSR.sphereColor[1],jointRRR3.jointUSR.revoluteColor[3],jointRRR3.jointUSR.revoluteColor[2],jointRRR3.jointUSR.revoluteColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],body2.cylinderColor[3],body2.cylinderColor[2],body2.cylinderColor[1],rod3.color[3],rod3.color[2],rod3.color[1],jointRRR2.rodColor[3],jointRRR2.rodColor[2],jointRRR2.rodColor[1],jointRRR2.cylinderColor[3],jointRRR2.cylinderColor[2],jointRRR2.cylinderColor[1],jointRRR2.jointUSR.rod1Color[3],jointRRR2.jointUSR.rod1Color[2],jointRRR2.jointUSR.rod1Color[1],jointRRR2.jointUSR.cylinderColor[3],jointRRR2.jointUSR.cylinderColor[2],jointRRR2.jointUSR.cylinderColor[1],jointRRR2.jointUSR.sphereColor[3],jointRRR2.jointUSR.sphereColor[2],jointRRR2.jointUSR.sphereColor[1],jointRRR2.jointUSR.revoluteColor[3],jointRRR2.jointUSR.revoluteColor[2],jointRRR2.jointUSR.revoluteColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],body1.cylinderColor[3],body1.cylinderColor[2],body1.cylinderColor[1],rod2.color[3],rod2.color[2],rod2.color[1],rod1.color[3],rod1.color[2],rod1.color[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],jointRRR1.rodColor[3],jointRRR1.rodColor[2],jointRRR1.rodColor[1],jointRRR1.cylinderColor[3],jointRRR1.cylinderColor[2],jointRRR1.cylinderColor[1],jointRRR1.jointUSR.revolute.positiveBranch,jointRRR2.jointUSR.revolute.positiveBranch,jointRRR3.jointUSR.revolute.positiveBranch,jointRRR1.jointUSR.rod1Color[3],jointRRR1.jointUSR.rod1Color[2],jointRRR1.jointUSR.rod1Color[1],jointRRR1.jointUSR.cylinderColor[3],jointRRR1.jointUSR.cylinderColor[2],jointRRR1.jointUSR.cylinderColor[1],jointRRR1.jointUSR.sphereColor[3],jointRRR1.jointUSR.sphereColor[2],jointRRR1.jointUSR.sphereColor[1],jointRRR1.jointUSR.revoluteColor[3],jointRRR1.jointUSR.revoluteColor[2],jointRRR1.jointUSR.revoluteColor[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 (1848): * Single equations (assignments): 1842 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01377/3.34, allocations: 5.459 MB / 1.277 GB, free: 61.75 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002633/3.342, allocations: 0.8002 MB / 1.278 GB, free: 61.75 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0314/3.374, allocations: 19.61 MB / 1.297 GB, free: 44.79 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.188e-05/3.374, allocations: 72 kB / 1.297 GB, free: 44.72 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.194e-05/3.374, allocations: 6.5 kB / 1.297 GB, free: 44.71 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001329/3.374, allocations: 37.38 kB / 1.298 GB, free: 44.71 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06446/3.438, allocations: 42.53 MB / 1.339 GB, free: 9.223 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.611e-05/3.438, allocations: 4 kB / 1.339 GB, free: 9.219 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01114/3.45, allocations: 2.159 MB / 1.341 GB, free: 7.711 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.648e-05/3.45, allocations: 31.94 kB / 1.341 GB, free: 7.68 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008949/3.451, allocations: 126.9 kB / 1.341 GB, free: 7.562 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.739e-05/3.451, allocations: 35.88 kB / 1.341 GB, free: 7.531 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.601e-06/3.451, allocations: 8 kB / 1.341 GB, free: 7.523 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2646/3.715, allocations: 34.35 MB / 1.375 GB, free: 102 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006183/3.721, allocations: 2.708 MB / 1.378 GB, free: 101.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002469/3.724, allocations: 119.5 kB / 1.378 GB, free: 101.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008521/3.732, allocations: 0.7629 MB / 1.378 GB, free: 101.9 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002208/3.735, allocations: 393 kB / 1.379 GB, free: 101.9 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001186/3.736, allocations: 178.1 kB / 1.379 GB, free: 101.9 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.01342/3.749, allocations: 4.881 MB / 1.384 GB, free: 101.7 MB / 0.4948 GB Notification: Performance of sort global known variables: time 7.02e-07/3.749, allocations: 1.094 kB / 1.384 GB, free: 101.7 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.014/3.763, allocations: 3.166 MB / 1.387 GB, free: 101.7 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 24 * Number of states: 2 (rev.phi,rev.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 (710): * Single equations (assignments): 707 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001968/3.765, allocations: 424.3 kB / 1.387 GB, free: 101.6 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.02984/3.795, allocations: 23.24 MB / 1.41 GB, free: 97.16 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.192e-05/3.795, allocations: 7.156 kB / 1.41 GB, free: 97.16 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.01253/3.808, allocations: 9.834 MB / 1.42 GB, free: 92.89 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01309/3.821, allocations: 0.9542 MB / 1.42 GB, free: 92.41 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05514/3.876, allocations: 37.88 MB / 1.457 GB, free: 74.01 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01317/3.889, allocations: 8.027 MB / 1.465 GB, free: 68.62 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.01622/3.906, allocations: 5.068 MB / 1.47 GB, free: 65.41 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004381/3.91, allocations: 0.5999 MB / 1.471 GB, free: 64.83 MB / 0.4948 GB Notification: Performance of SimCode: time 7.02e-07/3.91, allocations: 0 / 1.471 GB, free: 64.83 MB / 0.4948 GB Notification: Performance of Templates: time 0.4277/4.338, allocations: 122.6 MB / 1.591 GB, free: 95.94 MB / 0.4948 GB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/PlanarLoops_analytic/PlanarLoops_analytic.csv","../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches