Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Spring2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_cpp_ModelicaTest.MultiBody.Forces.Spring2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001045/0.001045, allocations: 197.5 kB / 16.78 MB, free: 5.035 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.496/1.496, allocations: 226.5 MB / 244.1 MB, free: 6.371 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008152/0.0008152, allocations: 95.56 kB / 296.1 MB, free: 6.668 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2943/0.2943, allocations: 44.82 MB / 392.9 MB, free: 35.64 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002447/0.0002447, allocations: 11.98 kB / 465.9 MB, free: 12.71 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2647/0.2649, allocations: 62.96 MB / 0.5165 GB, free: 37.26 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1125/0.3775, allocations: 105.6 MB / 0.6196 GB, free: 15.77 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002101/0.3778, allocations: 75.97 kB / 0.6196 GB, free: 15.69 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4278/0.8055, allocations: 100.1 MB / 0.7174 GB, free: 97.48 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.307e-06/0.8056, allocations: 0 / 0.7174 GB, free: 97.48 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.000277/0.8059, allocations: 94.38 kB / 0.7175 GB, free: 97.47 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.02658/0.8325, allocations: 6.431 MB / 0.7237 GB, free: 95.33 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.465e-05/0.8325, allocations: 11.75 kB / 0.7238 GB, free: 95.32 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01322/0.8458, allocations: 3.006 MB / 0.7267 GB, free: 94.97 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01044/0.8562, allocations: 5.277 MB / 0.7318 GB, free: 93.46 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002739/0.8565, allocations: 368.8 kB / 0.7322 GB, free: 93.32 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001715/0.8583, allocations: 496 kB / 0.7327 GB, free: 93.19 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01956/0.8778, allocations: 12.53 MB / 0.7449 GB, free: 86.66 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002073/0.8781, allocations: 72.88 kB / 0.745 GB, free: 86.61 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009468/0.8791, allocations: 242 kB / 0.7452 GB, free: 86.48 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001488/0.8805, allocations: 1.24 MB / 0.7464 GB, free: 86.26 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01827/0.8988, allocations: 10.65 MB / 0.7568 GB, free: 83.12 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04897/0.9478, allocations: 57.89 MB / 0.8133 GB, free: 24.34 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01221/0.9601, allocations: 5.358 MB / 0.8186 GB, free: 18.82 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002929/0.9631, allocations: 2.471 MB / 0.821 GB, free: 16.34 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01412/0.9772, allocations: 12.23 MB / 0.8329 GB, free: 3.633 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.936e-05/0.9773, allocations: 63.81 kB / 0.833 GB, free: 3.562 MB / 490.7 MB Notification: Performance of pre-optimization done (n=219): time 4.448e-06/0.9773, allocations: 3.938 kB / 0.833 GB, free: 3.559 MB / 490.7 MB Notification: Performance of matching and sorting (n=258): time 0.05871/1.036, allocations: 24.82 MB / 0.8572 GB, free: 10.45 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003161/1.039, allocations: 4.617 MB / 0.8617 GB, free: 5.359 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007152/1.046, allocations: 4.597 MB / 0.8662 GB, free: 0.7461 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0006793/1.047, allocations: 63.81 kB / 0.8663 GB, free: 0.6797 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.002509/1.05, allocations: 3.519 MB / 0.8697 GB, free: 13.17 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001455/1.051, allocations: 1.019 MB / 0.8707 GB, free: 12.16 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005068/1.052, allocations: 148 kB / 0.8709 GB, free: 12.01 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0004277/1.052, allocations: 0.6243 MB / 0.8715 GB, free: 11.38 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00544/1.057, allocations: 3.227 MB / 0.8746 GB, free: 8.152 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2269/1.284, allocations: 7.51 MB / 0.882 GB, free: 125.8 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01157/1.296, allocations: 11.32 MB / 0.893 GB, free: 120.2 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001262/1.296, allocations: 46.69 kB / 0.8931 GB, free: 120.2 MB / 0.5261 GB Notification: Performance of matching and sorting (n=985) (initialization): time 0.02623/1.322, allocations: 13.26 MB / 0.906 GB, free: 119.1 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 9.786e-05/1.323, allocations: 67.81 kB / 0.9061 GB, free: 119.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01475/1.337, allocations: 6.501 MB / 0.9124 GB, free: 117.3 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01133/1.349, allocations: 3.335 MB / 0.9157 GB, free: 116.8 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005604/1.354, allocations: 1.73 MB / 0.9174 GB, free: 116.6 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01487/1.369, allocations: 15.86 MB / 0.9329 GB, free: 106.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007566/1.377, allocations: 0.7705 MB / 0.9336 GB, free: 106.2 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001541/1.378, allocations: 456 kB / 0.9341 GB, free: 106.2 MB / 0.5261 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.006365/1.385, allocations: 2.34 MB / 0.9363 GB, free: 105.2 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001332/1.386, allocations: 415 kB / 0.9367 GB, free: 105.2 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01499/1.401, allocations: 7.097 MB / 0.9437 GB, free: 103.1 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01338/1.415, allocations: 6.433 MB / 0.95 GB, free: 101.3 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.558e-05/1.415, allocations: 11.5 kB / 0.95 GB, free: 101.3 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.599e-05/1.415, allocations: 14.59 kB / 0.95 GB, free: 101.3 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03138/1.446, allocations: 15.41 MB / 0.965 GB, free: 96.14 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.712e-05/1.446, allocations: 3.969 kB / 0.965 GB, free: 96.14 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002122/1.448, allocations: 448.5 kB / 0.9655 GB, free: 96.11 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009276/1.458, allocations: 3.333 MB / 0.9687 GB, free: 95.57 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006094/1.458, allocations: 87.22 kB / 0.9688 GB, free: 95.53 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01514/1.473, allocations: 16.49 MB / 0.9849 GB, free: 81.74 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002055/1.476, allocations: 4.432 MB / 0.9892 GB, free: 77.11 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01727/1.493, allocations: 10.63 MB / 0.9996 GB, free: 67.09 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001288/1.494, allocations: 486.9 kB / 1 GB, free: 66.59 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001368/1.496, allocations: 67.97 kB / 1 GB, free: 66.53 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003303/1.499, allocations: 344.4 kB / 1 GB, free: 66.19 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008948/1.5, allocations: 204.7 kB / 1.001 GB, free: 66 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004665/1.5, allocations: 79.95 kB / 1.001 GB, free: 65.92 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.005628/1.506, allocations: 2.875 MB / 1.004 GB, free: 63.04 MB / 0.5261 GB Notification: Performance of sort global known variables: time 8.22e-07/1.506, allocations: 0 / 1.004 GB, free: 63.04 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.008115/1.514, allocations: 1.54 MB / 1.005 GB, free: 61.52 MB / 0.5261 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.0009847/1.515, allocations: 230.4 kB / 1.005 GB, free: 61.3 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01523/1.53, allocations: 9.388 MB / 1.014 GB, free: 51.76 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 9.157e-06/1.53, allocations: 0 / 1.014 GB, free: 51.76 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.00794/1.538, allocations: 4.667 MB / 1.019 GB, free: 46.91 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007416/1.546, allocations: 0.5316 MB / 1.02 GB, free: 46.39 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02347/1.569, allocations: 16.02 MB / 1.035 GB, free: 30.47 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004803/1.574, allocations: 3.696 MB / 1.039 GB, free: 26.76 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001345/1.575, allocations: 355.3 kB / 1.039 GB, free: 26.41 MB / 0.5261 GB Notification: Performance of SimCode: time 9.01e-07/1.576, allocations: 4 kB / 1.039 GB, free: 26.41 MB / 0.5261 GB Notification: Performance of Templates: time 0.68/2.255, allocations: 300.6 MB / 1.333 GB, free: 159.9 MB / 0.573 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Spring2.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Spring2.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Spring2.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Spring2.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Spring2.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Spring2 --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Spring2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Spring2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/Spring2/Spring2.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Spring2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches