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.002189/0.002189, allocations: 186.9 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.014/2.014, allocations: 205.4 MB / 222.5 MB, free: 9.137 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001063/0.001063, allocations: 99.17 kB / 270.9 MB, free: 8.387 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4997/0.4997, allocations: 43.55 MB / 362.7 MB, free: 51.95 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000495/0.000495, allocations: 16 kB / 431.4 MB, free: 5.961 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1272/0.1277, allocations: 58.85 MB / 490.2 MB, free: 11.02 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4852/0.613, allocations: 103 MB / 0.5793 GB, free: 15.55 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002981/0.6133, allocations: 79.95 kB / 0.5794 GB, free: 15.47 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7516/1.365, allocations: 98.64 MB / 0.6757 GB, free: 86.52 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.956e-06/1.365, allocations: 0 / 0.6757 GB, free: 86.52 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0003332/1.365, allocations: 96.11 kB / 0.6758 GB, free: 86.52 MB / 490.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.04645/1.412, allocations: 6.216 MB / 0.6819 GB, free: 84.7 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.787e-05/1.412, allocations: 8.656 kB / 0.6819 GB, free: 84.7 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02569/1.438, allocations: 2.93 MB / 0.6848 GB, free: 84.38 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02794/1.466, allocations: 7.287 MB / 0.6919 GB, free: 83.75 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005931/1.466, allocations: 371.4 kB / 0.6922 GB, free: 83.74 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003029/1.469, allocations: 496.6 kB / 0.6927 GB, free: 83.73 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04103/1.51, allocations: 12.64 MB / 0.705 GB, free: 80.48 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003536/1.511, allocations: 75.23 kB / 0.7051 GB, free: 80.48 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002296/1.513, allocations: 239.9 kB / 0.7053 GB, free: 80.48 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003399/1.517, allocations: 1.242 MB / 0.7066 GB, free: 80.47 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03985/1.556, allocations: 10.8 MB / 0.7171 GB, free: 80.4 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08934/1.646, allocations: 58.03 MB / 0.7738 GB, free: 39.64 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02518/1.671, allocations: 5.366 MB / 0.779 GB, free: 37.76 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02849/1.7, allocations: 12.33 MB / 0.7911 GB, free: 30.88 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.997e-05/1.7, allocations: 54.56 kB / 0.7911 GB, free: 30.82 MB / 490.7 MB Notification: Performance of pre-optimization done (n=219): time 6.061e-06/1.7, allocations: 3.375 kB / 0.7911 GB, free: 30.82 MB / 490.7 MB Notification: Performance of matching and sorting (n=258): time 0.1105/1.81, allocations: 25.23 MB / 0.8158 GB, free: 18.88 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003595/1.814, allocations: 4.654 MB / 0.8203 GB, free: 13.94 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0106/1.825, allocations: 4.144 MB / 0.8243 GB, free: 10.45 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008098/1.825, allocations: 64.91 kB / 0.8244 GB, free: 10.38 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003108/1.829, allocations: 3.431 MB / 0.8278 GB, free: 7.27 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00187/1.83, allocations: 1.015 MB / 0.8287 GB, free: 6.375 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001253/1.832, allocations: 148 kB / 0.8289 GB, free: 6.23 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0005847/1.832, allocations: 0.6269 MB / 0.8295 GB, free: 5.688 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009237/1.842, allocations: 3.234 MB / 0.8327 GB, free: 2.996 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01362/1.855, allocations: 7.487 MB / 0.84 GB, free: 10.08 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01355/1.869, allocations: 4.779 MB / 0.8446 GB, free: 5.855 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001457/1.869, allocations: 44 kB / 0.8447 GB, free: 5.812 MB / 0.4949 GB Notification: Performance of matching and sorting (n=985) (initialization): time 0.05012/1.919, allocations: 13.13 MB / 0.8575 GB, free: 10.4 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001386/1.919, allocations: 68 kB / 0.8576 GB, free: 10.33 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02747/1.947, allocations: 6.501 MB / 0.8639 GB, free: 3.797 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02148/1.968, allocations: 3.353 MB / 0.8672 GB, free: 424 kB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.3769/2.345, allocations: 1.727 MB / 0.8689 GB, free: 103.6 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03128/2.377, allocations: 16.2 MB / 0.8847 GB, free: 95.87 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01225/2.389, allocations: 0.7688 MB / 0.8855 GB, free: 95.87 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002035/2.391, allocations: 455.7 kB / 0.8859 GB, free: 95.87 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 682 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (906): * Single equations (assignments): 886 * 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.007053/2.398, allocations: 2.341 MB / 0.8882 GB, free: 95.76 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001549/2.4, allocations: 421.7 kB / 0.8886 GB, free: 95.76 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02813/2.428, allocations: 7.095 MB / 0.8955 GB, free: 95.51 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02524/2.453, allocations: 6.434 MB / 0.9018 GB, free: 95.32 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.809e-05/2.453, allocations: 13.64 kB / 0.9018 GB, free: 95.31 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.158e-05/2.453, allocations: 13.17 kB / 0.9018 GB, free: 95.31 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05425/2.508, allocations: 15.41 MB / 0.9169 GB, free: 94.25 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.692e-05/2.508, allocations: 4.531 kB / 0.9169 GB, free: 94.25 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004213/2.512, allocations: 455.8 kB / 0.9173 GB, free: 94.23 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01918/2.531, allocations: 3.341 MB / 0.9206 GB, free: 93.72 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007108/2.532, allocations: 79.91 kB / 0.9206 GB, free: 93.69 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02906/2.561, allocations: 16.87 MB / 0.9371 GB, free: 83.54 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.00336/2.564, allocations: 4.457 MB / 0.9415 GB, free: 79.28 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03189/2.596, allocations: 11.32 MB / 0.9525 GB, free: 74.88 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001627/2.598, allocations: 486.1 kB / 0.953 GB, free: 74.59 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001235/2.599, allocations: 68.61 kB / 0.953 GB, free: 74.56 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005177/2.605, allocations: 340.6 kB / 0.9534 GB, free: 74.53 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009378/2.606, allocations: 204.4 kB / 0.9536 GB, free: 74.51 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003247/2.606, allocations: 86.89 kB / 0.9536 GB, free: 74.49 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.007468/2.613, allocations: 2.907 MB / 0.9565 GB, free: 73.54 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.172e-06/2.613, allocations: 0 / 0.9565 GB, free: 73.54 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.009894/2.623, allocations: 1.527 MB / 0.958 GB, free: 73.39 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (196): * Single equations (assignments): 182 * 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.001052/2.624, allocations: 230.3 kB / 0.9582 GB, free: 73.27 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02544/2.65, allocations: 9.377 MB / 0.9674 GB, free: 69.8 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.205e-05/2.65, allocations: 8.312 kB / 0.9674 GB, free: 69.79 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.01503/2.665, allocations: 4.66 MB / 0.9719 GB, free: 67.66 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004415/2.669, allocations: 0.5059 MB / 0.9724 GB, free: 67.44 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03426/2.704, allocations: 16.01 MB / 0.988 GB, free: 59.29 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008445/2.712, allocations: 3.81 MB / 0.9918 GB, free: 57.95 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002122/2.714, allocations: 358.8 kB / 0.9921 GB, free: 57.93 MB / 0.5105 GB Notification: Performance of SimCode: time 1.793e-06/2.714, allocations: 3.906 kB / 0.9921 GB, free: 57.93 MB / 0.5105 GB Notification: Performance of Templates: time 1.152/3.867, allocations: 283.3 MB / 1.269 GB, free: 128.9 MB / 0.5417 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