Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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_4.0.0_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_4.0.0_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 4.0.0+maint.om/package.mo): time 0.001026/0.001026, allocations: 178.6 kB / 8.519 MB, free: 1.836 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.21/1.21, allocations: 221.4 MB / 230.3 MB, free: 7.699 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009785/0.0009785, allocations: 89.86 kB / 281.2 MB, free: 5.508 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1762/0.1762, allocations: 44.15 MB / 376.1 MB, free: 3.23 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 8.245e-06/8.285e-06, allocations: 4 kB / 444 MB, free: 15.6 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.105/0.105, allocations: 61.9 MB / 0.4941 GB, free: 1.621 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2985/0.4036, allocations: 103.9 MB / 0.5956 GB, free: 8.855 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002324/0.4038, allocations: 79.95 kB / 0.5956 GB, free: 8.777 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.2435/0.6474, allocations: 96.22 MB / 0.6896 GB, free: 7.844 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0002147/0.6476, allocations: 99.98 kB / 0.6897 GB, free: 7.746 MB / 0.4948 GB 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.0256/0.6732, allocations: 5.578 MB / 0.6952 GB, free: 2.102 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.723e-05/0.6733, allocations: 15.97 kB / 0.6952 GB, free: 2.086 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1829/0.8562, allocations: 2.348 MB / 0.6975 GB, free: 169.8 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01839/0.8746, allocations: 6.843 MB / 0.7041 GB, free: 169.5 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002816/0.875, allocations: 156.9 kB / 0.7043 GB, free: 169.5 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002395/0.8774, allocations: 299.5 kB / 0.7046 GB, free: 169.5 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0116/0.889, allocations: 7.642 MB / 0.712 GB, free: 169.5 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01791/0.9069, allocations: 11.21 MB / 0.723 GB, free: 166.3 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001899/0.9072, allocations: 76.72 kB / 0.7231 GB, free: 166.3 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006885/0.9079, allocations: 35.41 kB / 0.7231 GB, free: 166.3 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001745/0.9096, allocations: 1.325 MB / 0.7244 GB, free: 166.3 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05894/0.9686, allocations: 58.66 MB / 0.7817 GB, free: 126.3 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004514/0.9731, allocations: 3.717 MB / 0.7853 GB, free: 124.4 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004184/0.9773, allocations: 2.794 MB / 0.788 GB, free: 123.3 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01666/0.994, allocations: 9.933 MB / 0.7977 GB, free: 117.7 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.118e-05/0.9941, allocations: 62.69 kB / 0.7978 GB, free: 117.6 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=214): time 4.558e-06/0.9941, allocations: 0 / 0.7978 GB, free: 117.6 MB / 0.4948 GB Notification: Performance of matching and sorting (n=243): time 0.04006/1.034, allocations: 19.52 MB / 0.8169 GB, free: 101.3 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.189e-05/1.034, allocations: 201.9 kB / 0.8171 GB, free: 101.1 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004295/1.039, allocations: 3.516 MB / 0.8205 GB, free: 97.96 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0006352/1.039, allocations: 25.7 kB / 0.8205 GB, free: 97.93 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001243/1.04, allocations: 3.324 MB / 0.8238 GB, free: 94.94 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009776/1.041, allocations: 0.9478 MB / 0.8247 GB, free: 94.09 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003113/1.042, allocations: 4 kB / 0.8247 GB, free: 94.08 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002813/1.042, allocations: 0.6273 MB / 0.8253 GB, free: 93.54 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003411/1.046, allocations: 3.047 MB / 0.8283 GB, free: 90.84 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004812/1.05, allocations: 7.41 MB / 0.8355 GB, free: 81.73 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005789/1.056, allocations: 4.874 MB / 0.8403 GB, free: 77.61 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.768e-05/1.056, allocations: 44 kB / 0.8403 GB, free: 77.57 MB / 0.4948 GB Notification: Performance of matching and sorting (n=997) (initialization): time 0.02503/1.081, allocations: 12.14 MB / 0.8522 GB, free: 67.52 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.152e-05/1.081, allocations: 4 kB / 0.8522 GB, free: 67.51 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01491/1.096, allocations: 6.389 MB / 0.8584 GB, free: 62.15 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01068/1.107, allocations: 3.102 MB / 0.8614 GB, free: 59.02 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005846/1.113, allocations: 1.719 MB / 0.8631 GB, free: 57.29 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01601/1.129, allocations: 15.3 MB / 0.8781 GB, free: 41.32 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007299/1.136, allocations: 0.4915 MB / 0.8785 GB, free: 40.83 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001462/1.138, allocations: 467.9 kB / 0.879 GB, free: 40.38 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): 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.001899/1.14, allocations: 0.496 MB / 0.8795 GB, free: 39.88 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008765/1.141, allocations: 390.2 kB / 0.8798 GB, free: 39.5 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01345/1.154, allocations: 6.805 MB / 0.8865 GB, free: 32.65 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01225/1.166, allocations: 6.197 MB / 0.8925 GB, free: 26.43 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.62e-05/1.166, allocations: 8 kB / 0.8925 GB, free: 26.43 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.793e-05/1.166, allocations: 7.969 kB / 0.8926 GB, free: 26.42 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02545/1.192, allocations: 14.26 MB / 0.9065 GB, free: 12.08 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.415e-05/1.192, allocations: 4 kB / 0.9065 GB, free: 12.07 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001972/1.194, allocations: 379.5 kB / 0.9068 GB, free: 11.7 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01004/1.204, allocations: 3.117 MB / 0.9099 GB, free: 8.551 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004175/1.204, allocations: 43.94 kB / 0.9099 GB, free: 8.508 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1776/1.382, allocations: 16.41 MB / 0.926 GB, free: 146.8 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002023/1.384, allocations: 4.147 MB / 0.93 GB, free: 143 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01765/1.402, allocations: 10.7 MB / 0.9405 GB, free: 142 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001194/1.403, allocations: 448.6 kB / 0.9409 GB, free: 141.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007973/1.404, allocations: 25.66 kB / 0.9409 GB, free: 141.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00255/1.406, allocations: 195 kB / 0.9411 GB, free: 141.9 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003333/1.407, allocations: 128.8 kB / 0.9412 GB, free: 141.9 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002336/1.407, allocations: 78.02 kB / 0.9413 GB, free: 141.9 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.003072/1.41, allocations: 2.332 MB / 0.9436 GB, free: 141.8 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.005958/1.416, allocations: 1.391 MB / 0.9449 GB, free: 141.8 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.000586/1.417, allocations: 190.8 kB / 0.9451 GB, free: 141.7 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01391/1.43, allocations: 8.868 MB / 0.9538 GB, free: 140.5 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.051e-05/1.431, allocations: 2.969 kB / 0.9538 GB, free: 140.5 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.007829/1.438, allocations: 4.283 MB / 0.958 GB, free: 139.3 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002414/1.441, allocations: 404.6 kB / 0.9583 GB, free: 139.3 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02148/1.462, allocations: 11.37 MB / 0.9694 GB, free: 136.8 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00514/1.467, allocations: 4.075 MB / 0.9734 GB, free: 136 MB / 0.4948 GB Notification: Performance of SimCode: time 9.92e-07/1.468, allocations: 0 / 0.9734 GB, free: 136 MB / 0.4948 GB Notification: Performance of Templates: time 0.09081/1.558, allocations: 56.6 MB / 1.029 GB, free: 105.6 MB / 0.4948 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring2.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring2.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.MultiBody.Forces.Spring2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches