Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_cpp_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_3.2.3_cpp_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 3.2.3+maint.om/package.mo): time 0.00167/0.00167, allocations: 179 kB / 8.151 MB, free: 2.195 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.761/1.761, allocations: 205.2 MB / 213.7 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001281/0.001281, allocations: 92.2 kB / 261.8 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.112e-05/1.126e-05, allocations: 4 kB / 314.3 MB, free: 9.035 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2397/0.2398, allocations: 47.56 MB / 361.8 MB, free: 45.65 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1453/0.3851, allocations: 91.14 MB / 453 MB, free: 10.92 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000305/0.3855, allocations: 87.94 kB / 453.1 MB, free: 10.83 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.2625/0.6481, allocations: 56.22 MB / 0.4973 GB, free: 2.27 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.000153/0.6483, allocations: 48 kB / 0.4974 GB, free: 2.223 MB / 394.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.1673/0.8156, allocations: 2.819 MB / 0.5001 GB, free: 138.1 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.39e-05/0.8157, allocations: 14.22 kB / 0.5002 GB, free: 138.1 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01515/0.8308, allocations: 1.63 MB / 0.5017 GB, free: 138 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01465/0.8455, allocations: 3.651 MB / 0.5053 GB, free: 137.7 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002117/0.8458, allocations: 88.91 kB / 0.5054 GB, free: 137.7 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00151/0.8473, allocations: 149.8 kB / 0.5055 GB, free: 137.7 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01123/0.8586, allocations: 4.218 MB / 0.5097 GB, free: 137.7 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0154/0.874, allocations: 6.396 MB / 0.5159 GB, free: 135.8 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001519/0.8742, allocations: 47.19 kB / 0.5159 GB, free: 135.8 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008051/0.8751, allocations: 21.84 kB / 0.516 GB, free: 135.8 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001528/0.8766, allocations: 0.7578 MB / 0.5167 GB, free: 135.8 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04599/0.9226, allocations: 32.08 MB / 0.548 GB, free: 113.9 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003779/0.9265, allocations: 2.069 MB / 0.5501 GB, free: 112.6 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002464/0.929, allocations: 1.161 MB / 0.5512 GB, free: 112.2 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01132/0.9403, allocations: 4.536 MB / 0.5556 GB, free: 109.5 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.585e-05/0.9404, allocations: 47.12 kB / 0.5557 GB, free: 109.4 MB / 394.7 MB Notification: Performance of pre-optimization done (n=112): time 5.831e-06/0.9404, allocations: 0 / 0.5557 GB, free: 109.4 MB / 394.7 MB Notification: Performance of matching and sorting (n=125): time 0.03704/0.9775, allocations: 9.121 MB / 0.5646 GB, free: 105.9 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.425e-05/0.9776, allocations: 142.8 kB / 0.5647 GB, free: 105.8 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004394/0.982, allocations: 2.167 MB / 0.5668 GB, free: 104.4 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003407/0.9824, allocations: 29.64 kB / 0.5669 GB, free: 104.4 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001113/0.9835, allocations: 2.052 MB / 0.5689 GB, free: 102.5 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005885/0.9841, allocations: 0.4948 MB / 0.5693 GB, free: 102.1 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002649/0.9844, allocations: 0 / 0.5693 GB, free: 102.1 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002773/0.9847, allocations: 0.5034 MB / 0.5698 GB, free: 101.6 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003329/0.988, allocations: 1.58 MB / 0.5714 GB, free: 100.2 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004583/0.9926, allocations: 4.457 MB / 0.5757 GB, free: 94.55 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006377/0.9991, allocations: 2.839 MB / 0.5785 GB, free: 92.17 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.444e-05/0.9991, allocations: 28 kB / 0.5785 GB, free: 92.14 MB / 394.7 MB Notification: Performance of matching and sorting (n=610) (initialization): time 0.02179/1.021, allocations: 6.573 MB / 0.5849 GB, free: 86.67 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.156e-05/1.021, allocations: 4 kB / 0.585 GB, free: 86.67 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01188/1.033, allocations: 2.645 MB / 0.5875 GB, free: 84.66 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009291/1.042, allocations: 1.345 MB / 0.5888 GB, free: 83.72 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006328/1.049, allocations: 1.04 MB / 0.5899 GB, free: 82.8 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0189/1.068, allocations: 7.488 MB / 0.5972 GB, free: 76.01 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005209/1.073, allocations: 223.5 kB / 0.5974 GB, free: 75.79 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005943/1.073, allocations: 299.8 kB / 0.5977 GB, free: 75.5 MB / 394.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 {(6,91.7%) 9} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008013/1.074, allocations: 281.1 kB / 0.5979 GB, free: 75.22 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006741/1.075, allocations: 217.2 kB / 0.5981 GB, free: 75 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01309/1.088, allocations: 2.907 MB / 0.601 GB, free: 72.09 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01241/1.1, allocations: 2.591 MB / 0.6035 GB, free: 69.48 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.796e-05/1.101, allocations: 4 kB / 0.6035 GB, free: 69.48 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.121e-05/1.101, allocations: 7.984 kB / 0.6035 GB, free: 69.47 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0244/1.125, allocations: 6.291 MB / 0.6097 GB, free: 63.13 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.584e-05/1.125, allocations: 0 / 0.6097 GB, free: 63.13 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001785/1.127, allocations: 163.1 kB / 0.6098 GB, free: 62.98 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009603/1.137, allocations: 1.356 MB / 0.6112 GB, free: 61.61 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003825/1.137, allocations: 15.98 kB / 0.6112 GB, free: 61.6 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02022/1.157, allocations: 7.698 MB / 0.6187 GB, free: 53.67 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001144/1.158, allocations: 1.363 MB / 0.62 GB, free: 52.2 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01707/1.176, allocations: 5.108 MB / 0.625 GB, free: 47.01 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008117/1.176, allocations: 278.4 kB / 0.6253 GB, free: 46.71 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000706/1.177, allocations: 15.98 kB / 0.6253 GB, free: 46.7 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002597/1.18, allocations: 71.91 kB / 0.6254 GB, free: 46.63 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003535/1.18, allocations: 56.47 kB / 0.6254 GB, free: 46.57 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001818/1.18, allocations: 43.97 kB / 0.6254 GB, free: 46.53 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.002994/1.183, allocations: 1.439 MB / 0.6269 GB, free: 45.08 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.005905/1.189, allocations: 0.6905 MB / 0.6275 GB, free: 44.39 MB / 394.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.0008145/1.19, allocations: 167.1 kB / 0.6277 GB, free: 44.23 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01147/1.202, allocations: 4.144 MB / 0.6317 GB, free: 40.07 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.063e-06/1.202, allocations: 0 / 0.6317 GB, free: 40.07 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005281/1.207, allocations: 1.621 MB / 0.6333 GB, free: 38.41 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001835/1.209, allocations: 201.5 kB / 0.6335 GB, free: 38.21 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01553/1.224, allocations: 5.883 MB / 0.6393 GB, free: 32.29 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004349/1.229, allocations: 2.55 MB / 0.6417 GB, free: 29.73 MB / 394.7 MB Notification: Performance of SimCode: time 1.463e-06/1.229, allocations: 0 / 0.6417 GB, free: 29.73 MB / 394.7 MB Notification: Performance of Templates: time 0.257/1.486, allocations: 71.79 MB / 0.7119 GB, free: 112 MB / 394.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringWithMass/SpringWithMass.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches