Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2") translateModel(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2") [: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.001645/0.001645, allocations: 200.7 kB / 8.542 MB, free: 1.82 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.179/1.179, allocations: 225.5 MB / 234.4 MB, free: 3.441 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008274/0.0008274, allocations: 94.03 kB / 286.3 MB, free: 5.266 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1784/0.1784, allocations: 45.14 MB / 383.3 MB, free: 0.5664 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.101e-05/1.115e-05, allocations: 4 kB / 452.6 MB, free: 76.18 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1152/0.1152, allocations: 63.24 MB / 0.5038 GB, free: 13.02 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3037/0.419, allocations: 114.6 MB / 0.6157 GB, free: 4.605 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002694/0.4193, allocations: 74.78 kB / 0.6158 GB, free: 4.57 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.3683/0.7877, allocations: 138.6 MB / 0.7511 GB, free: 1.84 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0006162/0.7883, allocations: 132 kB / 0.7512 GB, free: 1.711 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2297 * Number of variables: 2297 Notification: Performance of Generate backend data structure: time 0.2177/1.006, allocations: 6.92 MB / 0.758 GB, free: 170.8 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 6.196e-05/1.006, allocations: 9.312 kB / 0.758 GB, free: 170.8 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0296/1.036, allocations: 6.99 MB / 0.7648 GB, free: 170.3 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02409/1.06, allocations: 8.319 MB / 0.773 GB, free: 169.8 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003424/1.06, allocations: 209.5 kB / 0.7732 GB, free: 169.8 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002799/1.063, allocations: 401.1 kB / 0.7735 GB, free: 169.8 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01825/1.081, allocations: 10.05 MB / 0.7834 GB, free: 169.8 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02245/1.104, allocations: 14.6 MB / 0.7976 GB, free: 165.9 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002705/1.104, allocations: 105.4 kB / 0.7977 GB, free: 165.9 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001001/1.105, allocations: 43.59 kB / 0.7978 GB, free: 165.9 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002155/1.107, allocations: 1.699 MB / 0.7994 GB, free: 165.9 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07797/1.185, allocations: 75.82 MB / 0.8735 GB, free: 114.8 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006497/1.192, allocations: 5.316 MB / 0.8786 GB, free: 109.8 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004561/1.196, allocations: 4.283 MB / 0.8828 GB, free: 105.9 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02034/1.217, allocations: 14.23 MB / 0.8967 GB, free: 93.11 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.295e-05/1.217, allocations: 68.97 kB / 0.8968 GB, free: 93.04 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=281): time 6.271e-06/1.217, allocations: 3.969 kB / 0.8968 GB, free: 93.04 MB / 0.5261 GB Notification: Performance of matching and sorting (n=363): time 0.09927/1.316, allocations: 38.27 MB / 0.9342 GB, free: 61.21 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.778e-05/1.316, allocations: 265.8 kB / 0.9344 GB, free: 60.89 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009219/1.326, allocations: 4.699 MB / 0.939 GB, free: 56.79 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0009953/1.327, allocations: 25.7 kB / 0.939 GB, free: 56.76 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.002964/1.33, allocations: 4.316 MB / 0.9433 GB, free: 52.88 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001818/1.331, allocations: 1.298 MB / 0.9445 GB, free: 51.71 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005406/1.332, allocations: 4 kB / 0.9445 GB, free: 51.7 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0004782/1.332, allocations: 0.6998 MB / 0.9452 GB, free: 51.11 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005253/1.338, allocations: 3.666 MB / 0.9488 GB, free: 47.59 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007206/1.345, allocations: 9.006 MB / 0.9576 GB, free: 35.92 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008738/1.354, allocations: 5.988 MB / 0.9634 GB, free: 29.91 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000112/1.354, allocations: 56 kB / 0.9635 GB, free: 29.86 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1234) (initialization): time 0.03171/1.386, allocations: 15.13 MB / 0.9783 GB, free: 14.71 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.173e-05/1.386, allocations: 5.875 kB / 0.9783 GB, free: 14.71 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001959/1.386, allocations: 188 kB / 0.9784 GB, free: 14.52 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01321/1.399, allocations: 3.859 MB / 0.9822 GB, free: 10.66 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007651/1.407, allocations: 2.066 MB / 0.9842 GB, free: 8.586 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2319/1.639, allocations: 19.93 MB / 1.004 GB, free: 149.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007808/1.646, allocations: 333.4 kB / 1.004 GB, free: 149.4 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001417/1.648, allocations: 0.5501 MB / 1.005 GB, free: 149.4 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 864 * Number of states: 0 () * Number of discrete variables: 66 (lineForceWithTwoMasses.massColor[3],lineForceWithTwoMasses.massColor[2],lineForceWithTwoMasses.massColor[1],lineForceWithTwoMasses.color_b[3],lineForceWithTwoMasses.color_b[2],lineForceWithTwoMasses.color_b[1],lineForceWithTwoMasses.color_a[3],lineForceWithTwoMasses.color_a[2],lineForceWithTwoMasses.color_a[1],rod4.color[3],rod4.color[2],rod4.color[1],rod3.color[3],rod3.color[2],rod3.color[1],bodyBox2.color[3],bodyBox2.color[2],bodyBox2.color[1],bodyBox2.body.sphereColor[3],bodyBox2.body.sphereColor[2],bodyBox2.body.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],rod2.color[3],rod2.color[2],rod2.color[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],jointUPS.cylinderColor[3],jointUPS.cylinderColor[2],jointUPS.cylinderColor[1],jointUPS.sphereColor[3],jointUPS.sphereColor[2],jointUPS.sphereColor[1],jointUPS.axisColor[3],jointUPS.axisColor[2],jointUPS.axisColor[1],rod1.color[3],rod1.color[2],rod1.color[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[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 (1114): * Single equations (assignments): 1109 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 44,(5,64.0%) 47} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001402/1.649, allocations: 0.5836 MB / 1.005 GB, free: 149.3 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009809/1.65, allocations: 0.5339 MB / 1.006 GB, free: 149.3 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02069/1.671, allocations: 9.469 MB / 1.015 GB, free: 149.1 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.832e-05/1.671, allocations: 35.59 kB / 1.015 GB, free: 149.1 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.779e-05/1.671, allocations: 17.59 kB / 1.015 GB, free: 149.1 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.74e-05/1.671, allocations: 15.14 kB / 1.015 GB, free: 149.1 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03659/1.708, allocations: 17.92 MB / 1.032 GB, free: 148.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.277e-05/1.708, allocations: 0 / 1.032 GB, free: 148.3 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002637/1.711, allocations: 472.9 kB / 1.033 GB, free: 148.3 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01211/1.723, allocations: 3.473 MB / 1.036 GB, free: 148.3 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005461/1.723, allocations: 12.19 kB / 1.036 GB, free: 148.3 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02722/1.75, allocations: 18.44 MB / 1.054 GB, free: 143.3 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.592e-06/1.751, allocations: 6.656 kB / 1.054 GB, free: 143.3 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02571/1.776, allocations: 14.21 MB / 1.068 GB, free: 138.6 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001773/1.778, allocations: 0.5345 MB / 1.069 GB, free: 138.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001104/1.779, allocations: 3.969 kB / 1.069 GB, free: 138.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002744/1.782, allocations: 133.2 kB / 1.069 GB, free: 138.2 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004409/1.782, allocations: 165.3 kB / 1.069 GB, free: 138.2 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003065/1.783, allocations: 92.06 kB / 1.069 GB, free: 138.2 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.004876/1.788, allocations: 3.181 MB / 1.072 GB, free: 137.1 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.007634/1.795, allocations: 1.567 MB / 1.074 GB, free: 137.1 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (259): * Single equations (assignments): 254 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 40,(2,100.0%) 43} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000701/1.796, allocations: 189.5 kB / 1.074 GB, free: 137 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01352/1.81, allocations: 9.169 MB / 1.083 GB, free: 134.1 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 6.993e-06/1.81, allocations: 0.9375 kB / 1.083 GB, free: 134.1 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.004885/1.814, allocations: 3.56 MB / 1.086 GB, free: 131.1 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003293/1.818, allocations: 0.5641 MB / 1.087 GB, free: 130.7 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03249/1.85, allocations: 13.33 MB / 1.1 GB, free: 118.9 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01027/1.861, allocations: 5.367 MB / 1.105 GB, free: 114.9 MB / 0.5261 GB Notification: Performance of SimCode: time 2.544e-06/1.861, allocations: 0 / 1.105 GB, free: 114.9 MB / 0.5261 GB Notification: Performance of Templates: time 0.1503/2.011, allocations: 76.58 MB / 1.18 GB, free: 48.89 MB / 0.5261 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/ForceWithTwoMasses2/ForceWithTwoMasses2.csv","../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches