Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_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_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_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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001345/0.001345, allocations: 204.7 kB / 8.542 MB, free: 1.824 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.263/1.263, allocations: 225.5 MB / 234.4 MB, free: 3.473 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009083/0.0009083, allocations: 91.59 kB / 286.3 MB, free: 5.238 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2049/0.2049, allocations: 45.14 MB / 383.3 MB, free: 0.6055 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 7.434e-06/7.464e-06, allocations: 4 kB / 452.6 MB, free: 76.18 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.108/0.108, allocations: 63.24 MB / 0.5038 GB, free: 13.01 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3836/0.4917, allocations: 104.8 MB / 0.6061 GB, free: 14.28 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002579/0.492, allocations: 71.33 kB / 0.6062 GB, free: 14.24 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.2656/0.7576, allocations: 99.98 MB / 0.7038 GB, free: 2.457 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002584/0.7579, allocations: 96 kB / 0.7039 GB, free: 2.363 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.0306/0.7885, allocations: 5.91 MB / 0.7097 GB, free: 12.39 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.556e-05/0.7886, allocations: 8.031 kB / 0.7097 GB, free: 12.38 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01377/0.8024, allocations: 2.505 MB / 0.7122 GB, free: 9.863 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01817/0.8206, allocations: 6.053 MB / 0.7181 GB, free: 3.746 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003064/0.8209, allocations: 160 kB / 0.7182 GB, free: 3.59 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002451/0.8234, allocations: 299.8 kB / 0.7185 GB, free: 3.297 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01402/0.8374, allocations: 7.649 MB / 0.726 GB, free: 11.64 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01943/0.8569, allocations: 11.21 MB / 0.7369 GB, free: 15.2 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000191/0.8571, allocations: 83.33 kB / 0.737 GB, free: 15.12 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006678/0.8578, allocations: 36 kB / 0.737 GB, free: 15.09 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001899/0.8597, allocations: 1.315 MB / 0.7383 GB, free: 13.77 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2648/1.124, allocations: 58.64 MB / 0.7956 GB, free: 134.5 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005033/1.13, allocations: 3.718 MB / 0.7992 GB, free: 133.8 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003486/1.133, allocations: 2.794 MB / 0.802 GB, free: 133.7 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01488/1.148, allocations: 9.935 MB / 0.8117 GB, free: 130.1 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.016e-05/1.148, allocations: 65.41 kB / 0.8117 GB, free: 130 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=214): time 5.089e-06/1.148, allocations: 0 / 0.8117 GB, free: 130 MB / 0.5261 GB Notification: Performance of matching and sorting (n=243): time 0.03984/1.188, allocations: 19.52 MB / 0.8308 GB, free: 126.4 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.166e-05/1.188, allocations: 204.1 kB / 0.831 GB, free: 126.2 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005402/1.193, allocations: 3.511 MB / 0.8344 GB, free: 124.9 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0007189/1.194, allocations: 29.17 kB / 0.8344 GB, free: 124.9 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.00184/1.196, allocations: 3.325 MB / 0.8377 GB, free: 122.5 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.00144/1.197, allocations: 0.9444 MB / 0.8386 GB, free: 121.8 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003557/1.198, allocations: 0 / 0.8386 GB, free: 121.8 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0003702/1.198, allocations: 0.6302 MB / 0.8392 GB, free: 121.4 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003682/1.202, allocations: 3.051 MB / 0.8422 GB, free: 120.4 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005608/1.208, allocations: 7.41 MB / 0.8494 GB, free: 113.5 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006779/1.214, allocations: 4.871 MB / 0.8542 GB, free: 112.1 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001015/1.214, allocations: 45 kB / 0.8542 GB, free: 112.1 MB / 0.5261 GB Notification: Performance of matching and sorting (n=997) (initialization): time 0.027/1.241, allocations: 12.15 MB / 0.8661 GB, free: 108.8 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.468e-05/1.242, allocations: 3.906 kB / 0.8661 GB, free: 108.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01569/1.257, allocations: 6.383 MB / 0.8723 GB, free: 105.9 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01114/1.268, allocations: 3.097 MB / 0.8754 GB, free: 103.7 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006416/1.275, allocations: 1.717 MB / 0.877 GB, free: 102.2 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01619/1.291, allocations: 15.31 MB / 0.892 GB, free: 87.97 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007475/1.299, allocations: 0.4903 MB / 0.8925 GB, free: 87.6 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001526/1.3, allocations: 467.5 kB / 0.8929 GB, free: 87.16 MB / 0.5261 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): 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%),(3,100.0%),(4,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: 3 {(5,100.0%) 11,(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001702/1.302, allocations: 0.4928 MB / 0.8934 GB, free: 86.67 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008949/1.303, allocations: 383 kB / 0.8938 GB, free: 86.29 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01379/1.317, allocations: 6.808 MB / 0.9004 GB, free: 81.09 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01285/1.329, allocations: 6.194 MB / 0.9065 GB, free: 76.33 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.266e-05/1.33, allocations: 12 kB / 0.9065 GB, free: 76.32 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.614e-05/1.33, allocations: 11.86 kB / 0.9065 GB, free: 76.32 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02793/1.358, allocations: 14.24 MB / 0.9204 GB, free: 65.26 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.211e-05/1.358, allocations: 4 kB / 0.9204 GB, free: 65.25 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002257/1.36, allocations: 386.7 kB / 0.9208 GB, free: 64.95 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01041/1.37, allocations: 3.116 MB / 0.9238 GB, free: 62.82 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008067/1.371, allocations: 56.58 kB / 0.9239 GB, free: 62.79 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01832/1.39, allocations: 16.41 MB / 0.9399 GB, free: 46.07 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001853/1.391, allocations: 4.157 MB / 0.9439 GB, free: 41.55 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01734/1.409, allocations: 10.7 MB / 0.9544 GB, free: 30.7 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001277/1.41, allocations: 447.9 kB / 0.9548 GB, free: 30.23 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009731/1.411, allocations: 23.98 kB / 0.9548 GB, free: 30.21 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002751/1.414, allocations: 199.7 kB / 0.955 GB, free: 30.02 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000359/1.414, allocations: 125.7 kB / 0.9552 GB, free: 29.89 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002411/1.414, allocations: 79.95 kB / 0.9552 GB, free: 29.82 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.003191/1.418, allocations: 2.339 MB / 0.9575 GB, free: 27.47 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.006896/1.425, allocations: 1.386 MB / 0.9589 GB, free: 26.09 MB / 0.5261 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.0007317/1.425, allocations: 197.3 kB / 0.9591 GB, free: 25.9 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01489/1.44, allocations: 8.86 MB / 0.9677 GB, free: 16.9 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 9.628e-06/1.44, allocations: 0 / 0.9677 GB, free: 16.9 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.007761/1.448, allocations: 4.293 MB / 0.9719 GB, free: 12.44 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002889/1.451, allocations: 398 kB / 0.9723 GB, free: 12.05 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02196/1.473, allocations: 11.36 MB / 0.9834 GB, free: 0.7188 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.2077/1.681, allocations: 4.081 MB / 0.9874 GB, free: 168.4 MB / 0.5261 GB Notification: Performance of SimCode: time 1.704e-06/1.681, allocations: 3.188 kB / 0.9874 GB, free: 168.4 MB / 0.5261 GB Notification: Performance of Templates: time 0.09641/1.777, allocations: 56.59 MB / 1.043 GB, free: 165.2 MB / 0.5261 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring2.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring2.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/Spring2/Spring2.csv","../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches