Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_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_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_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001099/0.001099, allocations: 197.2 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.406/1.406, allocations: 225.4 MB / 240.1 MB, free: 15.04 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008482/0.0008482, allocations: 86.97 kB / 292.1 MB, free: 5.949 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.344e-05/3.346e-05, allocations: 4 kB / 350.5 MB, free: 2.496 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1176/0.1176, allocations: 51.48 MB / 402 MB, free: 14.97 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3881/0.5057, allocations: 110.1 MB / 0.5001 GB, free: 11.68 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003227/0.5061, allocations: 90.67 kB / 0.5002 GB, free: 11.64 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.834/1.34, allocations: 241.2 MB / 0.7358 GB, free: 2.059 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.244e-06/1.34, allocations: 0 / 0.7358 GB, free: 2.059 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0009166/1.341, allocations: 236 kB / 0.736 GB, free: 1.828 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.3649/1.706, allocations: 12.37 MB / 0.7481 GB, free: 33.25 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.174e-05/1.706, allocations: 10.06 kB / 0.7481 GB, free: 33.25 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0228/1.729, allocations: 3.999 MB / 0.752 GB, free: 32.5 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03032/1.759, allocations: 11 MB / 0.7627 GB, free: 31.33 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009368/1.76, allocations: 0.8886 MB / 0.7636 GB, free: 31.3 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00625/1.767, allocations: 1.187 MB / 0.7648 GB, free: 31.29 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08912/1.856, allocations: 33.53 MB / 0.7975 GB, free: 26.49 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000448/1.856, allocations: 95.47 kB / 0.7976 GB, free: 26.49 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004766/1.861, allocations: 0.5364 MB / 0.7981 GB, free: 26.49 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003626/1.865, allocations: 2.594 MB / 0.8007 GB, free: 26.47 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07423/1.939, allocations: 30.6 MB / 0.8305 GB, free: 20.68 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5155/2.454, allocations: 120.4 MB / 0.9481 GB, free: 21.13 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04959/2.504, allocations: 17.25 MB / 0.965 GB, free: 20.44 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01342/2.518, allocations: 8.73 MB / 0.9735 GB, free: 20.39 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05065/2.568, allocations: 31.06 MB / 1.004 GB, free: 28.53 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.697e-05/2.568, allocations: 86.48 kB / 1.004 GB, free: 28.48 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=489): time 8.516e-06/2.568, allocations: 0 / 1.004 GB, free: 28.48 MB / 0.4948 GB Notification: Performance of matching and sorting (n=726): time 0.6904/3.259, allocations: 122.1 MB / 1.123 GB, free: 116.4 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.435e-05/3.259, allocations: 205 kB / 1.123 GB, free: 116.3 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01042/3.269, allocations: 6.894 MB / 1.13 GB, free: 115.6 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.002119/3.271, allocations: 138.1 kB / 1.13 GB, free: 115.6 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.004773/3.276, allocations: 7.071 MB / 1.137 GB, free: 111.8 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.004137/3.28, allocations: 2.58 MB / 1.14 GB, free: 110.2 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001901/3.282, allocations: 288.7 kB / 1.14 GB, free: 110.2 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0007078/3.283, allocations: 0.9186 MB / 1.141 GB, free: 109.9 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01607/3.299, allocations: 10.09 MB / 1.151 GB, free: 109.9 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02195/3.321, allocations: 16.73 MB / 1.167 GB, free: 101.6 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02043/3.342, allocations: 12.88 MB / 1.18 GB, free: 98.56 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003878/3.342, allocations: 65.84 kB / 1.18 GB, free: 98.56 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1878) (initialization): time 0.04786/3.39, allocations: 27.26 MB / 1.206 GB, free: 88.1 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002333/3.39, allocations: 100.4 kB / 1.206 GB, free: 88.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004137/3.391, allocations: 227.3 kB / 1.207 GB, free: 88.1 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003919/3.391, allocations: 348.4 kB / 1.207 GB, free: 88.1 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02003/3.411, allocations: 4.264 MB / 1.211 GB, free: 87.72 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000591/3.412, allocations: 465 kB / 1.211 GB, free: 87.62 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0175/3.429, allocations: 1.226 MB / 1.213 GB, free: 87.38 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004678/3.434, allocations: 0.7422 MB / 1.213 GB, free: 87.26 MB / 0.5261 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 () * 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.0063/3.44, allocations: 1.145 MB / 1.215 GB, free: 86.34 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002713/3.443, allocations: 0.7998 MB / 1.215 GB, free: 85.91 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03046/3.473, allocations: 19.38 MB / 1.234 GB, free: 77.15 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.234e-05/3.473, allocations: 74.45 kB / 1.234 GB, free: 77.15 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.915e-05/3.474, allocations: 1.938 kB / 1.234 GB, free: 77.15 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.65e-05/3.474, allocations: 36.66 kB / 1.234 GB, free: 77.15 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0699/3.544, allocations: 42.33 MB / 1.276 GB, free: 46.81 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.828e-05/3.544, allocations: 4 kB / 1.276 GB, free: 46.81 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0133/3.557, allocations: 2.158 MB / 1.278 GB, free: 45.3 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001115/3.557, allocations: 28 kB / 1.278 GB, free: 45.27 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001821/3.559, allocations: 130.4 kB / 1.278 GB, free: 45.15 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.269e-05/3.559, allocations: 28 kB / 1.278 GB, free: 45.12 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.142e-06/3.559, allocations: 11.94 kB / 1.278 GB, free: 45.11 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3647/3.924, allocations: 33.6 MB / 1.311 GB, free: 107.4 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007607/3.931, allocations: 2.708 MB / 1.313 GB, free: 107.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002931/3.934, allocations: 120 kB / 1.314 GB, free: 107.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009408/3.944, allocations: 0.7634 MB / 1.314 GB, free: 107.3 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002507/3.946, allocations: 389.1 kB / 1.315 GB, free: 107.3 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001976/3.948, allocations: 184.5 kB / 1.315 GB, free: 107.3 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.01274/3.961, allocations: 4.762 MB / 1.319 GB, free: 107 MB / 0.5261 GB Notification: Performance of sort global known variables: time 6.82e-07/3.961, allocations: 0 / 1.319 GB, free: 107 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01586/3.977, allocations: 3.182 MB / 1.323 GB, free: 107 MB / 0.5261 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 () * 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.002535/3.979, allocations: 426.7 kB / 1.323 GB, free: 106.9 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.04681/4.026, allocations: 22.92 MB / 1.345 GB, free: 103.4 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.589e-05/4.026, allocations: 7.375 kB / 1.345 GB, free: 103.4 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.02118/4.048, allocations: 9.723 MB / 1.355 GB, free: 99.15 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00842/4.056, allocations: 0.852 MB / 1.356 GB, free: 98.75 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05575/4.112, allocations: 28.78 MB / 1.384 GB, free: 87.88 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01391/4.126, allocations: 8.267 MB / 1.392 GB, free: 85.3 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.01698/4.143, allocations: 5.062 MB / 1.397 GB, free: 85.22 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006443/4.149, allocations: 0.6039 MB / 1.397 GB, free: 85.2 MB / 0.5261 GB Notification: Performance of SimCode: time 8.82e-07/4.149, allocations: 1.531 kB / 1.397 GB, free: 85.2 MB / 0.5261 GB Notification: Performance of Templates: time 0.4902/4.639, allocations: 122.4 MB / 1.517 GB, free: 99.39 MB / 0.5261 GB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic_res.mat","/var/lib/jenkins/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_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches