Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.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.SpringDamperSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|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.|p2.s|p2.v",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|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.|p2.s|p2.v",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem") [: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.001006/0.001006, allocations: 185.8 kB / 8.136 MB, free: 2.211 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.146/1.146, allocations: 221.4 MB / 229.9 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.0008812/0.0008812, allocations: 96.81 kB / 280.8 MB, free: 1.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 8.696e-06/8.726e-06, allocations: 4 kB / 336.5 MB, free: 9.512 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1953/0.1953, allocations: 50.39 MB / 386.9 MB, free: 38.01 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1026/0.2979, allocations: 98.03 MB / 484.9 MB, free: 4.73 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002943/0.2983, allocations: 84.64 kB / 485 MB, free: 4.648 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.376/0.6743, allocations: 91.78 MB / 0.5633 GB, free: 32.18 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000194/0.6746, allocations: 85.72 kB / 0.5634 GB, free: 32.18 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: 1686 * Number of variables: 1686 Notification: Performance of Generate backend data structure: time 0.01473/0.6893, allocations: 4.581 MB / 0.5678 GB, free: 29.45 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.148e-05/0.6894, allocations: 8.031 kB / 0.5679 GB, free: 29.44 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01111/0.7005, allocations: 2.214 MB / 0.57 GB, free: 27.27 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01268/0.7132, allocations: 5.352 MB / 0.5752 GB, free: 22.91 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002436/0.7135, allocations: 156 kB / 0.5754 GB, free: 22.76 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00175/0.7152, allocations: 278.6 kB / 0.5757 GB, free: 22.49 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0107/0.7259, allocations: 7.166 MB / 0.5827 GB, free: 15.41 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01695/0.7429, allocations: 10.62 MB / 0.593 GB, free: 3.633 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000226/0.7432, allocations: 67.34 kB / 0.5931 GB, free: 3.566 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001372/0.7446, allocations: 36 kB / 0.5931 GB, free: 3.531 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001743/0.7463, allocations: 1.284 MB / 0.5944 GB, free: 2.246 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05831/0.8047, allocations: 53.45 MB / 0.6466 GB, free: 11.27 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003699/0.8084, allocations: 2.64 MB / 0.6492 GB, free: 8.477 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002648/0.8111, allocations: 1.755 MB / 0.6509 GB, free: 6.715 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1452/0.9563, allocations: 6.669 MB / 0.6574 GB, free: 142.9 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.396e-05/0.9564, allocations: 56.06 kB / 0.6574 GB, free: 142.9 MB / 442.7 MB Notification: Performance of pre-optimization done (n=179): time 5.811e-06/0.9564, allocations: 1.875 kB / 0.6574 GB, free: 142.9 MB / 442.7 MB Notification: Performance of matching and sorting (n=195): time 0.02383/0.9802, allocations: 11.97 MB / 0.6691 GB, free: 140.4 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.77e-05/0.9803, allocations: 148.9 kB / 0.6693 GB, free: 140.2 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004149/0.9845, allocations: 3.242 MB / 0.6724 GB, free: 139.9 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003204/0.9848, allocations: 25.7 kB / 0.6725 GB, free: 139.8 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001349/0.9862, allocations: 3.258 MB / 0.6756 GB, free: 137.9 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006936/0.9869, allocations: 0.7561 MB / 0.6764 GB, free: 137.5 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002392/0.9871, allocations: 0 / 0.6764 GB, free: 137.5 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002841/0.9874, allocations: 0.5925 MB / 0.677 GB, free: 137.2 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002443/0.9899, allocations: 2.09 MB / 0.679 GB, free: 137.2 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00384/0.9937, allocations: 6.282 MB / 0.6851 GB, free: 131.7 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004375/0.9981, allocations: 3.596 MB / 0.6886 GB, free: 131.7 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.444e-05/0.9982, allocations: 44.62 kB / 0.6887 GB, free: 131.7 MB / 442.7 MB Notification: Performance of matching and sorting (n=900) (initialization): time 0.01303/1.011, allocations: 8.052 MB / 0.6966 GB, free: 131.2 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.807e-05/1.011, allocations: 6.906 kB / 0.6966 GB, free: 131.2 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.004544/1.016, allocations: 2.679 MB / 0.6992 GB, free: 131.1 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003114/1.019, allocations: 1.025 MB / 0.7002 GB, free: 131.1 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005655/1.025, allocations: 1.604 MB / 0.7017 GB, free: 130.9 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003901/1.029, allocations: 4.159 MB / 0.7058 GB, free: 128.4 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006185/1.035, allocations: 316.7 kB / 0.7061 GB, free: 128.4 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001571/1.036, allocations: 428.7 kB / 0.7065 GB, free: 128.4 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 688 * Number of states: 0 () * Number of discrete variables: 45 (damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],p2.boxColor[3],p2.boxColor[2],p2.boxColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],bar2.color[3],bar2.color[2],bar2.color[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[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 (862): * Single equations (assignments): 853 * 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.002056/1.039, allocations: 486 kB / 0.707 GB, free: 128 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000887/1.039, allocations: 344.3 kB / 0.7073 GB, free: 127.8 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006912/1.046, allocations: 3.007 MB / 0.7102 GB, free: 127.7 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005065/1.051, allocations: 2.525 MB / 0.7127 GB, free: 127.6 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.424e-05/1.051, allocations: 10.53 kB / 0.7127 GB, free: 127.6 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.115e-05/1.052, allocations: 8.016 kB / 0.7127 GB, free: 127.6 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01995/1.071, allocations: 9.004 MB / 0.7215 GB, free: 126.1 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.478e-05/1.072, allocations: 10.97 kB / 0.7215 GB, free: 126.1 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001641/1.073, allocations: 335.2 kB / 0.7218 GB, free: 126 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002821/1.076, allocations: 0.9046 MB / 0.7227 GB, free: 125.9 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003524/1.076, allocations: 32.73 kB / 0.7228 GB, free: 125.9 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00415/1.081, allocations: 4.405 MB / 0.7271 GB, free: 123 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006922/1.081, allocations: 1.38 MB / 0.7284 GB, free: 121.6 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009108/1.09, allocations: 6.822 MB / 0.7351 GB, free: 117.7 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001081/1.092, allocations: 404 kB / 0.7355 GB, free: 117.3 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008866/1.092, allocations: 27.45 kB / 0.7355 GB, free: 117.3 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002608/1.095, allocations: 108.5 kB / 0.7356 GB, free: 117.2 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002905/1.095, allocations: 126.8 kB / 0.7357 GB, free: 117.1 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002027/1.096, allocations: 71.89 kB / 0.7358 GB, free: 117.1 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.003583/1.099, allocations: 2.137 MB / 0.7379 GB, free: 115.2 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.006772/1.106, allocations: 0.9994 MB / 0.7388 GB, free: 114.2 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 50 * Number of states: 14 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],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],p2.s,p2.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (169): * Single equations (assignments): 162 * 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 {(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 Backend phase and start with SimCode phase: time 0.0007171/1.107, allocations: 201.2 kB / 0.739 GB, free: 114.1 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.009442/1.116, allocations: 5.488 MB / 0.7444 GB, free: 109.1 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.526e-05/1.116, allocations: 4 kB / 0.7444 GB, free: 109.1 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003432/1.12, allocations: 2.013 MB / 0.7464 GB, free: 107.2 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00253/1.122, allocations: 350.7 kB / 0.7467 GB, free: 106.9 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01844/1.141, allocations: 8.788 MB / 0.7553 GB, free: 98.96 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006693/1.147, allocations: 3.842 MB / 0.759 GB, free: 96.01 MB / 442.7 MB Notification: Performance of SimCode: time 7.61e-07/1.147, allocations: 4 kB / 0.759 GB, free: 96.01 MB / 442.7 MB Notification: Performance of Templates: time 0.07169/1.219, allocations: 37.43 MB / 0.7956 GB, free: 66.74 MB / 442.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringDamperSystem/SpringDamperSystem.csv","../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches