Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.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.Spring,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|prismatic.s|prismatic.v|prismatic1.s|prismatic1.v",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring") translateModel(ModelicaTest.MultiBody.Forces.Spring,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|prismatic.s|prismatic.v|prismatic1.s|prismatic1.v",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring") [: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.0009826/0.0009826, allocations: 191.1 kB / 8.522 MB, free: 1.766 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.197/1.197, allocations: 221.4 MB / 230.3 MB, free: 3.07 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.0009363/0.0009361, allocations: 88.03 kB / 281.2 MB, free: 1.254 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.315/0.315, allocations: 44.13 MB / 376.1 MB, free: 43.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 7.053e-06/7.083e-06, allocations: 3.938 kB / 444 MB, free: 11.66 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.272/0.272, allocations: 61.89 MB / 0.4941 GB, free: 42.42 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1384/0.4105, allocations: 105.8 MB / 0.5974 GB, free: 11.51 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002316/0.4108, allocations: 71.97 kB / 0.5975 GB, free: 11.44 MB / 426.7 MB Notification: Performance of FrontEnd: time 0.2114/0.6222, allocations: 84.61 MB / 0.6801 GB, free: 6.227 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0001566/0.6224, allocations: 91.92 kB / 0.6802 GB, free: 6.137 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: 1535 * Number of variables: 1535 Notification: Performance of Generate backend data structure: time 0.007847/0.6303, allocations: 3.904 MB / 0.684 GB, free: 2.168 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.795e-05/0.6303, allocations: 8.031 kB / 0.684 GB, free: 2.16 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009371/0.6397, allocations: 1.975 MB / 0.6859 GB, free: 180 kB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2189/0.8586, allocations: 4.946 MB / 0.6908 GB, free: 162.7 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000237/0.8589, allocations: 140.7 kB / 0.6909 GB, free: 162.7 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001796/0.8607, allocations: 255.8 kB / 0.6911 GB, free: 162.7 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01062/0.8714, allocations: 6.381 MB / 0.6974 GB, free: 162.7 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01556/0.887, allocations: 9.668 MB / 0.7068 GB, free: 159.7 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001692/0.8872, allocations: 68.69 kB / 0.7069 GB, free: 159.7 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006303/0.8878, allocations: 31.34 kB / 0.7069 GB, free: 159.7 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001349/0.8892, allocations: 1.109 MB / 0.708 GB, free: 159.7 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04422/0.9334, allocations: 48.03 MB / 0.7549 GB, free: 127.5 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002401/0.9359, allocations: 1.914 MB / 0.7568 GB, free: 126.4 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001166/0.9371, allocations: 1.047 MB / 0.7578 GB, free: 126 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006956/0.944, allocations: 5.166 MB / 0.7628 GB, free: 122.6 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.735e-05/0.9441, allocations: 55.56 kB / 0.7629 GB, free: 122.5 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=148): time 5.24e-06/0.9441, allocations: 0 / 0.7629 GB, free: 122.5 MB / 0.4948 GB Notification: Performance of matching and sorting (n=160): time 0.01449/0.9586, allocations: 7.849 MB / 0.7705 GB, free: 118.7 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.139e-05/0.9587, allocations: 194.9 kB / 0.7707 GB, free: 118.5 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004644/0.9634, allocations: 3.083 MB / 0.7737 GB, free: 117.3 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0001473/0.9635, allocations: 26.55 kB / 0.7738 GB, free: 117.2 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001286/0.9648, allocations: 3.042 MB / 0.7767 GB, free: 114.9 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004751/0.9653, allocations: 0.6204 MB / 0.7773 GB, free: 114.4 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001638/0.9655, allocations: 0 / 0.7773 GB, free: 114.4 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002793/0.9658, allocations: 0.5644 MB / 0.7779 GB, free: 114 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001865/0.9676, allocations: 1.525 MB / 0.7794 GB, free: 113.5 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003471/0.9711, allocations: 5.458 MB / 0.7847 GB, free: 107.6 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003277/0.9744, allocations: 2.901 MB / 0.7875 GB, free: 106.5 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.866e-05/0.9745, allocations: 42.03 kB / 0.7876 GB, free: 106.5 MB / 0.4948 GB Notification: Performance of matching and sorting (n=811) (initialization): time 0.009348/0.9838, allocations: 6.019 MB / 0.7935 GB, free: 104.5 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.539e-05/0.9839, allocations: 10.53 kB / 0.7935 GB, free: 104.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002133/0.9841, allocations: 138.5 kB / 0.7936 GB, free: 104.5 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002799/0.9844, allocations: 208.3 kB / 0.7938 GB, free: 104.5 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005225/0.9896, allocations: 1.48 MB / 0.7952 GB, free: 104.3 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002388/0.9899, allocations: 275.9 kB / 0.7955 GB, free: 104.2 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00532/0.9952, allocations: 242.4 kB / 0.7957 GB, free: 104.2 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001163/0.9964, allocations: 392.2 kB / 0.7961 GB, free: 104.2 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 645 * Number of states: 0 () * Number of discrete variables: 39 (prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[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 (787): * Single equations (assignments): 784 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008893/0.9973, allocations: 464.6 kB / 0.7966 GB, free: 103.8 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006673/0.998, allocations: 317 kB / 0.7969 GB, free: 103.6 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002032/1, allocations: 1.223 MB / 0.7981 GB, free: 103.2 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.306e-05/1, allocations: 19.25 kB / 0.7981 GB, free: 103.2 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.018e-05/1, allocations: 4 kB / 0.7981 GB, free: 103.1 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.321e-05/1, allocations: 8.234 kB / 0.7981 GB, free: 103.1 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008603/1.009, allocations: 4.8 MB / 0.8028 GB, free: 100.2 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.129e-05/1.009, allocations: 16 kB / 0.8028 GB, free: 100.2 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001031/1.01, allocations: 276.3 kB / 0.803 GB, free: 99.95 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.68e-05/1.01, allocations: 28 kB / 0.8031 GB, free: 99.92 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.289e-05/1.01, allocations: 31.66 kB / 0.8031 GB, free: 99.89 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.146e-05/1.01, allocations: 38.44 kB / 0.8031 GB, free: 99.86 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.525e-05/1.01, allocations: 29.98 kB / 0.8032 GB, free: 99.84 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003387/1.013, allocations: 5.064 MB / 0.8081 GB, free: 94.35 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009737/1.014, allocations: 384.1 kB / 0.8085 GB, free: 93.96 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003974/1.015, allocations: 27.28 kB / 0.8085 GB, free: 93.94 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001351/1.016, allocations: 66.34 kB / 0.8086 GB, free: 93.89 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001371/1.016, allocations: 128 kB / 0.8087 GB, free: 93.79 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.345e-05/1.016, allocations: 71.14 kB / 0.8088 GB, free: 93.73 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.003012/1.019, allocations: 2.044 MB / 0.8108 GB, free: 91.96 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.005084/1.025, allocations: 0.7747 MB / 0.8115 GB, free: 91.19 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 79 * Number of states: 4 (prismatic.s,prismatic.v,prismatic1.s,prismatic1.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (146): * Single equations (assignments): 143 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000408/1.025, allocations: 186.9 kB / 0.8117 GB, free: 91.02 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.004968/1.03, allocations: 3.499 MB / 0.8151 GB, free: 87.82 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.217e-05/1.03, allocations: 0 / 0.8151 GB, free: 87.82 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0008429/1.031, allocations: 0.7118 MB / 0.8158 GB, free: 87.17 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002152/1.033, allocations: 354.6 kB / 0.8161 GB, free: 86.87 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0142/1.047, allocations: 7.173 MB / 0.8231 GB, free: 80.14 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004429/1.052, allocations: 3.54 MB / 0.8266 GB, free: 77.4 MB / 0.4948 GB Notification: Performance of SimCode: time 9.01e-07/1.052, allocations: 0 / 0.8266 GB, free: 77.4 MB / 0.4948 GB Notification: Performance of Templates: time 0.05397/1.106, allocations: 27.02 MB / 0.853 GB, free: 57.75 MB / 0.4948 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/Spring/Spring.csv","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches