Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses") translateModel(ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses") [: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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001719/0.001719, allocations: 171.4 kB / 8.15 MB, free: 2.215 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.665/1.665, allocations: 205.2 MB / 213.8 MB, free: 13.93 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001264/0.001264, allocations: 101.6 kB / 261.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2615/0.2615, allocations: 43.5 MB / 353.2 MB, free: 2.035 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 1.277e-05/1.299e-05, allocations: 4 kB / 417.7 MB, free: 40.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3075/0.3075, allocations: 58.83 MB / 476.5 MB, free: 5.086 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1975/0.5051, allocations: 112 MB / 0.5747 GB, free: 3.039 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002893/0.5054, allocations: 71.47 kB / 0.5748 GB, free: 2.973 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.7656/1.271, allocations: 131.8 MB / 0.7035 GB, free: 98.55 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0005347/1.272, allocations: 136.1 kB / 0.7036 GB, free: 98.54 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2303 * Number of variables: 2303 Notification: Performance of Generate backend data structure: time 0.03076/1.302, allocations: 6.901 MB / 0.7104 GB, free: 94.11 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5e-05/1.303, allocations: 12.52 kB / 0.7104 GB, free: 94.11 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05094/1.353, allocations: 6.987 MB / 0.7172 GB, free: 88.86 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03494/1.388, allocations: 9.874 MB / 0.7268 GB, free: 79 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002755/1.389, allocations: 216 kB / 0.727 GB, free: 78.79 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002768/1.392, allocations: 395.7 kB / 0.7274 GB, free: 78.4 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02402/1.416, allocations: 10.08 MB / 0.7373 GB, free: 68.32 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03283/1.448, allocations: 14.63 MB / 0.7515 GB, free: 52.26 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003611/1.449, allocations: 99.08 kB / 0.7516 GB, free: 52.16 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00139/1.45, allocations: 44 kB / 0.7517 GB, free: 52.12 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003258/1.454, allocations: 1.708 MB / 0.7533 GB, free: 50.41 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1234/1.577, allocations: 75.99 MB / 0.8275 GB, free: 4.273 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.1902/1.767, allocations: 5.349 MB / 0.8328 GB, free: 170.1 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008449/1.776, allocations: 4.347 MB / 0.837 GB, free: 170 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04413/1.82, allocations: 14.33 MB / 0.851 GB, free: 165.8 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.561e-05/1.82, allocations: 65.23 kB / 0.8511 GB, free: 165.7 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=287): time 9.417e-06/1.82, allocations: 0 / 0.8511 GB, free: 165.7 MB / 0.4948 GB Notification: Performance of matching and sorting (n=369): time 0.1906/2.011, allocations: 38.62 MB / 0.8888 GB, free: 156.1 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001097/2.011, allocations: 279.6 kB / 0.8891 GB, free: 155.9 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01455/2.025, allocations: 4.756 MB / 0.8937 GB, free: 154.1 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.00121/2.027, allocations: 26.58 kB / 0.8937 GB, free: 154.1 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.004474/2.031, allocations: 4.162 MB / 0.8978 GB, free: 150.8 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.003162/2.034, allocations: 1.319 MB / 0.8991 GB, free: 149.8 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001505/2.036, allocations: 1.688 kB / 0.8991 GB, free: 149.8 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.001117/2.037, allocations: 0.7084 MB / 0.8998 GB, free: 149.4 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01376/2.051, allocations: 3.679 MB / 0.9034 GB, free: 148.1 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01845/2.069, allocations: 9.028 MB / 0.9122 GB, free: 139.6 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02076/2.09, allocations: 6.016 MB / 0.9181 GB, free: 136.2 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001825/2.09, allocations: 59.69 kB / 0.9181 GB, free: 136.2 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1240) (initialization): time 0.05714/2.148, allocations: 14.95 MB / 0.9327 GB, free: 124.2 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.357e-05/2.148, allocations: 4 kB / 0.9327 GB, free: 124.2 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002756/2.148, allocations: 188 kB / 0.9329 GB, free: 124 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02395/2.172, allocations: 3.689 MB / 0.9365 GB, free: 121.3 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01361/2.186, allocations: 2.079 MB / 0.9385 GB, free: 119.5 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05367/2.239, allocations: 20.52 MB / 0.9586 GB, free: 101.8 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01179/2.251, allocations: 310.3 kB / 0.9589 GB, free: 101.6 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002251/2.253, allocations: 0.5543 MB / 0.9594 GB, free: 101 MB / 0.4948 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 (1120): * Single equations (assignments): 1115 * 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%) 45,(1,100.0%) 51} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002512/2.256, allocations: 0.5031 MB / 0.9599 GB, free: 100.5 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00392/2.26, allocations: 0.5436 MB / 0.9604 GB, free: 99.97 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.08048/2.34, allocations: 9.47 MB / 0.9697 GB, free: 92.62 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001263/2.341, allocations: 36 kB / 0.9697 GB, free: 92.58 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.338e-05/2.341, allocations: 16 kB / 0.9697 GB, free: 92.57 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.863e-05/2.341, allocations: 16.88 kB / 0.9697 GB, free: 92.57 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06879/2.41, allocations: 17.98 MB / 0.9873 GB, free: 74.66 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.435e-05/2.41, allocations: 0 / 0.9873 GB, free: 74.66 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005342/2.415, allocations: 487.3 kB / 0.9877 GB, free: 74.18 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02365/2.439, allocations: 3.414 MB / 0.9911 GB, free: 70.76 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001016/2.44, allocations: 11.98 kB / 0.9911 GB, free: 70.75 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0612/2.501, allocations: 18.38 MB / 1.009 GB, free: 52.14 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.917e-06/2.501, allocations: 3.906 kB / 1.009 GB, free: 52.13 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.06799/2.569, allocations: 14.25 MB / 1.023 GB, free: 37.82 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006563/2.576, allocations: 1.087 MB / 1.024 GB, free: 36.7 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003139/2.579, allocations: 3.938 kB / 1.024 GB, free: 36.7 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006736/2.586, allocations: 123.7 kB / 1.024 GB, free: 36.58 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001342/2.587, allocations: 162.2 kB / 1.024 GB, free: 36.42 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000942/2.588, allocations: 99.98 kB / 1.024 GB, free: 36.32 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.01031/2.598, allocations: 3.219 MB / 1.028 GB, free: 33.13 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01259/2.611, allocations: 1.569 MB / 1.029 GB, free: 31.57 MB / 0.4948 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 (265): * Single equations (assignments): 260 * 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.001392/2.613, allocations: 182 kB / 1.029 GB, free: 31.4 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.2068/2.819, allocations: 9.146 MB / 1.038 GB, free: 156.6 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.168e-05/2.819, allocations: 6.656 kB / 1.038 GB, free: 156.6 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.01393/2.833, allocations: 3.59 MB / 1.042 GB, free: 156.4 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006383/2.84, allocations: 0.5671 MB / 1.042 GB, free: 156.4 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04752/2.887, allocations: 14.13 MB / 1.056 GB, free: 154.1 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01607/2.903, allocations: 5.443 MB / 1.061 GB, free: 153.2 MB / 0.4948 GB Notification: Performance of SimCode: time 1.984e-06/2.904, allocations: 0 / 1.061 GB, free: 153.2 MB / 0.4948 GB Notification: Performance of Templates: time 0.2679/3.171, allocations: 150.4 MB / 1.208 GB, free: 45.16 MB / 0.4948 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Forces/LineForceWithTwoMasses/LineForceWithTwoMasses.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches