Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009793/0.0009794, allocations: 172.9 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.619/1.619, allocations: 205.2 MB / 219.8 MB, free: 14.2 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.0008727/0.000873, allocations: 86.64 kB / 268 MB, free: 14.03 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 5.119e-05/5.122e-05, allocations: 8 kB / 322.5 MB, free: 17.33 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1156/0.1157, allocations: 47.57 MB / 370 MB, free: 1.695 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4093/0.5251, allocations: 87.15 MB / 457.2 MB, free: 6.27 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002931/0.5254, allocations: 85.77 kB / 457.3 MB, free: 6.227 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1596/0.6851, allocations: 60.21 MB / 0.5053 GB, free: 10.95 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.987e-06/0.6851, allocations: 0 / 0.5053 GB, free: 10.95 MB / 394.7 MB Notification: Performance of Transformations before backend: time 9.181e-05/0.6852, allocations: 51.94 kB / 0.5054 GB, free: 10.9 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: 911 * Number of variables: 911 Notification: Performance of Generate backend data structure: time 0.01524/0.7005, allocations: 3.456 MB / 0.5088 GB, free: 7.387 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.371e-05/0.7005, allocations: 12.03 kB / 0.5088 GB, free: 7.375 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01173/0.7123, allocations: 2.348 MB / 0.5111 GB, free: 5.02 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01354/0.7259, allocations: 4.875 MB / 0.5158 GB, free: 96 kB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002739/0.7262, allocations: 176.4 kB / 0.516 GB, free: 15.92 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001559/0.7278, allocations: 231.8 kB / 0.5162 GB, free: 15.69 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01897/0.7467, allocations: 8.479 MB / 0.5245 GB, free: 6.352 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001093/0.7469, allocations: 51.47 kB / 0.5246 GB, free: 6.301 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004322/0.7473, allocations: 119.9 kB / 0.5247 GB, free: 6.184 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001108/0.7484, allocations: 0.7302 MB / 0.5254 GB, free: 5.449 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2592/1.008, allocations: 9.443 MB / 0.5346 GB, free: 103.2 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03929/1.047, allocations: 37.84 MB / 0.5716 GB, free: 78.95 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01082/1.058, allocations: 4.022 MB / 0.5755 GB, free: 77.6 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003109/1.061, allocations: 2.201 MB / 0.5776 GB, free: 76.72 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001164/1.061, allocations: 15.72 kB / 0.5777 GB, free: 76.72 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.907e-05/1.061, allocations: 56.23 kB / 0.5777 GB, free: 76.67 MB / 410.7 MB Notification: Performance of pre-optimization done (n=122): time 4.819e-06/1.061, allocations: 0 / 0.5777 GB, free: 76.67 MB / 410.7 MB Notification: Performance of matching and sorting (n=136): time 0.04191/1.103, allocations: 14.51 MB / 0.5919 GB, free: 72.43 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00183/1.105, allocations: 3.06 MB / 0.5949 GB, free: 69.39 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007255/1.112, allocations: 2.639 MB / 0.5974 GB, free: 68.45 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008109/1.113, allocations: 46.17 kB / 0.5975 GB, free: 68.41 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001668/1.115, allocations: 2.09 MB / 0.5995 GB, free: 66.9 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001199/1.116, allocations: 0.5604 MB / 0.6001 GB, free: 66.5 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008559/1.117, allocations: 92.94 kB / 0.6002 GB, free: 66.43 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0004478/1.117, allocations: 0.5062 MB / 0.6007 GB, free: 66.04 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00364/1.121, allocations: 2.297 MB / 0.6029 GB, free: 65.3 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005016/1.126, allocations: 5.194 MB / 0.608 GB, free: 60.64 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004653/1.131, allocations: 3.378 MB / 0.6113 GB, free: 59.48 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.396e-05/1.131, allocations: 32.03 kB / 0.6113 GB, free: 59.48 MB / 410.7 MB Notification: Performance of matching and sorting (n=630) (initialization): time 0.01945/1.15, allocations: 9.251 MB / 0.6203 GB, free: 52.25 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001314/1.151, allocations: 56.92 kB / 0.6204 GB, free: 52.2 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0112/1.162, allocations: 4.648 MB / 0.6249 GB, free: 48.71 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008793/1.171, allocations: 2.356 MB / 0.6272 GB, free: 47.2 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004388/1.175, allocations: 1.172 MB / 0.6284 GB, free: 46.21 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00698/1.182, allocations: 8.112 MB / 0.6363 GB, free: 37.9 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005966/1.188, allocations: 0.5745 MB / 0.6369 GB, free: 37.32 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001442/1.19, allocations: 300 kB / 0.6371 GB, free: 37.03 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 469 * 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 (578): * Single equations (assignments): 563 * Array equations: 7 * 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 prepare postOptimizeDAE: time 0.002144/1.192, allocations: 467.1 kB / 0.6376 GB, free: 36.57 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001037/1.193, allocations: 264.9 kB / 0.6378 GB, free: 36.3 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001542/1.194, allocations: 415.5 kB / 0.6382 GB, free: 35.89 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01085/1.205, allocations: 4.563 MB / 0.6427 GB, free: 31.3 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.367e-05/1.205, allocations: 7.938 kB / 0.6427 GB, free: 31.29 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.252e-05/1.205, allocations: 11.94 kB / 0.6427 GB, free: 31.28 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01087/1.216, allocations: 5.335 MB / 0.6479 GB, free: 25.89 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.345e-05/1.216, allocations: 7.938 kB / 0.6479 GB, free: 25.89 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001666/1.218, allocations: 279.5 kB / 0.6482 GB, free: 25.61 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008481/1.226, allocations: 2.366 MB / 0.6505 GB, free: 23.22 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006236/1.227, allocations: 45.28 kB / 0.6506 GB, free: 23.18 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00774/1.235, allocations: 8.831 MB / 0.6592 GB, free: 13.82 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001441/1.236, allocations: 2.892 MB / 0.662 GB, free: 10.65 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01568/1.252, allocations: 8.094 MB / 0.6699 GB, free: 2.469 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00115/1.253, allocations: 337.6 kB / 0.6702 GB, free: 2.117 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001172/1.254, allocations: 31.98 kB / 0.6703 GB, free: 2.086 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0027/1.257, allocations: 272.7 kB / 0.6705 GB, free: 1.82 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005666/1.258, allocations: 103.8 kB / 0.6706 GB, free: 1.719 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002687/1.258, allocations: 43.97 kB / 0.6707 GB, free: 1.676 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003842/1.262, allocations: 1.829 MB / 0.6724 GB, free: 15.84 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.21e-07/1.262, allocations: 0 / 0.6724 GB, free: 15.84 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005846/1.268, allocations: 0.9478 MB / 0.6734 GB, free: 14.9 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 24 ($STATESET2.x[3],$STATESET2.x[2],$STATESET2.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],$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]) * 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.000709/1.268, allocations: 181.3 kB / 0.6735 GB, free: 14.73 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01249/1.281, allocations: 6.678 MB / 0.6801 GB, free: 7.93 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.372e-06/1.281, allocations: 4 kB / 0.6801 GB, free: 7.926 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006775/1.288, allocations: 3.388 MB / 0.6834 GB, free: 4.395 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00239/1.29, allocations: 284.8 kB / 0.6836 GB, free: 4.117 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2381/1.528, allocations: 7.43 MB / 0.6909 GB, free: 107.9 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003012/1.531, allocations: 2.354 MB / 0.6932 GB, free: 107.1 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.005406/1.537, allocations: 1.63 MB / 0.6948 GB, free: 107.1 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001019/1.538, allocations: 191.4 kB / 0.695 GB, free: 107.1 MB / 426.7 MB Notification: Performance of SimCode: time 1.543e-06/1.538, allocations: 0 / 0.695 GB, free: 107.1 MB / 426.7 MB Notification: Performance of Templates: time 0.06239/1.6, allocations: 36.18 MB / 0.7303 GB, free: 103.7 MB / 426.7 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity_res.mat","/var/lib/jenkins/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_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches