Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.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.FreeBody,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body.body.frame_a.r_0.1.|body.body.frame_a.r_0.2.|body.body.frame_a.r_0.3.|body.body.w_a.1.|body.body.w_a.2.|body.body.w_a.3.|body.v_0.1.|body.v_0.2.|body.v_0.3.",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body.body.frame_a.r_0.1.|body.body.frame_a.r_0.2.|body.body.frame_a.r_0.3.|body.body.w_a.1.|body.body.w_a.2.|body.body.w_a.3.|body.v_0.1.|body.v_0.2.|body.v_0.3.",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody") [: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.0009934/0.0009934, allocations: 181.9 kB / 8.134 MB, free: 2.191 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.239/1.239, allocations: 221.4 MB / 229.9 MB, free: 3.242 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.0009307/0.0009306, allocations: 97.72 kB / 280.8 MB, free: 1.258 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 8.827e-06/8.856e-06, allocations: 0 / 336.5 MB, free: 9.488 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2167/0.2168, allocations: 50.4 MB / 386.9 MB, free: 38.02 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1087/0.3256, allocations: 94.73 MB / 481.7 MB, free: 7.977 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002573/0.3259, allocations: 87.83 kB / 481.7 MB, free: 7.891 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.3433/0.6692, allocations: 71.95 MB / 0.5407 GB, free: 68.45 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001263/0.6693, allocations: 72 kB / 0.5408 GB, free: 68.38 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: 1330 * Number of variables: 1330 Notification: Performance of Generate backend data structure: time 0.01054/0.6799, allocations: 3.746 MB / 0.5444 GB, free: 64.58 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.771e-05/0.6799, allocations: 15.97 kB / 0.5445 GB, free: 64.56 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008098/0.688, allocations: 1.765 MB / 0.5462 GB, free: 62.79 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01058/0.6986, allocations: 4.358 MB / 0.5504 GB, free: 58.38 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001116/0.6988, allocations: 120 kB / 0.5505 GB, free: 58.27 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009122/0.6997, allocations: 223.9 kB / 0.5508 GB, free: 58.05 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007115/0.7068, allocations: 5.5 MB / 0.5561 GB, free: 52.54 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009221/0.716, allocations: 8.438 MB / 0.5644 GB, free: 43.16 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001047/0.7162, allocations: 55.47 kB / 0.5644 GB, free: 43.1 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000397/0.7166, allocations: 28 kB / 0.5645 GB, free: 43.07 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000955/0.7175, allocations: 0.9661 MB / 0.5654 GB, free: 42.11 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03573/0.7533, allocations: 43.5 MB / 0.6079 GB, free: 13.09 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003296/0.7566, allocations: 2.392 MB / 0.6102 GB, free: 10.55 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001955/0.7586, allocations: 1.504 MB / 0.6117 GB, free: 9.043 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009178/0.7678, allocations: 5.13 MB / 0.6167 GB, free: 3.707 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.628e-05/0.7679, allocations: 51.16 kB / 0.6167 GB, free: 3.648 MB / 394.7 MB Notification: Performance of pre-optimization done (n=132): time 4.308e-06/0.7679, allocations: 0 / 0.6167 GB, free: 3.648 MB / 394.7 MB Notification: Performance of matching and sorting (n=139): time 0.0194/0.7873, allocations: 8.637 MB / 0.6252 GB, free: 10.89 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.474e-05/0.7874, allocations: 145.2 kB / 0.6253 GB, free: 10.71 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004229/0.7917, allocations: 2.806 MB / 0.628 GB, free: 7.906 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002268/0.7919, allocations: 25.7 kB / 0.6281 GB, free: 7.875 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00171/0.7936, allocations: 2.678 MB / 0.6307 GB, free: 5.152 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006599/0.7943, allocations: 0.5555 MB / 0.6312 GB, free: 4.59 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001877/0.7945, allocations: 0 / 0.6312 GB, free: 4.59 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003391/0.7948, allocations: 0.5417 MB / 0.6318 GB, free: 4.039 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00255/0.7974, allocations: 1.842 MB / 0.6336 GB, free: 2.191 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004819/0.8022, allocations: 5.39 MB / 0.6388 GB, free: 10.99 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004253/0.8065, allocations: 3.14 MB / 0.6419 GB, free: 7.848 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.001e-05/0.8065, allocations: 36 kB / 0.6419 GB, free: 7.812 MB / 426.7 MB Notification: Performance of matching and sorting (n=736) (initialization): time 0.01883/0.8254, allocations: 7.515 MB / 0.6493 GB, free: 288 kB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.971e-05/0.8254, allocations: 4.469 kB / 0.6493 GB, free: 284 kB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.137/0.9624, allocations: 2.847 MB / 0.652 GB, free: 138 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008725/0.9711, allocations: 1.592 MB / 0.6536 GB, free: 138 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003797/0.975, allocations: 1.274 MB / 0.6548 GB, free: 138 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006297/0.9813, allocations: 5.259 MB / 0.66 GB, free: 135.5 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004314/0.9856, allocations: 219.9 kB / 0.6602 GB, free: 135.5 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000714/0.9863, allocations: 360.5 kB / 0.6605 GB, free: 135.5 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 583 * Number of states: 0 () * Number of discrete variables: 36 (spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],body.frameTranslation.color[3],body.frameTranslation.color[2],body.frameTranslation.color[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar2.color[3],bar2.color[2],bar2.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 (698): * Single equations (assignments): 689 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000683/0.987, allocations: 417.8 kB / 0.6609 GB, free: 135.4 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004321/0.9875, allocations: 286.7 kB / 0.6612 GB, free: 135.4 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004712/0.9922, allocations: 2.63 MB / 0.6638 GB, free: 135.3 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.003858/0.9961, allocations: 2.233 MB / 0.666 GB, free: 135.2 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.254e-05/0.9961, allocations: 10.53 kB / 0.666 GB, free: 135.2 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.413e-05/0.9961, allocations: 9.484 kB / 0.666 GB, free: 135.2 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01234/1.008, allocations: 7.187 MB / 0.673 GB, free: 134.8 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.608e-06/1.009, allocations: 3.594 kB / 0.673 GB, free: 134.8 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001115/1.01, allocations: 220.4 kB / 0.6732 GB, free: 134.8 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002833/1.012, allocations: 0.9655 MB / 0.6741 GB, free: 134.8 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001675/1.013, allocations: 21.62 kB / 0.6742 GB, free: 134.8 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005091/1.018, allocations: 4.812 MB / 0.6789 GB, free: 132.3 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007056/1.018, allocations: 1.379 MB / 0.6802 GB, free: 131 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007121/1.026, allocations: 4.985 MB / 0.6851 GB, free: 130.4 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009299/1.027, allocations: 352.7 kB / 0.6854 GB, free: 130.3 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004114/1.027, allocations: 13.81 kB / 0.6854 GB, free: 130.3 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001272/1.028, allocations: 66.98 kB / 0.6855 GB, free: 130.3 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001662/1.028, allocations: 68.03 kB / 0.6856 GB, free: 130.3 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001165/1.029, allocations: 43.48 kB / 0.6856 GB, free: 130.3 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.002645/1.031, allocations: 1.866 MB / 0.6874 GB, free: 130.2 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004246/1.036, allocations: 0.8602 MB / 0.6883 GB, free: 130.2 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.v_0[1],body.v_0[2],body.v_0[3],body.body.frame_a.r_0[1],body.body.frame_a.r_0[2],body.body.frame_a.r_0[3],body.body.w_a[1],body.body.w_a[2],body.body.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (105): * Single equations (assignments): 98 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003849/1.036, allocations: 158.5 kB / 0.6884 GB, free: 130.1 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.007891/1.044, allocations: 4.935 MB / 0.6932 GB, free: 129.3 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.069e-06/1.044, allocations: 1.188 kB / 0.6932 GB, free: 129.3 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003512/1.047, allocations: 1.915 MB / 0.6951 GB, free: 128.5 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001622/1.049, allocations: 298.4 kB / 0.6954 GB, free: 128.3 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01322/1.062, allocations: 7.035 MB / 0.7023 GB, free: 126 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003565/1.066, allocations: 3.214 MB / 0.7054 GB, free: 124.8 MB / 426.7 MB Notification: Performance of SimCode: time 8.22e-07/1.066, allocations: 1.188 kB / 0.7054 GB, free: 124.8 MB / 426.7 MB Notification: Performance of Templates: time 0.05597/1.122, allocations: 33.67 MB / 0.7383 GB, free: 101.4 MB / 426.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/FreeBody/FreeBody.csv","../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches