Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.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) 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(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|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.",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|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.",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass") [: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.001011/0.001011, allocations: 182.9 kB / 8.133 MB, free: 2.223 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.18/1.18, allocations: 221.4 MB / 229.9 MB, free: 3 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.0009134/0.0009135, allocations: 96.14 kB / 280.8 MB, free: 1.227 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.905e-06/7.995e-06, allocations: 0 / 336.5 MB, free: 9.477 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2027/0.2027, allocations: 50.41 MB / 386.9 MB, free: 37.97 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1005/0.3033, allocations: 92.69 MB / 479.6 MB, free: 10.05 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002166/0.3035, allocations: 83.95 kB / 479.7 MB, free: 9.969 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.2717/0.5752, allocations: 56.94 MB / 0.5241 GB, free: 85.05 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.625e-05/0.5753, allocations: 52 kB / 0.5241 GB, free: 85 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 968 * Number of variables: 968 Notification: Performance of Generate backend data structure: time 0.008234/0.5836, allocations: 2.826 MB / 0.5269 GB, free: 82.12 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.22e-05/0.5836, allocations: 12.03 kB / 0.5269 GB, free: 82.11 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007585/0.5912, allocations: 1.623 MB / 0.5285 GB, free: 80.48 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008247/0.5995, allocations: 3.517 MB / 0.5319 GB, free: 76.95 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.182e-05/0.5996, allocations: 84 kB / 0.532 GB, free: 76.87 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005294/0.6001, allocations: 147.9 kB / 0.5321 GB, free: 76.72 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004939/0.6051, allocations: 4.218 MB / 0.5362 GB, free: 72.5 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006135/0.6112, allocations: 6.394 MB / 0.5425 GB, free: 65.38 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.22e-05/0.6113, allocations: 43.61 kB / 0.5425 GB, free: 65.34 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002925/0.6116, allocations: 24 kB / 0.5425 GB, free: 65.31 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007707/0.6124, allocations: 0.7722 MB / 0.5433 GB, free: 64.55 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02361/0.636, allocations: 32.05 MB / 0.5746 GB, free: 31.62 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002037/0.6381, allocations: 2.065 MB / 0.5766 GB, free: 29.41 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001132/0.6392, allocations: 1.157 MB / 0.5777 GB, free: 28.24 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00555/0.6448, allocations: 4.544 MB / 0.5822 GB, free: 23.45 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.691e-05/0.6449, allocations: 58.98 kB / 0.5822 GB, free: 23.39 MB / 378.7 MB Notification: Performance of pre-optimization done (n=112): time 2.705e-06/0.6449, allocations: 0 / 0.5822 GB, free: 23.39 MB / 378.7 MB Notification: Performance of matching and sorting (n=125): time 0.01786/0.6627, allocations: 9.034 MB / 0.5911 GB, free: 14.23 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.029e-05/0.6628, allocations: 145.1 kB / 0.5912 GB, free: 14.05 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002226/0.665, allocations: 2.162 MB / 0.5933 GB, free: 11.87 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.397e-05/0.6651, allocations: 29.7 kB / 0.5933 GB, free: 11.83 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006671/0.6658, allocations: 2.031 MB / 0.5953 GB, free: 9.766 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002943/0.6661, allocations: 0.4898 MB / 0.5958 GB, free: 9.27 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001703/0.6663, allocations: 0 / 0.5958 GB, free: 9.27 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002118/0.6665, allocations: 0.5519 MB / 0.5963 GB, free: 8.707 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0017/0.6682, allocations: 1.586 MB / 0.5979 GB, free: 7.113 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002511/0.6707, allocations: 4.446 MB / 0.6022 GB, free: 1.211 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003479/0.6742, allocations: 2.837 MB / 0.605 GB, free: 14.37 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.378e-05/0.6742, allocations: 32 kB / 0.605 GB, free: 14.34 MB / 394.7 MB Notification: Performance of matching and sorting (n=610) (initialization): time 0.01258/0.6868, allocations: 6.609 MB / 0.6115 GB, free: 7.723 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.677e-05/0.6869, allocations: 4 kB / 0.6115 GB, free: 7.719 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0066/0.6935, allocations: 2.649 MB / 0.6141 GB, free: 5.066 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005496/0.699, allocations: 1.411 MB / 0.6154 GB, free: 3.645 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003612/0.7026, allocations: 1.029 MB / 0.6165 GB, free: 2.613 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01136/0.714, allocations: 7.409 MB / 0.6237 GB, free: 10.98 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00368/0.7177, allocations: 236.2 kB / 0.6239 GB, free: 10.75 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006377/0.7184, allocations: 292 kB / 0.6242 GB, free: 10.46 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 471 * Number of states: 0 () * Number of discrete variables: 21 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],spring.color[3],spring.color[2],spring.color[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (562): * Single equations (assignments): 554 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005949/0.719, allocations: 352.4 kB / 0.6245 GB, free: 10.11 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003774/0.7193, allocations: 217.2 kB / 0.6247 GB, free: 9.898 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007201/0.7265, allocations: 2.911 MB / 0.6276 GB, free: 6.973 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006545/0.7331, allocations: 2.593 MB / 0.6301 GB, free: 4.367 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.539e-05/0.7332, allocations: 7.938 kB / 0.6301 GB, free: 4.359 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.288e-05/0.7332, allocations: 3.984 kB / 0.6301 GB, free: 4.355 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01386/0.7471, allocations: 6.296 MB / 0.6363 GB, free: 14 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.472e-05/0.7471, allocations: 7.922 kB / 0.6363 GB, free: 14 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009245/0.7481, allocations: 155.8 kB / 0.6364 GB, free: 13.84 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005281/0.7534, allocations: 1.354 MB / 0.6378 GB, free: 12.48 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002333/0.7536, allocations: 23.97 kB / 0.6378 GB, free: 12.46 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01191/0.7655, allocations: 7.685 MB / 0.6453 GB, free: 4.543 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0009252/0.7665, allocations: 1.363 MB / 0.6466 GB, free: 3.059 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.1265/0.8931, allocations: 5.093 MB / 0.6516 GB, free: 150.1 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006035/0.8937, allocations: 281.1 kB / 0.6519 GB, free: 150.1 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003658/0.8941, allocations: 17.02 kB / 0.6519 GB, free: 150.1 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001256/0.8953, allocations: 75.33 kB / 0.6519 GB, free: 150.1 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001627/0.8955, allocations: 56.34 kB / 0.652 GB, free: 150.1 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001251/0.8956, allocations: 44.67 kB / 0.652 GB, free: 150.1 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.001824/0.8975, allocations: 1.425 MB / 0.6534 GB, free: 149.9 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003519/0.901, allocations: 0.6914 MB / 0.6541 GB, free: 149.9 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 12 ($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]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (81): * Single equations (assignments): 75 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004277/0.9014, allocations: 174.6 kB / 0.6543 GB, free: 149.8 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.006028/0.9075, allocations: 4.179 MB / 0.6583 GB, free: 149.5 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.588e-06/0.9075, allocations: 0 / 0.6583 GB, free: 149.5 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0027/0.9102, allocations: 1.621 MB / 0.6599 GB, free: 149.2 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001172/0.9114, allocations: 204.9 kB / 0.6601 GB, free: 149.2 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008561/0.92, allocations: 5.568 MB / 0.6656 GB, free: 148.1 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002334/0.9223, allocations: 2.53 MB / 0.668 GB, free: 147.4 MB / 426.7 MB Notification: Performance of SimCode: time 6.51e-07/0.9224, allocations: 0 / 0.668 GB, free: 147.4 MB / 426.7 MB Notification: Performance of Templates: time 0.05068/0.973, allocations: 28.04 MB / 0.6954 GB, free: 145.1 MB / 426.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringWithMass/SpringWithMass.csv","../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches