Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_trunk_cpp_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_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001063/0.001063, allocations: 199.6 kB / 18.07 MB, free: 3.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.519/1.519, allocations: 226.5 MB / 245.4 MB, free: 8.223 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009677/0.0009675, allocations: 100 kB / 297.4 MB, free: 6.883 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002504/0.0002506, allocations: 4 kB / 357.4 MB, free: 10.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2293/0.2296, allocations: 51.3 MB / 408.7 MB, free: 27.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3312/0.5608, allocations: 110.3 MB / 0.5068 GB, free: 95.39 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002818/0.5612, allocations: 93.03 kB / 0.5069 GB, free: 95.39 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7905/1.352, allocations: 236.9 MB / 0.7382 GB, free: 46.73 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.284e-06/1.352, allocations: 0 / 0.7382 GB, free: 46.73 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0008007/1.353, allocations: 232.5 kB / 0.7384 GB, free: 46.72 MB / 442.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.0412/1.394, allocations: 12.34 MB / 0.7505 GB, free: 42.37 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.915e-05/1.394, allocations: 10.59 kB / 0.7505 GB, free: 42.37 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02199/1.416, allocations: 3.895 MB / 0.7543 GB, free: 41.6 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02531/1.441, allocations: 10.32 MB / 0.7643 GB, free: 40.22 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009378/1.442, allocations: 0.8851 MB / 0.7652 GB, free: 40.2 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006637/1.449, allocations: 1.183 MB / 0.7664 GB, free: 40.18 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08452/1.533, allocations: 33.17 MB / 0.7988 GB, free: 18.88 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001212/1.535, allocations: 102.3 kB / 0.7989 GB, free: 18.79 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007772/1.543, allocations: 0.5321 MB / 0.7994 GB, free: 18.31 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004981/1.548, allocations: 2.584 MB / 0.8019 GB, free: 16.12 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06667/1.614, allocations: 30.32 MB / 0.8315 GB, free: 3.781 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4442/2.059, allocations: 120.1 MB / 0.9488 GB, free: 40.43 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.04676/2.105, allocations: 17.34 MB / 0.9657 GB, free: 38.07 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01237/2.118, allocations: 8.815 MB / 0.9743 GB, free: 33.89 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05127/2.169, allocations: 30.87 MB / 1.004 GB, free: 16.51 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.064e-05/2.169, allocations: 90.8 kB / 1.005 GB, free: 16.43 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=489): time 1.156e-05/2.169, allocations: 3.797 kB / 1.005 GB, free: 16.43 MB / 0.4948 GB Notification: Performance of matching and sorting (n=726): time 0.9356/3.105, allocations: 170.4 MB / 1.171 GB, free: 57.33 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.542e-05/3.105, allocations: 201.8 kB / 1.171 GB, free: 57.1 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0141/3.119, allocations: 7.864 MB / 1.179 GB, free: 49.39 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.002445/3.122, allocations: 137.7 kB / 1.179 GB, free: 49.25 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.005282/3.127, allocations: 7.072 MB / 1.186 GB, free: 42.39 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.00467/3.132, allocations: 2.577 MB / 1.188 GB, free: 39.83 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003379/3.135, allocations: 288 kB / 1.189 GB, free: 39.55 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.001624/3.137, allocations: 0.9098 MB / 1.19 GB, free: 38.63 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01743/3.154, allocations: 10.31 MB / 1.2 GB, free: 28.32 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3372/3.491, allocations: 16.99 MB / 1.216 GB, free: 91.01 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.04237/3.534, allocations: 28.65 MB / 1.244 GB, free: 82.68 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003955/3.534, allocations: 65.31 kB / 1.244 GB, free: 82.68 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1878) (initialization): time 0.0578/3.592, allocations: 27.69 MB / 1.271 GB, free: 76.3 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005244/3.593, allocations: 104.5 kB / 1.271 GB, free: 76.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005107/3.593, allocations: 229.3 kB / 1.272 GB, free: 76.3 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000538/3.594, allocations: 319.5 kB / 1.272 GB, free: 76.3 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02145/3.615, allocations: 4.26 MB / 1.276 GB, free: 75.92 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004818/3.616, allocations: 465 kB / 1.277 GB, free: 75.82 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01486/3.631, allocations: 1.227 MB / 1.278 GB, free: 75.59 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003852/3.634, allocations: 0.7452 MB / 1.278 GB, free: 75.48 MB / 0.4948 GB 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.01766/3.652, allocations: 5.467 MB / 1.284 GB, free: 73 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00256/3.655, allocations: 0.7962 MB / 1.285 GB, free: 73 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03546/3.69, allocations: 19.6 MB / 1.304 GB, free: 63.88 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.86e-05/3.69, allocations: 72.47 kB / 1.304 GB, free: 63.88 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.914e-05/3.69, allocations: 0 / 1.304 GB, free: 63.88 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001389/3.69, allocations: 36.39 kB / 1.304 GB, free: 63.88 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07891/3.769, allocations: 42.54 MB / 1.345 GB, free: 36.21 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.551e-05/3.77, allocations: 8 kB / 1.345 GB, free: 36.2 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01441/3.784, allocations: 2.153 MB / 1.347 GB, free: 34.7 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001225/3.784, allocations: 28 kB / 1.347 GB, free: 34.67 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002522/3.787, allocations: 129.5 kB / 1.348 GB, free: 34.55 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.489e-05/3.787, allocations: 31.94 kB / 1.348 GB, free: 34.52 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.415e-06/3.787, allocations: 7.938 kB / 1.348 GB, free: 34.51 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04989/3.837, allocations: 32.91 MB / 1.38 GB, free: 5.156 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007968/3.845, allocations: 2.706 MB / 1.382 GB, free: 2.723 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00453/3.849, allocations: 127.6 kB / 1.383 GB, free: 2.605 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009609/3.859, allocations: 0.7617 MB / 1.383 GB, free: 2.16 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002807/3.862, allocations: 391.1 kB / 1.384 GB, free: 1.914 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001695/3.863, allocations: 183.5 kB / 1.384 GB, free: 1.742 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.2952/4.159, allocations: 5.411 MB / 1.389 GB, free: 92.41 MB / 0.4948 GB Notification: Performance of sort global known variables: time 6.51e-07/4.159, allocations: 0.7188 kB / 1.389 GB, free: 92.41 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01588/4.175, allocations: 3.182 MB / 1.392 GB, free: 92.41 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.00377/4.178, allocations: 428.8 kB / 1.393 GB, free: 92.32 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.03554/4.214, allocations: 23.25 MB / 1.415 GB, free: 92.17 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.409e-05/4.214, allocations: 0 / 1.415 GB, free: 92.17 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.01481/4.229, allocations: 9.828 MB / 1.425 GB, free: 92.14 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01644/4.245, allocations: 0.9577 MB / 1.426 GB, free: 92.11 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07451/4.32, allocations: 39.28 MB / 1.464 GB, free: 74.13 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01834/4.338, allocations: 8.036 MB / 1.472 GB, free: 71.55 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008206/4.347, allocations: 0.7073 MB / 1.473 GB, free: 71.53 MB / 0.4948 GB Notification: Performance of SimCode: time 9.52e-07/4.347, allocations: 0 / 1.473 GB, free: 71.53 MB / 0.4948 GB Notification: Performance of Templates: time 0.5188/4.865, allocations: 189.2 MB / 1.658 GB, free: 65.84 MB / 0.5105 GB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches