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.001145/0.001145, allocations: 109.9 kB / 17.74 MB, free: 5.348 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.001185/0.001185, allocations: 193.5 kB / 18.67 MB, free: 4.426 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.373/1.373, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001154/0.001155, allocations: 52.08 kB / 352 MB, free: 3.234 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.293/0.2942, allocations: 49.43 MB / 401.4 MB, free: 8.727 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity): time 0.008844/0.303, allocations: 6.982 MB / 408.4 MB, free: 1.84 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00624/0.3093, allocations: 3.095 MB / 411.5 MB, free: 14.74 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001195/0.3106, allocations: 35.88 kB / 411.5 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001899/0.3125, allocations: 0.6575 MB / 412.2 MB, free: 14.04 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003659/0.3162, allocations: 1.401 MB / 413.6 MB, free: 12.63 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001153/0.3174, allocations: 499.1 kB / 414.1 MB, free: 12.14 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004262/0.3217, allocations: 3.115 MB / 417.2 MB, free: 9.023 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009601/0.3227, allocations: 443.2 kB / 417.6 MB, free: 8.578 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001398/0.3241, allocations: 0.8055 MB / 418.4 MB, free: 7.77 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001904/0.326, allocations: 1.207 MB / 419.6 MB, free: 6.559 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005494/0.3266, allocations: 128 kB / 419.8 MB, free: 6.434 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002129/0.3287, allocations: 0.9671 MB / 420.7 MB, free: 5.465 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00133/0.3301, allocations: 1.075 MB / 421.8 MB, free: 4.387 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001949/0.332, allocations: 1.226 MB / 423 MB, free: 3.152 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004704/0.3367, allocations: 4.041 MB / 427.1 MB, free: 15.1 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.439e-06/0.3368, allocations: 4 kB / 427.1 MB, free: 15.1 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.3368, allocations: 0 / 427.1 MB, free: 15.1 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.188e-05/0.3369, allocations: 0 / 427.1 MB, free: 15.1 MB / 350.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.006748/0.3436, allocations: 3.197 MB / 430.3 MB, free: 11.84 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.6e-05/0.3437, allocations: 16.03 kB / 430.3 MB, free: 11.82 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008384/0.3521, allocations: 1.885 MB / 432.2 MB, free: 9.934 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00357/0.3557, allocations: 1.652 MB / 433.8 MB, free: 8.234 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001407/0.3558, allocations: 114.6 kB / 433.9 MB, free: 8.121 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001255/0.3571, allocations: 303.5 kB / 434.2 MB, free: 7.824 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0175/0.3746, allocations: 8.226 MB / 442.5 MB, free: 15.03 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001477/0.3748, allocations: 39.73 kB / 442.5 MB, free: 14.99 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008259/0.3757, allocations: 79.88 kB / 442.6 MB, free: 14.91 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002689/0.3784, allocations: 1.401 MB / 444 MB, free: 13.5 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01913/0.3975, allocations: 9.534 MB / 453.5 MB, free: 3.961 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04109/0.4387, allocations: 30.53 MB / 484 MB, free: 4.57 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01259/0.4513, allocations: 4.383 MB / 488.4 MB, free: 28 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003404/0.4547, allocations: 2.113 MB / 490.5 MB, free: 13.89 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000107/0.4549, allocations: 13.06 kB / 490.6 MB, free: 13.88 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.66e-05/0.4549, allocations: 50.5 kB / 490.6 MB, free: 13.82 MB / 414.1 MB Notification: Performance of pre-optimization done (n=122): time 3.697e-06/0.4549, allocations: 0 / 490.6 MB, free: 13.82 MB / 414.1 MB Notification: Performance of matching and sorting (n=136): time 0.04939/0.5043, allocations: 18.32 MB / 0.497 GB, free: 11.23 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002419/0.5068, allocations: 3.231 MB / 0.5001 GB, free: 7.66 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004776/0.5116, allocations: 2.982 MB / 0.5031 GB, free: 4.656 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005186/0.5121, allocations: 41.7 kB / 0.5031 GB, free: 4.609 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001771/0.5139, allocations: 2.075 MB / 0.5051 GB, free: 2.504 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001159/0.5151, allocations: 0.5671 MB / 0.5057 GB, free: 1.93 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002851/0.518, allocations: 1.023 MB / 0.5067 GB, free: 0.8945 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001092/0.5181, allocations: 301.1 kB / 0.507 GB, free: 0.5977 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004387/0.5225, allocations: 2.633 MB / 0.5095 GB, free: 13.96 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006512/0.529, allocations: 5.581 MB / 0.515 GB, free: 6.898 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01099/0.5401, allocations: 8.627 MB / 0.5234 GB, free: 12.81 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.259e-05/0.5402, allocations: 32 kB / 0.5234 GB, free: 12.78 MB / 462.1 MB Notification: Performance of matching and sorting (n=644) (initialization): time 0.03518/0.5754, allocations: 11.77 MB / 0.5349 GB, free: 0.9688 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001209/0.5755, allocations: 52 kB / 0.535 GB, free: 0.918 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.2143/0.7899, allocations: 7.011 MB / 0.5418 GB, free: 127.5 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02209/0.812, allocations: 4.538 MB / 0.5463 GB, free: 127.2 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004178/0.8162, allocations: 1.247 MB / 0.5475 GB, free: 127.2 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01461/0.8309, allocations: 12.54 MB / 0.5597 GB, free: 116.8 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00502/0.8359, allocations: 0.5744 MB / 0.5603 GB, free: 116.2 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009921/0.8369, allocations: 319.9 kB / 0.5606 GB, free: 115.9 MB / 462.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.002124/0.8391, allocations: 1.42 MB / 0.562 GB, free: 114.6 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007127/0.8398, allocations: 253.8 kB / 0.5622 GB, free: 114.5 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006908/0.8405, allocations: 411 kB / 0.5626 GB, free: 114.1 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01046/0.851, allocations: 5.017 MB / 0.5675 GB, free: 109 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.93e-05/0.8511, allocations: 4 kB / 0.5675 GB, free: 109 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.616e-05/0.8511, allocations: 10.95 kB / 0.5675 GB, free: 109 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007872/0.859, allocations: 5.352 MB / 0.5728 GB, free: 103.7 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.896e-06/0.859, allocations: 0 / 0.5728 GB, free: 103.7 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001656/0.8607, allocations: 371.4 kB / 0.5731 GB, free: 103.3 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007888/0.8686, allocations: 2.387 MB / 0.5754 GB, free: 100.9 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003274/0.8689, allocations: 43.95 kB / 0.5755 GB, free: 100.9 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007401/0.8764, allocations: 9.437 MB / 0.5847 GB, free: 90.96 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001378/0.8778, allocations: 3.066 MB / 0.5877 GB, free: 87.62 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01512/0.8929, allocations: 8.769 MB / 0.5963 GB, free: 78.96 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008076/0.8937, allocations: 323.7 kB / 0.5966 GB, free: 78.66 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008317/0.8946, allocations: 35.92 kB / 0.5966 GB, free: 78.62 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002487/0.8971, allocations: 326.2 kB / 0.5969 GB, free: 78.31 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005022/0.8976, allocations: 111.2 kB / 0.597 GB, free: 78.2 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002221/0.8978, allocations: 55.95 kB / 0.5971 GB, free: 78.15 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002689/0.9005, allocations: 1.865 MB / 0.5989 GB, free: 76.28 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.9006, allocations: 3 kB / 0.5989 GB, free: 76.28 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004057/0.9046, allocations: 1.003 MB / 0.5999 GB, free: 75.28 MB / 462.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.0005443/0.9052, allocations: 178 kB / 0.6 GB, free: 75.11 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01082/0.916, allocations: 7.467 MB / 0.6073 GB, free: 67.52 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.08e-06/0.916, allocations: 0 / 0.6073 GB, free: 67.52 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005876/0.9219, allocations: 3.653 MB / 0.6109 GB, free: 63.73 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002891/0.9248, allocations: 300.8 kB / 0.6112 GB, free: 63.45 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01124/0.9361, allocations: 8.387 MB / 0.6194 GB, free: 55.02 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002114/0.9383, allocations: 2.293 MB / 0.6216 GB, free: 52.7 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001354/0.9396, allocations: 239.3 kB / 0.6218 GB, free: 52.46 MB / 462.1 MB Notification: Performance of SimCode: time 7.41e-07/0.9397, allocations: 0 / 0.6218 GB, free: 52.46 MB / 462.1 MB Notification: Performance of Templates: time 0.3397/1.279, allocations: 146 MB / 0.7644 GB, free: 167.5 MB / 0.5137 GB 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