Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.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.PointGravity,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.|body2.frame_a.r_0.1.|body2.frame_a.r_0.2.|body2.frame_a.r_0.3.|body2.v_0.1.|body2.v_0.2.|body2.v_0.3.|body2.w_a.1.|body2.w_a.2.|body2.w_a.3.",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity,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.|body2.frame_a.r_0.1.|body2.frame_a.r_0.2.|body2.frame_a.r_0.3.|body2.v_0.1.|body2.v_0.2.|body2.v_0.3.|body2.w_a.1.|body2.w_a.2.|body2.w_a.3.",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity") [: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.001733/0.001736, allocations: 186 kB / 8.151 MB, free: 0.8633 MB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.722/1.722, allocations: 205.2 MB / 213.7 MB, free: 8.602 MB / 178.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001224/0.001223, allocations: 96.27 kB / 261.8 MB, free: 5.172 MB / 210.8 MB Notification: Performance of FrontEnd - loaded program: time 8.366e-06/8.456e-06, allocations: 0 / 314.3 MB, free: 2.434 MB / 258.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09838/0.09841, allocations: 47.57 MB / 361.9 MB, free: 2.746 MB / 306.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2915/0.3899, allocations: 86.41 MB / 448.3 MB, free: 1.5 MB / 322.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002923/0.3903, allocations: 86.2 kB / 448.3 MB, free: 1.457 MB / 322.8 MB Notification: Performance of FrontEnd: time 0.3197/0.71, allocations: 58.29 MB / 0.4948 GB, free: 10.31 MB / 386.8 MB Notification: Performance of Transformations before backend: time 0.0001538/0.7102, allocations: 44 kB / 0.4948 GB, free: 10.27 MB / 386.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 911 * Number of variables: 911 Notification: Performance of Generate backend data structure: time 0.02811/0.7383, allocations: 3.213 MB / 0.4979 GB, free: 7 MB / 386.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.496e-05/0.7384, allocations: 8.031 kB / 0.498 GB, free: 6.992 MB / 386.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01846/0.7569, allocations: 1.825 MB / 0.4997 GB, free: 5.16 MB / 386.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02042/0.7773, allocations: 4.825 MB / 0.5044 GB, free: 288 kB / 386.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002125/0.7776, allocations: 71.91 kB / 0.5045 GB, free: 216 kB / 386.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001564/0.7792, allocations: 135.9 kB / 0.5046 GB, free: 80 kB / 386.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01213/0.7913, allocations: 4.193 MB / 0.5087 GB, free: 11.88 MB / 402.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01733/0.8087, allocations: 6.446 MB / 0.515 GB, free: 4.582 MB / 402.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001582/0.8089, allocations: 47.53 kB / 0.5151 GB, free: 4.535 MB / 402.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007293/0.8097, allocations: 24 kB / 0.5151 GB, free: 4.512 MB / 402.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00202/0.8117, allocations: 0.7841 MB / 0.5159 GB, free: 3.727 MB / 402.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.224/1.036, allocations: 33.49 MB / 0.5486 GB, free: 43.68 MB / 402.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0048/1.041, allocations: 2.258 MB / 0.5508 GB, free: 43.01 MB / 402.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00295/1.044, allocations: 1.342 MB / 0.5521 GB, free: 42.97 MB / 402.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001787/1.045, allocations: 0.6315 MB / 0.5527 GB, free: 42.41 MB / 402.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.667e-05/1.046, allocations: 54.78 kB / 0.5528 GB, free: 42.37 MB / 402.8 MB Notification: Performance of pre-optimization done (n=122): time 7.505e-06/1.046, allocations: 0 / 0.5528 GB, free: 42.37 MB / 402.8 MB Notification: Performance of matching and sorting (n=136): time 0.1064/1.152, allocations: 22.85 MB / 0.5751 GB, free: 39.99 MB / 402.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.205e-05/1.152, allocations: 171.1 kB / 0.5752 GB, free: 39.8 MB / 402.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006254/1.158, allocations: 2.348 MB / 0.5775 GB, free: 39.53 MB / 402.8 MB Notification: Performance of collectPreVariables (initialization): time 0.000553/1.159, allocations: 31.42 kB / 0.5776 GB, free: 39.49 MB / 402.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001733/1.161, allocations: 1.996 MB / 0.5795 GB, free: 38.35 MB / 402.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.00122/1.162, allocations: 0.5548 MB / 0.58 GB, free: 38.04 MB / 402.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006654/1.163, allocations: 1.188 kB / 0.5801 GB, free: 38.04 MB / 402.8 MB Notification: Performance of setup shared object (initialization): time 0.0003822/1.163, allocations: 0.5238 MB / 0.5806 GB, free: 37.71 MB / 402.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005615/1.169, allocations: 2.085 MB / 0.5826 GB, free: 37.7 MB / 402.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00795/1.177, allocations: 5.085 MB / 0.5876 GB, free: 33.71 MB / 402.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.03135/1.208, allocations: 6.986 MB / 0.5944 GB, free: 32.12 MB / 402.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001515/1.208, allocations: 31.62 kB / 0.5944 GB, free: 32.12 MB / 402.8 MB Notification: Performance of matching and sorting (n=651) (initialization): time 0.05708/1.265, allocations: 11.86 MB / 0.606 GB, free: 29.18 MB / 402.8 MB Notification: Performance of prepare postOptimizeDAE: time 2.7e-05/1.266, allocations: 7.234 kB / 0.606 GB, free: 29.18 MB / 402.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04549/1.311, allocations: 7.738 MB / 0.6136 GB, free: 27.6 MB / 402.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02064/1.332, allocations: 2.013 MB / 0.6155 GB, free: 27.32 MB / 402.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007619/1.339, allocations: 1.131 MB / 0.6166 GB, free: 27.19 MB / 402.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004704/1.344, allocations: 3.401 MB / 0.6199 GB, free: 24.29 MB / 402.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007447/1.352, allocations: 320.3 kB / 0.6203 GB, free: 24.06 MB / 402.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001525/1.353, allocations: 316.3 kB / 0.6206 GB, free: 23.76 MB / 402.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 490 * Number of states: 0 () * Number of discrete variables: 18 (body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[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 (599): * Single equations (assignments): 584 * Array equations: 7 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 8 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 6 {(3,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 2 {4,4} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001537/1.355, allocations: 300.5 kB / 0.6208 GB, free: 23.47 MB / 402.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008628/1.356, allocations: 240.9 kB / 0.6211 GB, free: 23.23 MB / 402.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001414/1.357, allocations: 348.9 kB / 0.6214 GB, free: 22.91 MB / 402.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.04216/1.399, allocations: 7.607 MB / 0.6288 GB, free: 16.05 MB / 402.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.125e-05/1.399, allocations: 4 kB / 0.6288 GB, free: 16.04 MB / 402.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.463e-05/1.399, allocations: 3.984 kB / 0.6288 GB, free: 16.04 MB / 402.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01364/1.413, allocations: 4.631 MB / 0.6334 GB, free: 11.38 MB / 402.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.867e-05/1.413, allocations: 4 kB / 0.6334 GB, free: 11.38 MB / 402.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002663/1.416, allocations: 223.7 kB / 0.6336 GB, free: 11.16 MB / 402.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01676/1.433, allocations: 2.066 MB / 0.6356 GB, free: 9.07 MB / 402.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000555/1.433, allocations: 35.95 kB / 0.6356 GB, free: 9.035 MB / 402.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01395/1.447, allocations: 8.41 MB / 0.6438 GB, free: 188 kB / 402.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002679/1.45, allocations: 2.72 MB / 0.6465 GB, free: 13.22 MB / 418.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.05222/1.502, allocations: 10.87 MB / 0.6571 GB, free: 2.285 MB / 418.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001116/1.503, allocations: 317.8 kB / 0.6574 GB, free: 1.953 MB / 418.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001081/1.504, allocations: 23.89 kB / 0.6574 GB, free: 1.93 MB / 418.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003945/1.508, allocations: 139.5 kB / 0.6576 GB, free: 1.797 MB / 418.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005781/1.509, allocations: 63.88 kB / 0.6576 GB, free: 1.734 MB / 418.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002737/1.509, allocations: 47.97 kB / 0.6577 GB, free: 1.688 MB / 418.8 MB Notification: Performance of sort global known variables: time 0.004182/1.514, allocations: 1.569 MB / 0.6592 GB, free: 112 kB / 418.8 MB Notification: Performance of remove unused functions: time 0.006984/1.521, allocations: 0.8219 MB / 0.66 GB, free: 15.29 MB / 434.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 24 ($STATESET140237618376297.x[3],$STATESET140237618376297.x[2],$STATESET140237618376297.x[1],body2.frame_a.r_0[1],body2.frame_a.r_0[2],body2.frame_a.r_0[3],body2.v_0[1],body2.v_0[2],body2.v_0[3],body2.w_a[1],body2.w_a[2],body2.w_a[3],$STATESET140237618376296.x[3],$STATESET140237618376296.x[2],$STATESET140237618376296.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]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (92): * Single equations (assignments): 81 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 6 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 4 {(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 2 {4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008617/1.521, allocations: 180.8 kB / 0.6602 GB, free: 15.12 MB / 434.8 MB Notification: Performance of simCode: created initialization part: time 0.02074/1.542, allocations: 6.266 MB / 0.6663 GB, free: 8.723 MB / 434.8 MB Notification: Performance of simCode: created event and clocks part: time 1.121e-05/1.542, allocations: 4 kB / 0.6663 GB, free: 8.719 MB / 434.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01086/1.553, allocations: 2.962 MB / 0.6692 GB, free: 5.625 MB / 434.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002882/1.556, allocations: 231 kB / 0.6694 GB, free: 5.402 MB / 434.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1681/1.724, allocations: 7.134 MB / 0.6764 GB, free: 158.9 MB / 434.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005508/1.73, allocations: 2.586 MB / 0.6789 GB, free: 158.1 MB / 434.8 MB Notification: Performance of SimCode: time 1.884e-06/1.73, allocations: 0 / 0.6789 GB, free: 158.1 MB / 434.8 MB Notification: Performance of Templates: time 0.191/1.921, allocations: 129.1 MB / 0.805 GB, free: 72.96 MB / 434.8 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/PointGravity/PointGravity.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches