Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="ModelicaTest_4.0.0_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_4.0.0_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 4.0.0+maint.om/package.mo): time 0.0009037/0.0009037, allocations: 183.1 kB / 8.52 MB, free: 1.859 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.147/1.147, allocations: 221.4 MB / 230.3 MB, free: 7.688 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.0008672/0.0008672, allocations: 77.61 kB / 281.2 MB, free: 5.508 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1586/0.1586, allocations: 44.14 MB / 376.1 MB, free: 3.23 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 8.105e-06/8.125e-06, allocations: 4 kB / 444 MB, free: 15.61 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1121/0.1121, allocations: 61.91 MB / 0.4941 GB, free: 1.629 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3/0.4122, allocations: 113.7 MB / 0.6051 GB, free: 15.04 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002451/0.4125, allocations: 75.97 kB / 0.6052 GB, free: 14.96 MB / 426.7 MB Notification: Performance of FrontEnd: time 0.5191/0.9316, allocations: 133.3 MB / 0.7354 GB, free: 105.9 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.000495/0.9321, allocations: 133.9 kB / 0.7355 GB, free: 105.9 MB / 0.4948 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.02195/0.9541, allocations: 6.874 MB / 0.7422 GB, free: 103.2 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.604e-05/0.9542, allocations: 11.16 kB / 0.7423 GB, free: 103.2 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02957/0.9838, allocations: 6.991 MB / 0.7491 GB, free: 102.7 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02337/1.007, allocations: 9.232 MB / 0.7581 GB, free: 101.7 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000372/1.008, allocations: 209.1 kB / 0.7583 GB, free: 101.7 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003618/1.011, allocations: 403.9 kB / 0.7587 GB, free: 101.7 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02037/1.032, allocations: 10.06 MB / 0.7685 GB, free: 98.93 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03722/1.069, allocations: 14.59 MB / 0.7828 GB, free: 90.08 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005707/1.069, allocations: 98.75 kB / 0.7828 GB, free: 89.99 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002958/1.072, allocations: 44 kB / 0.7829 GB, free: 89.95 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002606/1.075, allocations: 1.696 MB / 0.7845 GB, free: 88.56 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0842/1.159, allocations: 75.82 MB / 0.8586 GB, free: 13.44 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005962/1.165, allocations: 5.316 MB / 0.8638 GB, free: 7.977 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004556/1.17, allocations: 4.274 MB / 0.8679 GB, free: 3.688 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02271/1.193, allocations: 14.23 MB / 0.8818 GB, free: 4.871 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.384e-05/1.193, allocations: 72.47 kB / 0.8819 GB, free: 4.793 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=281): time 5.861e-06/1.193, allocations: 0 / 0.8819 GB, free: 4.793 MB / 0.5105 GB Notification: Performance of matching and sorting (n=363): time 0.2659/1.459, allocations: 38.27 MB / 0.9193 GB, free: 183.6 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.499e-05/1.459, allocations: 275.8 kB / 0.9196 GB, free: 183.3 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007887/1.467, allocations: 4.703 MB / 0.9241 GB, free: 182.9 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0008929/1.468, allocations: 25.7 kB / 0.9242 GB, free: 182.8 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.002436/1.47, allocations: 4.312 MB / 0.9284 GB, free: 180.4 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001771/1.472, allocations: 1.3 MB / 0.9297 GB, free: 179.6 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005518/1.472, allocations: 0 / 0.9297 GB, free: 179.6 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0004666/1.473, allocations: 0.7059 MB / 0.9303 GB, free: 179.2 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004639/1.478, allocations: 3.662 MB / 0.9339 GB, free: 179.2 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007552/1.485, allocations: 9.005 MB / 0.9427 GB, free: 172.3 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009574/1.495, allocations: 5.988 MB / 0.9486 GB, free: 171.1 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002046/1.495, allocations: 55.34 kB / 0.9486 GB, free: 171.1 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1234) (initialization): time 0.0351/1.53, allocations: 15.13 MB / 0.9634 GB, free: 166.9 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.122e-05/1.53, allocations: 7.125 kB / 0.9634 GB, free: 166.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004946/1.531, allocations: 190.9 kB / 0.9636 GB, free: 166.9 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01427/1.545, allocations: 3.858 MB / 0.9673 GB, free: 166.4 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008227/1.553, allocations: 2.07 MB / 0.9694 GB, free: 166.1 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03644/1.59, allocations: 19.93 MB / 0.9888 GB, free: 155.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009215/1.599, allocations: 337.9 kB / 0.9891 GB, free: 155.6 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002528/1.602, allocations: 0.5427 MB / 0.9897 GB, free: 155.1 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.003223/1.605, allocations: 0.5813 MB / 0.9902 GB, free: 154.5 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001302/1.606, allocations: 0.5322 MB / 0.9908 GB, free: 154 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02131/1.627, allocations: 9.477 MB / 1 GB, free: 146.7 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.03e-05/1.628, allocations: 32 kB / 1 GB, free: 146.6 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.487e-05/1.628, allocations: 16 kB / 1 GB, free: 146.6 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.039e-05/1.628, allocations: 22.28 kB / 1 GB, free: 146.6 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0389/1.667, allocations: 17.91 MB / 1.018 GB, free: 132.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-05/1.667, allocations: 0 / 1.018 GB, free: 132.4 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002755/1.669, allocations: 478 kB / 1.018 GB, free: 132 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01252/1.682, allocations: 3.466 MB / 1.021 GB, free: 129.6 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005951/1.683, allocations: 11.7 kB / 1.021 GB, free: 129.6 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02641/1.709, allocations: 18.44 MB / 1.039 GB, free: 113.8 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.14e-06/1.709, allocations: 3.906 kB / 1.039 GB, free: 113.8 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02427/1.733, allocations: 14.21 MB / 1.053 GB, free: 99.48 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001682/1.735, allocations: 0.5369 MB / 1.054 GB, free: 98.91 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001253/1.736, allocations: 4 kB / 1.054 GB, free: 98.91 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002945/1.739, allocations: 127.8 kB / 1.054 GB, free: 98.79 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004646/1.74, allocations: 166.1 kB / 1.054 GB, free: 98.62 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002988/1.74, allocations: 102.2 kB / 1.054 GB, free: 98.52 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.004942/1.745, allocations: 3.179 MB / 1.057 GB, free: 95.38 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.009347/1.754, allocations: 1.565 MB / 1.059 GB, free: 93.82 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.0008583/1.755, allocations: 179.8 kB / 1.059 GB, free: 93.65 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01255/1.768, allocations: 9.17 MB / 1.068 GB, free: 84.48 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 6.252e-06/1.768, allocations: 0 / 1.068 GB, free: 84.48 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.004302/1.772, allocations: 3.563 MB / 1.071 GB, free: 80.9 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003049/1.775, allocations: 0.5667 MB / 1.072 GB, free: 80.36 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02357/1.799, allocations: 13.32 MB / 1.085 GB, free: 66.96 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005945/1.805, allocations: 5.363 MB / 1.09 GB, free: 61.6 MB / 0.5261 GB Notification: Performance of SimCode: time 1.763e-06/1.805, allocations: 0 / 1.09 GB, free: 61.6 MB / 0.5261 GB Notification: Performance of Templates: time 0.2892/2.094, allocations: 76.55 MB / 1.165 GB, free: 164.1 MB / 0.5261 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches