Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring2.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.Spring2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body.Q.1.|body.Q.2.|body.Q.3.|body.Q.4.|body.frame_a.r_0.1.|body.frame_a.r_0.2.|body.frame_a.r_0.3.|body.v_0.1.|body.v_0.2.|body.v_0.3.|body.w_a.1.|body.w_a.2.|body.w_a.3.|body1.Q.1.|body1.Q.2.|body1.Q.3.|body1.Q.4.|body1.frame_a.r_0.1.|body1.frame_a.r_0.2.|body1.frame_a.r_0.3.|body1.v_0.1.|body1.v_0.2.|body1.v_0.3.|body1.w_a.1.|body1.w_a.2.|body1.w_a.3.|body2.Q.1.|body2.Q.2.|body2.Q.3.|body2.Q.4.|body2.frame_a.r_0.1.|body2.frame_a.r_0.2.|body2.frame_a.r_0.3.|body2.v_0.1.|body2.v_0.2.|body2.v_0.3.|body2.w_a.1.|body2.w_a.2.|body2.w_a.3.",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring2") translateModel(ModelicaTest.MultiBody.Forces.Spring2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body.Q.1.|body.Q.2.|body.Q.3.|body.Q.4.|body.frame_a.r_0.1.|body.frame_a.r_0.2.|body.frame_a.r_0.3.|body.v_0.1.|body.v_0.2.|body.v_0.3.|body.w_a.1.|body.w_a.2.|body.w_a.3.|body1.Q.1.|body1.Q.2.|body1.Q.3.|body1.Q.4.|body1.frame_a.r_0.1.|body1.frame_a.r_0.2.|body1.frame_a.r_0.3.|body1.v_0.1.|body1.v_0.2.|body1.v_0.3.|body1.w_a.1.|body1.w_a.2.|body1.w_a.3.|body2.Q.1.|body2.Q.2.|body2.Q.3.|body2.Q.4.|body2.frame_a.r_0.1.|body2.frame_a.r_0.2.|body2.frame_a.r_0.3.|body2.v_0.1.|body2.v_0.2.|body2.v_0.3.|body2.w_a.1.|body2.w_a.2.|body2.w_a.3.",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring2") [: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.002494/0.002494, allocations: 172.5 kB / 8.147 MB, free: 2.223 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.709/1.709, allocations: 205.2 MB / 213.8 MB, free: 13.92 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.001278/0.001277, allocations: 79.94 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.2715/0.2715, allocations: 43.5 MB / 353.2 MB, free: 2.02 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 9.939e-06/1.029e-05, allocations: 4 kB / 417.7 MB, free: 40.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.268/0.268, allocations: 58.84 MB / 476.5 MB, free: 5.062 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.175/0.4431, allocations: 102.2 MB / 0.5652 GB, free: 12.86 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002775/0.4434, allocations: 75.95 kB / 0.5652 GB, free: 12.78 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.6589/1.102, allocations: 95.19 MB / 0.6582 GB, free: 104.5 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0003382/1.103, allocations: 99.98 kB / 0.6583 GB, free: 104.5 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: 1730 * Number of variables: 1730 Notification: Performance of Generate backend data structure: time 0.06121/1.164, allocations: 5.599 MB / 0.6638 GB, free: 102.6 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.746e-05/1.164, allocations: 9.875 kB / 0.6638 GB, free: 102.6 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02206/1.186, allocations: 2.353 MB / 0.6661 GB, free: 102.2 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02673/1.213, allocations: 7.301 MB / 0.6732 GB, free: 101.5 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003105/1.213, allocations: 155.4 kB / 0.6733 GB, free: 101.5 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002487/1.216, allocations: 294 kB / 0.6736 GB, free: 101.5 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0187/1.234, allocations: 7.644 MB / 0.6811 GB, free: 101.5 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02767/1.262, allocations: 11.21 MB / 0.692 GB, free: 96.07 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003093/1.263, allocations: 77.78 kB / 0.6921 GB, free: 96.06 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001752/1.264, allocations: 43.59 kB / 0.6922 GB, free: 96.05 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003651/1.268, allocations: 1.319 MB / 0.6935 GB, free: 95.85 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09807/1.366, allocations: 58.71 MB / 0.7508 GB, free: 48.62 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007997/1.374, allocations: 3.721 MB / 0.7544 GB, free: 45.05 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006498/1.381, allocations: 2.795 MB / 0.7572 GB, free: 42.5 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02707/1.408, allocations: 9.968 MB / 0.7669 GB, free: 32.94 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.142e-05/1.408, allocations: 51.88 kB / 0.7669 GB, free: 32.88 MB / 474.7 MB Notification: Performance of pre-optimization done (n=214): time 6.152e-06/1.408, allocations: 4 kB / 0.7669 GB, free: 32.88 MB / 474.7 MB Notification: Performance of matching and sorting (n=243): time 0.08236/1.49, allocations: 19.71 MB / 0.7862 GB, free: 13.02 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.724e-05/1.49, allocations: 201.9 kB / 0.7864 GB, free: 12.78 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008142/1.499, allocations: 3.55 MB / 0.7898 GB, free: 9.211 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007702/1.499, allocations: 25.7 kB / 0.7899 GB, free: 9.18 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002341/1.502, allocations: 3.273 MB / 0.7931 GB, free: 5.859 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001813/1.504, allocations: 0.9445 MB / 0.794 GB, free: 4.902 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001407/1.505, allocations: 0 / 0.794 GB, free: 4.902 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0008052/1.506, allocations: 0.6371 MB / 0.7946 GB, free: 4.258 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008132/1.514, allocations: 3.049 MB / 0.7976 GB, free: 1.203 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01388/1.528, allocations: 7.408 MB / 0.8048 GB, free: 7.613 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01414/1.542, allocations: 4.863 MB / 0.8096 GB, free: 2.754 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001647/1.542, allocations: 44 kB / 0.8096 GB, free: 2.711 MB / 490.7 MB Notification: Performance of matching and sorting (n=997) (initialization): time 0.05055/1.593, allocations: 12.04 MB / 0.8214 GB, free: 6.645 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.521e-05/1.593, allocations: 4 kB / 0.8214 GB, free: 6.641 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.03056/1.624, allocations: 6.389 MB / 0.8276 GB, free: 228 kB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.1898/1.814, allocations: 2.997 MB / 0.8305 GB, free: 170.9 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01112/1.825, allocations: 1.717 MB / 0.8322 GB, free: 170.9 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02301/1.848, allocations: 10.9 MB / 0.8429 GB, free: 165.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01044/1.858, allocations: 453.1 kB / 0.8433 GB, free: 165.9 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002099/1.86, allocations: 468.6 kB / 0.8438 GB, free: 165.9 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 708 * Number of states: 0 () * Number of discrete variables: 45 (fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],spring2.color[3],spring2.color[2],spring2.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[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 (920): * Single equations (assignments): 900 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 10 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 7 {(4,100.0%),(3,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 3 {4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(7,77.6%) 9} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002535/1.863, allocations: 429.7 kB / 0.8442 GB, free: 165.9 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001118/1.864, allocations: 385 kB / 0.8445 GB, free: 165.9 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02905/1.893, allocations: 6.806 MB / 0.8512 GB, free: 165.7 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02665/1.92, allocations: 6.195 MB / 0.8572 GB, free: 165.5 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-05/1.92, allocations: 7.188 kB / 0.8572 GB, free: 165.5 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.257e-05/1.92, allocations: 17.69 kB / 0.8572 GB, free: 165.5 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05045/1.971, allocations: 14.26 MB / 0.8712 GB, free: 163.8 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.562e-05/1.971, allocations: 3.531 kB / 0.8712 GB, free: 163.8 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004253/1.975, allocations: 383.1 kB / 0.8715 GB, free: 163.8 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02019/1.995, allocations: 3.113 MB / 0.8746 GB, free: 163.3 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008139/1.996, allocations: 49.83 kB / 0.8746 GB, free: 163.3 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03439/2.03, allocations: 16.42 MB / 0.8907 GB, free: 153.8 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003305/2.034, allocations: 4.148 MB / 0.8947 GB, free: 149.9 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.03626/2.07, allocations: 10.69 MB / 0.9052 GB, free: 146.3 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001431/2.072, allocations: 448.6 kB / 0.9056 GB, free: 146 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001839/2.073, allocations: 27.73 kB / 0.9056 GB, free: 146 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006046/2.079, allocations: 200.8 kB / 0.9058 GB, free: 146 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009852/2.08, allocations: 130.9 kB / 0.9059 GB, free: 145.9 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004092/2.081, allocations: 80.44 kB / 0.906 GB, free: 145.9 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.006502/2.087, allocations: 2.361 MB / 0.9083 GB, free: 145.1 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01009/2.098, allocations: 1.374 MB / 0.9097 GB, free: 144.3 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 36 ($STATESET3.x[3],$STATESET3.x[2],$STATESET3.x[1],$STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.frame_a.r_0[1],body.frame_a.r_0[2],body.frame_a.r_0[3],body.v_0[1],body.v_0[2],body.v_0[3],body.w_a[1],body.w_a[2],body.w_a[3],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.w_a[3],body2.frame_a.r_0[1],body2.frame_a.r_0[2],body2.frame_a.r_0[3],body2.v_0[1],body2.v_0[2],body2.v_0[3],body2.w_a[1],body2.w_a[2],body2.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (179): * Single equations (assignments): 165 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 8 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 5 {(4,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 3 {4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(5,100.0%) 10,(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0012/2.099, allocations: 197.2 kB / 0.9098 GB, free: 144.2 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.02847/2.127, allocations: 9.192 MB / 0.9188 GB, free: 136.1 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.064e-05/2.127, allocations: 2.906 kB / 0.9188 GB, free: 136.1 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.01545/2.143, allocations: 4.297 MB / 0.923 GB, free: 132.2 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004312/2.147, allocations: 399.6 kB / 0.9234 GB, free: 131.9 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03495/2.182, allocations: 11.92 MB / 0.935 GB, free: 121.8 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01093/2.193, allocations: 4.128 MB / 0.9391 GB, free: 118.6 MB / 0.4948 GB Notification: Performance of SimCode: time 1.783e-06/2.193, allocations: 0 / 0.9391 GB, free: 118.6 MB / 0.4948 GB Notification: Performance of Templates: time 0.5852/2.778, allocations: 282.4 MB / 1.215 GB, free: 37.21 MB / 0.4948 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring2.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring2.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring2 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Forces/Spring2/Spring2.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches