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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001412/0.001412, allocations: 184.9 kB / 8.139 MB, free: 2.199 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.275/1.275, allocations: 221.4 MB / 229.9 MB, free: 3.297 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009325/0.0009325, allocations: 97.36 kB / 280.8 MB, free: 1.273 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.933e-06/6.953e-06, allocations: 0 / 336.5 MB, free: 9.504 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2535/0.2535, allocations: 50.39 MB / 386.9 MB, free: 38.03 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1214/0.375, allocations: 108.7 MB / 495.6 MB, free: 9.988 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002422/0.3753, allocations: 92.69 kB / 495.7 MB, free: 9.898 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.9249/1.3, allocations: 229.1 MB / 0.7078 GB, free: 40.4 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.000914/1.301, allocations: 235.7 kB / 0.708 GB, free: 40.39 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.04036/1.341, allocations: 12.16 MB / 0.7199 GB, free: 36.3 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.645e-05/1.342, allocations: 10.66 kB / 0.7199 GB, free: 36.3 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02019/1.362, allocations: 3.467 MB / 0.7233 GB, free: 35.49 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03186/1.394, allocations: 11.71 MB / 0.7348 GB, free: 34.15 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007385/1.394, allocations: 387.9 kB / 0.7351 GB, free: 34.15 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007791/1.402, allocations: 0.6998 MB / 0.7358 GB, free: 34.14 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.04342/1.446, allocations: 22.01 MB / 0.7573 GB, free: 34.08 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06138/1.507, allocations: 26.91 MB / 0.7836 GB, free: 12.57 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007713/1.508, allocations: 99.59 kB / 0.7837 GB, free: 12.53 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005994/1.514, allocations: 52 kB / 0.7837 GB, free: 12.48 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003662/1.518, allocations: 2.726 MB / 0.7864 GB, free: 10.25 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3378/1.855, allocations: 120.1 MB / 0.9037 GB, free: 45.71 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01174/1.867, allocations: 10.29 MB / 0.9137 GB, free: 45.05 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01227/1.88, allocations: 9.158 MB / 0.9226 GB, free: 45 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04879/1.928, allocations: 32.69 MB / 0.9546 GB, free: 33.83 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.058e-05/1.929, allocations: 90.91 kB / 0.9547 GB, free: 33.76 MB / 474.7 MB Notification: Performance of pre-optimization done (n=483): time 9.007e-06/1.929, allocations: 0 / 0.9547 GB, free: 33.76 MB / 474.7 MB Notification: Performance of matching and sorting (n=708): time 0.454/2.383, allocations: 107.5 MB / 1.06 GB, free: 95.14 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.883e-05/2.383, allocations: 208.9 kB / 1.06 GB, free: 94.98 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0102/2.393, allocations: 6.157 MB / 1.066 GB, free: 94.42 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.003139/2.396, allocations: 29.2 kB / 1.066 GB, free: 94.39 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004797/2.401, allocations: 6.649 MB / 1.072 GB, free: 90.52 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003895/2.405, allocations: 2.424 MB / 1.075 GB, free: 89 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002368/2.407, allocations: 0 / 1.075 GB, free: 89 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0009224/2.408, allocations: 0.9148 MB / 1.076 GB, free: 88.66 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01402/2.422, allocations: 9.964 MB / 1.085 GB, free: 88.63 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01891/2.441, allocations: 16.82 MB / 1.102 GB, free: 79.96 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01907/2.46, allocations: 12.99 MB / 1.114 GB, free: 78.72 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003047/2.461, allocations: 68.66 kB / 1.115 GB, free: 78.72 MB / 474.7 MB Notification: Performance of matching and sorting (n=1890) (initialization): time 0.05073/2.511, allocations: 26.24 MB / 1.14 GB, free: 69.29 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.723e-05/2.511, allocations: 9.156 kB / 1.14 GB, free: 69.29 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0009856/2.512, allocations: 238.5 kB / 1.14 GB, free: 69.29 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008238/2.513, allocations: 364.1 kB / 1.141 GB, free: 69.29 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02249/2.536, allocations: 3.943 MB / 1.145 GB, free: 68.9 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001078/2.537, allocations: 482.6 kB / 1.145 GB, free: 68.8 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01694/2.554, allocations: 0.6978 MB / 1.146 GB, free: 68.78 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004606/2.559, allocations: 0.7755 MB / 1.147 GB, free: 68.66 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1089 * 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 (1860): * Single equations (assignments): 1854 * 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.006267/2.565, allocations: 0.7593 MB / 1.147 GB, free: 68.04 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003249/2.568, allocations: 0.751 MB / 1.148 GB, free: 67.63 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03254/2.601, allocations: 19.17 MB / 1.167 GB, free: 56.9 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.764e-05/2.601, allocations: 64 kB / 1.167 GB, free: 56.84 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.525e-05/2.601, allocations: 7.469 kB / 1.167 GB, free: 56.83 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001194/2.601, allocations: 31.97 kB / 1.167 GB, free: 56.83 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.218/2.819, allocations: 39.19 MB / 1.205 GB, free: 89.16 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.209e-05/2.819, allocations: 0 / 1.205 GB, free: 89.16 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01389/2.833, allocations: 1.767 MB / 1.207 GB, free: 89.16 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.89e-05/2.833, allocations: 26.75 kB / 1.207 GB, free: 89.16 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001832/2.835, allocations: 12.38 kB / 1.207 GB, free: 89.16 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.574e-05/2.835, allocations: 28.78 kB / 1.207 GB, free: 89.16 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.189e-06/2.835, allocations: 5.703 kB / 1.207 GB, free: 89.16 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0414/2.876, allocations: 33.06 MB / 1.239 GB, free: 87.7 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006641/2.883, allocations: 2.621 MB / 1.242 GB, free: 86.67 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003211/2.886, allocations: 6.688 kB / 1.242 GB, free: 86.67 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008098/2.894, allocations: 411.1 kB / 1.242 GB, free: 86.67 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001944/2.896, allocations: 321.7 kB / 1.242 GB, free: 86.62 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001018/2.897, allocations: 174.1 kB / 1.243 GB, free: 86.57 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.006715/2.904, allocations: 4.124 MB / 1.247 GB, free: 85.09 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01349/2.918, allocations: 2.755 MB / 1.249 GB, free: 85.09 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * 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 (692): * Single equations (assignments): 689 * 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.001722/2.919, allocations: 300.2 kB / 1.25 GB, free: 85 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.02814/2.948, allocations: 22.66 MB / 1.272 GB, free: 76.22 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 6.974e-06/2.948, allocations: 4 kB / 1.272 GB, free: 76.21 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01256/2.96, allocations: 9.77 MB / 1.281 GB, free: 71.97 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004308/2.964, allocations: 0.6262 MB / 1.282 GB, free: 71.69 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05372/3.018, allocations: 28.78 MB / 1.31 GB, free: 50.71 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01821/3.036, allocations: 8.975 MB / 1.319 GB, free: 44.04 MB / 474.7 MB Notification: Performance of SimCode: time 8.52e-07/3.036, allocations: 0 / 1.319 GB, free: 44.04 MB / 474.7 MB Notification: Performance of Templates: time 0.3598/3.396, allocations: 153.8 MB / 1.469 GB, free: 37.31 MB / 474.7 MB 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/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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches