Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002114/0.002113, allocations: 177.8 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.095/2.095, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00104/0.00104, allocations: 96.08 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3041/0.3041, allocations: 43.49 MB / 353.6 MB, free: 2.27 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.444e-05/2.449e-05, allocations: 4.219 kB / 418.2 MB, free: 41.03 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4009/0.4009, allocations: 58.84 MB / 477.1 MB, free: 5.281 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1887/0.5897, allocations: 102.3 MB / 0.5658 GB, free: 13.02 MB / 411.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002456/0.59, allocations: 79.95 kB / 0.5658 GB, free: 12.94 MB / 411.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.7524/1.342, allocations: 96.61 MB / 0.6602 GB, free: 105.5 MB / 475.1 MB Notification: Performance of FrontEnd: time 2.685e-06/1.342, allocations: 0 / 0.6602 GB, free: 105.5 MB / 475.1 MB Notification: Performance of Transformations before backend: time 0.0003464/1.343, allocations: 94.05 kB / 0.6603 GB, free: 105.5 MB / 475.1 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.04499/1.388, allocations: 5.917 MB / 0.666 GB, free: 103.5 MB / 475.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.154e-05/1.388, allocations: 8.688 kB / 0.6661 GB, free: 103.5 MB / 475.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02575/1.414, allocations: 2.943 MB / 0.6689 GB, free: 103.2 MB / 475.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02818/1.442, allocations: 7.252 MB / 0.676 GB, free: 102.5 MB / 475.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003479/1.442, allocations: 162.2 kB / 0.6762 GB, free: 102.5 MB / 475.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002704/1.445, allocations: 292.2 kB / 0.6764 GB, free: 102.5 MB / 475.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01828/1.463, allocations: 7.329 MB / 0.6836 GB, free: 102.5 MB / 475.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02801/1.491, allocations: 10.91 MB / 0.6943 GB, free: 96.74 MB / 475.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004073/1.492, allocations: 78.47 kB / 0.6943 GB, free: 96.73 MB / 475.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002537/1.494, allocations: 38.25 kB / 0.6944 GB, free: 96.73 MB / 475.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00314/1.498, allocations: 1.244 MB / 0.6956 GB, free: 96.52 MB / 475.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08759/1.585, allocations: 57.07 MB / 0.7513 GB, free: 50.13 MB / 475.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006872/1.592, allocations: 3.603 MB / 0.7548 GB, free: 46.68 MB / 475.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004781/1.597, allocations: 2.294 MB / 0.7571 GB, free: 44.59 MB / 475.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002315/1.599, allocations: 1.642 MB / 0.7587 GB, free: 42.8 MB / 475.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.418e-05/1.599, allocations: 64.12 kB / 0.7587 GB, free: 42.73 MB / 475.1 MB Notification: Performance of pre-optimization done (n=226): time 5.852e-06/1.599, allocations: 4 kB / 0.7587 GB, free: 42.72 MB / 475.1 MB Notification: Performance of matching and sorting (n=259): time 0.07351/1.673, allocations: 20.67 MB / 0.7789 GB, free: 21.89 MB / 475.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.975e-05/1.673, allocations: 257.3 kB / 0.7792 GB, free: 21.58 MB / 475.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007854/1.681, allocations: 3.49 MB / 0.7826 GB, free: 18.07 MB / 475.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008486/1.682, allocations: 29.7 kB / 0.7826 GB, free: 18.04 MB / 475.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002952/1.685, allocations: 3.515 MB / 0.786 GB, free: 14.48 MB / 475.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001848/1.687, allocations: 0.9946 MB / 0.787 GB, free: 13.47 MB / 475.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001105/1.688, allocations: 0 / 0.787 GB, free: 13.47 MB / 475.1 MB Notification: Performance of setup shared object (initialization): time 0.0005818/1.689, allocations: 0.6411 MB / 0.7876 GB, free: 12.82 MB / 475.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007211/1.696, allocations: 2.967 MB / 0.7905 GB, free: 9.852 MB / 475.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01021/1.706, allocations: 7.334 MB / 0.7977 GB, free: 348 kB / 475.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01185/1.718, allocations: 4.564 MB / 0.8022 GB, free: 11.78 MB / 491.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001758/1.718, allocations: 44 kB / 0.8022 GB, free: 11.73 MB / 491.1 MB Notification: Performance of matching and sorting (n=1009) (initialization): time 0.04644/1.765, allocations: 11.97 MB / 0.8139 GB, free: 15.73 MB / 0.4952 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001385/1.765, allocations: 72.56 kB / 0.814 GB, free: 15.66 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02695/1.792, allocations: 6.26 MB / 0.8201 GB, free: 9.363 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02097/1.813, allocations: 3.268 MB / 0.8233 GB, free: 6.059 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01154/1.824, allocations: 1.774 MB / 0.825 GB, free: 4.281 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3836/2.208, allocations: 15.05 MB / 0.8397 GB, free: 111.1 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01207/2.22, allocations: 0.631 MB / 0.8403 GB, free: 111.1 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002407/2.223, allocations: 471.9 kB / 0.8408 GB, free: 111.1 MB / 0.4952 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 (930): * Single equations (assignments): 910 * Array equations: 9 * 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%) 13,(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003201/2.226, allocations: 0.4931 MB / 0.8412 GB, free: 110.9 MB / 0.4952 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001215/2.227, allocations: 389.2 kB / 0.8416 GB, free: 110.9 MB / 0.4952 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02767/2.255, allocations: 6.79 MB / 0.8482 GB, free: 110.7 MB / 0.4952 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02451/2.279, allocations: 6.163 MB / 0.8543 GB, free: 110.5 MB / 0.4952 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.933e-05/2.28, allocations: 10 kB / 0.8543 GB, free: 110.5 MB / 0.4952 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.932e-05/2.28, allocations: 11.34 kB / 0.8543 GB, free: 110.5 MB / 0.4952 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04838/2.328, allocations: 14.76 MB / 0.8687 GB, free: 108.9 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.452e-05/2.328, allocations: 3.938 kB / 0.8687 GB, free: 108.9 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004167/2.332, allocations: 443.8 kB / 0.8691 GB, free: 108.9 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01861/2.351, allocations: 3.274 MB / 0.8723 GB, free: 108.4 MB / 0.4952 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008518/2.352, allocations: 49.38 kB / 0.8724 GB, free: 108.4 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02887/2.381, allocations: 16 MB / 0.888 GB, free: 98.81 MB / 0.4952 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003341/2.384, allocations: 4.244 MB / 0.8921 GB, free: 94.76 MB / 0.4952 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03183/2.416, allocations: 10.79 MB / 0.9027 GB, free: 90.89 MB / 0.4952 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00159/2.418, allocations: 453.2 kB / 0.9031 GB, free: 90.6 MB / 0.4952 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001971/2.42, allocations: 30.16 kB / 0.9031 GB, free: 90.6 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00604/2.426, allocations: 298.8 kB / 0.9034 GB, free: 90.6 MB / 0.4952 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001282/2.427, allocations: 198.2 kB / 0.9036 GB, free: 90.57 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005809/2.428, allocations: 80.42 kB / 0.9037 GB, free: 90.55 MB / 0.4952 GB Notification: Performance of sorting global known variables: time 0.005934/2.434, allocations: 2.31 MB / 0.9059 GB, free: 89.7 MB / 0.4952 GB Notification: Performance of sort global known variables: time 9.72e-07/2.434, allocations: 0 / 0.9059 GB, free: 89.7 MB / 0.4952 GB Notification: Performance of remove unused functions: time 0.01044/2.444, allocations: 1.398 MB / 0.9073 GB, free: 89.7 MB / 0.4952 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 36 ($STATESET4320092554.x[3],$STATESET4320092554.x[2],$STATESET4320092554.x[1],$STATESET4320092553.x[3],$STATESET4320092553.x[2],$STATESET4320092553.x[1],$STATESET4320092552.x[3],$STATESET4320092552.x[2],$STATESET4320092552.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 (195): * Single equations (assignments): 181 * 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 {(3,100.0%),(4,100.0%),(3,100.0%),(4,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: 3 {(5,100.0%) 8,(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.001221/2.445, allocations: 189.7 kB / 0.9075 GB, free: 89.6 MB / 0.4952 GB Notification: Performance of simCode: created initialization part: time 0.02318/2.469, allocations: 8.832 MB / 0.9161 GB, free: 86.33 MB / 0.4952 GB Notification: Performance of simCode: created event and clocks part: time 1.044e-05/2.469, allocations: 0 / 0.9161 GB, free: 86.33 MB / 0.4952 GB Notification: Performance of simCode: created simulation system equations: time 0.01468/2.483, allocations: 4.527 MB / 0.9205 GB, free: 83.7 MB / 0.4952 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004338/2.488, allocations: 415.2 kB / 0.9209 GB, free: 83.35 MB / 0.4952 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03056/2.518, allocations: 11.88 MB / 0.9325 GB, free: 73.31 MB / 0.4952 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008108/2.527, allocations: 3.792 MB / 0.9362 GB, free: 70.34 MB / 0.4952 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002041/2.529, allocations: 347.3 kB / 0.9366 GB, free: 70 MB / 0.4952 GB Notification: Performance of SimCode: time 1.603e-06/2.529, allocations: 0 / 0.9366 GB, free: 70 MB / 0.4952 GB Notification: Performance of Templates: time 0.8518/3.38, allocations: 279.9 MB / 1.21 GB, free: 2.637 MB / 0.5265 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/jenkins1/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