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") [: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 trunk/package.mo): time 0.001194/0.001194, allocations: 192.1 kB / 8.534 MB, free: 1.844 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.264/1.264, allocations: 225.5 MB / 234.4 MB, free: 3.336 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008727/0.0008726, allocations: 85.83 kB / 286.3 MB, free: 5.328 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.213e-05/1.227e-05, allocations: 0 / 343.1 MB, free: 8.668 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1299/0.13, allocations: 51.47 MB / 394.6 MB, free: 5.152 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3531/0.4831, allocations: 109.4 MB / 0.4922 GB, free: 68 kB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002331/0.4834, allocations: 92.19 kB / 0.4923 GB, free: 20 kB / 362.7 MB Notification: Performance of FrontEnd: time 0.7827/1.266, allocations: 232.5 MB / 0.7194 GB, free: 20.89 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0009472/1.267, allocations: 243.5 kB / 0.7196 GB, free: 20.66 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.0427/1.31, allocations: 12.25 MB / 0.7316 GB, free: 8.324 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.078e-05/1.31, allocations: 12.03 kB / 0.7316 GB, free: 8.312 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02153/1.331, allocations: 3.483 MB / 0.735 GB, free: 4.809 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2765/1.608, allocations: 10.93 MB / 0.7456 GB, free: 76.66 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007499/1.609, allocations: 386.7 kB / 0.746 GB, free: 76.66 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008421/1.617, allocations: 0.699 MB / 0.7467 GB, free: 76.66 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.04268/1.66, allocations: 22.01 MB / 0.7682 GB, free: 76.6 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0648/1.725, allocations: 26.91 MB / 0.7945 GB, free: 71.86 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005866/1.725, allocations: 101 kB / 0.7946 GB, free: 71.86 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005512/1.731, allocations: 50.97 kB / 0.7946 GB, free: 71.86 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003729/1.735, allocations: 2.724 MB / 0.7973 GB, free: 71.84 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.383/2.118, allocations: 119.3 MB / 0.9138 GB, free: 42.32 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01419/2.132, allocations: 10.3 MB / 0.9238 GB, free: 41.67 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01259/2.145, allocations: 9.145 MB / 0.9328 GB, free: 41.62 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05797/2.203, allocations: 32.68 MB / 0.9647 GB, free: 32.68 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001103/2.203, allocations: 86.59 kB / 0.9648 GB, free: 32.64 MB / 458.7 MB Notification: Performance of pre-optimization done (n=483): time 1.263e-05/2.203, allocations: 3.938 kB / 0.9648 GB, free: 32.64 MB / 458.7 MB Notification: Performance of matching and sorting (n=708): time 0.5867/2.789, allocations: 110.1 MB / 1.072 GB, free: 102.7 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.2e-05/2.79, allocations: 197.2 kB / 1.073 GB, free: 102.6 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01257/2.802, allocations: 6.166 MB / 1.079 GB, free: 102.2 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.003059/2.805, allocations: 27.61 kB / 1.079 GB, free: 102.2 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005135/2.81, allocations: 6.649 MB / 1.085 GB, free: 99.45 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004607/2.815, allocations: 2.429 MB / 1.087 GB, free: 97.93 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002618/2.818, allocations: 0 / 1.087 GB, free: 97.93 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0009698/2.819, allocations: 0.9174 MB / 1.088 GB, free: 97.59 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01536/2.834, allocations: 9.966 MB / 1.098 GB, free: 97.55 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02002/2.854, allocations: 16.82 MB / 1.114 GB, free: 88.88 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02189/2.876, allocations: 12.99 MB / 1.127 GB, free: 88.78 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003284/2.876, allocations: 66.12 kB / 1.127 GB, free: 88.78 MB / 474.7 MB Notification: Performance of matching and sorting (n=1890) (initialization): time 0.05035/2.927, allocations: 26.23 MB / 1.153 GB, free: 81.99 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.213e-05/2.927, allocations: 7.781 kB / 1.153 GB, free: 81.99 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004074/2.927, allocations: 239.8 kB / 1.153 GB, free: 81.99 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003451/2.928, allocations: 372.6 kB / 1.153 GB, free: 81.98 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02017/2.948, allocations: 3.947 MB / 1.157 GB, free: 81.59 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003658/2.948, allocations: 488.3 kB / 1.158 GB, free: 81.49 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01465/2.963, allocations: 0.6931 MB / 1.158 GB, free: 81.47 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003982/2.967, allocations: 0.7691 MB / 1.159 GB, free: 81.35 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.004305/2.971, allocations: 0.7639 MB / 1.16 GB, free: 80.73 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002036/2.973, allocations: 0.7488 MB / 1.161 GB, free: 80.32 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0319/3.005, allocations: 19.17 MB / 1.179 GB, free: 72.05 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001087/3.005, allocations: 63.59 kB / 1.179 GB, free: 72.05 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.347e-05/3.005, allocations: 3.156 kB / 1.179 GB, free: 72.05 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001412/3.006, allocations: 35.92 kB / 1.179 GB, free: 72.05 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06185/3.067, allocations: 39.2 MB / 1.218 GB, free: 47.41 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.147e-05/3.067, allocations: 0 / 1.218 GB, free: 47.41 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01324/3.081, allocations: 1.768 MB / 1.219 GB, free: 46.06 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.056e-05/3.081, allocations: 24 kB / 1.22 GB, free: 46.04 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001228/3.082, allocations: 22.84 kB / 1.22 GB, free: 46.02 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.452e-05/3.082, allocations: 27.94 kB / 1.22 GB, free: 46 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.376e-06/3.082, allocations: 0 / 1.22 GB, free: 46 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.2037/3.286, allocations: 33.07 MB / 1.252 GB, free: 93.39 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006875/3.293, allocations: 2.622 MB / 1.254 GB, free: 93.3 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002866/3.296, allocations: 0 / 1.254 GB, free: 93.3 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007562/3.303, allocations: 412.5 kB / 1.255 GB, free: 93.3 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001497/3.305, allocations: 328.8 kB / 1.255 GB, free: 93.29 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008893/3.306, allocations: 165.8 kB / 1.255 GB, free: 93.29 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.007702/3.313, allocations: 4.122 MB / 1.259 GB, free: 93.08 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01385/3.327, allocations: 2.761 MB / 1.262 GB, free: 93.08 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.001746/3.329, allocations: 312.6 kB / 1.262 GB, free: 92.99 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.03018/3.359, allocations: 22.66 MB / 1.284 GB, free: 87.88 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.065e-05/3.359, allocations: 3.875 kB / 1.284 GB, free: 87.88 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01361/3.373, allocations: 9.778 MB / 1.294 GB, free: 83.63 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005766/3.379, allocations: 0.6078 MB / 1.295 GB, free: 83.36 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06912/3.448, allocations: 28.78 MB / 1.323 GB, free: 73.05 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02131/3.469, allocations: 8.972 MB / 1.331 GB, free: 68.23 MB / 474.7 MB Notification: Performance of SimCode: time 1.393e-06/3.469, allocations: 0 / 1.331 GB, free: 68.23 MB / 474.7 MB Notification: Performance of Templates: time 0.413/3.882, allocations: 153.8 MB / 1.482 GB, free: 66.76 MB / 474.7 MB 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