Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007734/0.0007734, allocations: 93.17 kB / 17.31 MB, free: 5.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008162/0.0008163, allocations: 176.6 kB / 18.21 MB, free: 5.246 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.102/1.102, allocations: 223.3 MB / 242.3 MB, free: 220 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002074/0.0002078, allocations: 17.22 kB / 302.1 MB, free: 6.137 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06885/0.06907, allocations: 50.41 MB / 352.5 MB, free: 3.719 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity): time 0.01053/0.07961, allocations: 13.38 MB / 365.9 MB, free: 6.281 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00621/0.08583, allocations: 4.246 MB / 370.1 MB, free: 2.023 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001095/0.08694, allocations: 51.88 kB / 370.2 MB, free: 1.973 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005566/0.08751, allocations: 266.8 kB / 370.4 MB, free: 1.711 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002181/0.0897, allocations: 1.316 MB / 371.7 MB, free: 400 kB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.1179/0.2076, allocations: 461 kB / 372.2 MB, free: 9.27 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004098/0.2117, allocations: 4.116 MB / 376.3 MB, free: 9.262 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000777/0.2125, allocations: 0.5379 MB / 376.9 MB, free: 9.055 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001106/0.2137, allocations: 0.6859 MB / 377.5 MB, free: 9.047 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001783/0.2154, allocations: 1.312 MB / 378.9 MB, free: 8.906 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004133/0.2159, allocations: 83.53 kB / 378.9 MB, free: 8.906 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001592/0.2175, allocations: 0.9633 MB / 379.9 MB, free: 8.906 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001036/0.2185, allocations: 1.071 MB / 381 MB, free: 8.785 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001158/0.2197, allocations: 1.216 MB / 382.2 MB, free: 8.277 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002339/0.222, allocations: 2.999 MB / 385.2 MB, free: 7.668 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.976e-06/0.222, allocations: 0 / 385.2 MB, free: 7.668 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.2221, allocations: 1 kB / 385.2 MB, free: 7.668 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.809e-05/0.2221, allocations: 0 / 385.2 MB, free: 7.668 MB / 302.1 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.004178/0.2263, allocations: 2.699 MB / 387.9 MB, free: 5.941 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.057e-05/0.2263, allocations: 12.69 kB / 387.9 MB, free: 5.938 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006776/0.2331, allocations: 1.939 MB / 389.8 MB, free: 5.039 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001832/0.2349, allocations: 1.634 MB / 391.5 MB, free: 4.387 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.983e-05/0.235, allocations: 112.5 kB / 391.6 MB, free: 4.383 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007358/0.2358, allocations: 305.7 kB / 391.9 MB, free: 4.336 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01001/0.2458, allocations: 8.244 MB / 400.1 MB, free: 14.84 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.883e-05/0.2458, allocations: 41.14 kB / 400.2 MB, free: 14.81 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002295/0.2461, allocations: 78.12 kB / 400.2 MB, free: 14.77 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001917/0.248, allocations: 1.395 MB / 401.6 MB, free: 13.39 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0144/0.2624, allocations: 9.531 MB / 411.2 MB, free: 4.016 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02577/0.2882, allocations: 30.59 MB / 441.7 MB, free: 4.777 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01039/0.2986, allocations: 4.426 MB / 446.2 MB, free: 196 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002323/0.3009, allocations: 2.124 MB / 448.3 MB, free: 14.06 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.414e-05/0.301, allocations: 18.05 kB / 448.3 MB, free: 14.05 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.554e-05/0.301, allocations: 50.48 kB / 448.4 MB, free: 13.99 MB / 366.1 MB Notification: Performance of pre-optimization done (n=122): time 2.775e-06/0.301, allocations: 0 / 448.4 MB, free: 13.99 MB / 366.1 MB Notification: Performance of matching and sorting (n=136): time 0.04013/0.3412, allocations: 18.4 MB / 466.8 MB, free: 11.31 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001807/0.343, allocations: 3.055 MB / 469.8 MB, free: 7.93 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003286/0.3463, allocations: 2.99 MB / 472.8 MB, free: 4.918 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001548/0.3464, allocations: 41.7 kB / 472.9 MB, free: 4.871 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001171/0.3476, allocations: 2.076 MB / 474.9 MB, free: 2.801 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005106/0.3481, allocations: 0.5628 MB / 475.5 MB, free: 2.242 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005209/0.3487, allocations: 423.2 kB / 475.9 MB, free: 1.824 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.221e-05/0.3488, allocations: 301.1 kB / 476.2 MB, free: 1.527 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003349/0.3521, allocations: 2.637 MB / 478.8 MB, free: 14.88 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00491/0.357, allocations: 5.588 MB / 484.4 MB, free: 7.824 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00853/0.3656, allocations: 8.633 MB / 493.1 MB, free: 13.75 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.354e-05/0.3656, allocations: 28 kB / 493.1 MB, free: 13.72 MB / 414.1 MB Notification: Performance of matching and sorting (n=644) (initialization): time 0.028/0.3936, allocations: 11.77 MB / 0.493 GB, free: 1.914 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.298e-05/0.3937, allocations: 48 kB / 0.4931 GB, free: 1.867 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02133/0.415, allocations: 7.018 MB / 0.4999 GB, free: 10.82 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02129/0.4363, allocations: 4.538 MB / 0.5044 GB, free: 6.25 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003271/0.4396, allocations: 1.252 MB / 0.5056 GB, free: 4.996 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01422/0.4539, allocations: 11.47 MB / 0.5168 GB, free: 8.996 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00362/0.4575, allocations: 0.5766 MB / 0.5173 GB, free: 8.422 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004042/0.4579, allocations: 315.9 kB / 0.5176 GB, free: 8.113 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 475 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (592): * Single equations (assignments): 577 * Array equations: 7 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 6 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 4 systems {(4,100.0%), (3,100.0%), (4,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 2 systems {4, 4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,1,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001734/0.4596, allocations: 1.416 MB / 0.519 GB, free: 6.684 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004192/0.4601, allocations: 252.7 kB / 0.5193 GB, free: 6.434 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008443/0.4609, allocations: 419 kB / 0.5197 GB, free: 6.016 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01086/0.4718, allocations: 5.01 MB / 0.5246 GB, free: 0.9688 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.319e-05/0.4718, allocations: 7.938 kB / 0.5246 GB, free: 0.9609 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.439e-05/0.4718, allocations: 16.19 kB / 0.5246 GB, free: 0.9453 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1458/0.6177, allocations: 5.337 MB / 0.5298 GB, free: 133.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.256e-05/0.6177, allocations: 1.031 kB / 0.5298 GB, free: 133.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001676/0.6194, allocations: 375.8 kB / 0.5302 GB, free: 133.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008043/0.6274, allocations: 2.379 MB / 0.5325 GB, free: 133.1 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002546/0.6277, allocations: 56.81 kB / 0.5325 GB, free: 133.1 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007462/0.6352, allocations: 8.844 MB / 0.5412 GB, free: 128 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001159/0.6364, allocations: 2.889 MB / 0.544 GB, free: 125.3 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01351/0.6499, allocations: 8.775 MB / 0.5526 GB, free: 123.3 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005528/0.6504, allocations: 336.7 kB / 0.5529 GB, free: 123.2 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003993/0.6508, allocations: 40.69 kB / 0.5529 GB, free: 123.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001917/0.6528, allocations: 321.3 kB / 0.5532 GB, free: 123.2 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003153/0.6531, allocations: 99.23 kB / 0.5533 GB, free: 123.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001394/0.6532, allocations: 54.88 kB / 0.5534 GB, free: 123.2 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002045/0.6553, allocations: 1.864 MB / 0.5552 GB, free: 122.6 MB / 446.1 MB Notification: Performance of sort global known variables: time 6.61e-07/0.6553, allocations: 0 / 0.5552 GB, free: 122.6 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003157/0.6585, allocations: 1.016 MB / 0.5562 GB, free: 122.5 MB / 446.1 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 () * Number of clocked 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 (not torn): 6 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 4 systems {(3,100.0%), (4,100.0%), (3,100.0%), (4,100.0%)} * Non-linear Jacobian (size): 2 systems {4, 4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,1,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003596/0.6588, allocations: 171.3 kB / 0.5563 GB, free: 122.4 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008714/0.6675, allocations: 7.404 MB / 0.5636 GB, free: 119 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.6676, allocations: 0 / 0.5636 GB, free: 119 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004728/0.6723, allocations: 3.621 MB / 0.5671 GB, free: 115.3 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001911/0.6742, allocations: 296.8 kB / 0.5674 GB, free: 115 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008509/0.6827, allocations: 9.882 MB / 0.577 GB, free: 105.1 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001526/0.6843, allocations: 2.283 MB / 0.5793 GB, free: 102.8 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008534/0.6851, allocations: 243.3 kB / 0.5795 GB, free: 102.6 MB / 446.1 MB Notification: Performance of SimCode: time 2.5e-07/0.6851, allocations: 0 / 0.5795 GB, free: 102.6 MB / 446.1 MB Notification: Performance of Templates: time 0.2192/0.9043, allocations: 144.6 MB / 0.7207 GB, free: 147.3 MB / 462.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PointGravity/PointGravity.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches