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/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 3.2.3+maint.om/package.mo", uses=false) 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 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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001248/0.001248, allocations: 101 kB / 16.94 MB, free: 5.98 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.001408/0.001409, allocations: 178.1 kB / 17.82 MB, free: 5.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.421/1.421, allocations: 205.4 MB / 224 MB, free: 13.17 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004222/0.0004223, allocations: 12 kB / 280.8 MB, free: 3.73 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08426/0.08469, allocations: 47.57 MB / 328.3 MB, free: 4.086 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity): time 0.01172/0.09646, allocations: 11.88 MB / 340.2 MB, free: 8.164 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.008066/0.1046, allocations: 4.058 MB / 344.3 MB, free: 4.098 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002187/0.1068, allocations: 51.88 kB / 344.3 MB, free: 4.047 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001756/0.1086, allocations: 0.5405 MB / 344.9 MB, free: 3.504 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006391/0.115, allocations: 1.991 MB / 346.9 MB, free: 1.508 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001299/0.1163, allocations: 427.3 kB / 347.3 MB, free: 1.09 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003276/0.1196, allocations: 1.743 MB / 349 MB, free: 15.34 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009932/0.1206, allocations: 0.5194 MB / 349.5 MB, free: 14.78 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001304/0.1219, allocations: 0.658 MB / 350.2 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001676/0.1236, allocations: 0.9659 MB / 351.2 MB, free: 13.15 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005329/0.1242, allocations: 84 kB / 351.2 MB, free: 13.07 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001799/0.126, allocations: 0.7918 MB / 352 MB, free: 12.28 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001317/0.1273, allocations: 0.9858 MB / 353 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007936/0.1281, allocations: 0.4923 MB / 353.5 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003418/0.1316, allocations: 3.02 MB / 356.5 MB, free: 7.762 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.571e-06/0.1316, allocations: 0 / 356.5 MB, free: 7.762 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1316, allocations: 3.938 kB / 356.5 MB, free: 7.758 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001475/0.1317, allocations: 0 / 356.5 MB, free: 7.758 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.006699/0.1384, allocations: 2.788 MB / 359.3 MB, free: 4.91 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.627e-05/0.1385, allocations: 12.03 kB / 359.3 MB, free: 4.898 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009233/0.1477, allocations: 2.258 MB / 361.6 MB, free: 2.633 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004277/0.152, allocations: 2.097 MB / 363.7 MB, free: 0.4922 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001251/0.1522, allocations: 110.6 kB / 363.8 MB, free: 392 kB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001233/0.1534, allocations: 307.5 kB / 364.1 MB, free: 84 kB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0188/0.1722, allocations: 8.606 MB / 372.7 MB, free: 6.91 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001283/0.1724, allocations: 39.66 kB / 372.7 MB, free: 6.871 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007998/0.1732, allocations: 75.89 kB / 372.8 MB, free: 6.797 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002464/0.1757, allocations: 1.401 MB / 374.2 MB, free: 5.395 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1928/0.3685, allocations: 9.9 MB / 384.1 MB, free: 29.84 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03186/0.4004, allocations: 30.71 MB / 414.8 MB, free: 12.57 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01073/0.4112, allocations: 4.504 MB / 419.3 MB, free: 10.84 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.052e-05/0.4113, allocations: 16.92 kB / 419.3 MB, free: 10.84 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.523e-05/0.4113, allocations: 48.03 kB / 419.4 MB, free: 10.8 MB / 318.1 MB Notification: Performance of pre-optimization done (n=122): time 3.005e-06/0.4113, allocations: 4 kB / 419.4 MB, free: 10.8 MB / 318.1 MB Notification: Performance of matching and sorting (n=136): time 0.04356/0.4549, allocations: 18.96 MB / 438.4 MB, free: 9.375 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002278/0.4572, allocations: 3.091 MB / 441.5 MB, free: 5.977 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004308/0.4616, allocations: 3.225 MB / 444.7 MB, free: 2.734 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006918/0.4623, allocations: 43.11 kB / 444.7 MB, free: 2.688 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001557/0.4638, allocations: 2.097 MB / 446.8 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009002/0.4648, allocations: 0.5586 MB / 447.4 MB, free: 52 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003154/0.4651, allocations: 97.97 kB / 447.5 MB, free: 15.96 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002908/0.4654, allocations: 0.5143 MB / 448 MB, free: 15.44 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004011/0.4694, allocations: 2.645 MB / 450.6 MB, free: 12.79 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006246/0.4757, allocations: 5.578 MB / 456.2 MB, free: 5.789 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005649/0.4814, allocations: 3.701 MB / 459.9 MB, free: 2.184 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.185e-05/0.4814, allocations: 32 kB / 459.9 MB, free: 2.152 MB / 350.1 MB Notification: Performance of matching and sorting (n=636) (initialization): time 0.03266/0.5141, allocations: 11.78 MB / 471.7 MB, free: 6.781 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.001e-05/0.5142, allocations: 52 kB / 471.8 MB, free: 6.73 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02312/0.5373, allocations: 7.044 MB / 478.8 MB, free: 15.66 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0256/0.563, allocations: 4.558 MB / 483.4 MB, free: 11.07 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006648/0.5697, allocations: 1.236 MB / 484.6 MB, free: 9.828 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01942/0.5891, allocations: 12.07 MB / 496.7 MB, free: 13.23 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005101/0.5943, allocations: 0.581 MB / 497.3 MB, free: 12.65 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007456/0.595, allocations: 317.2 kB / 497.6 MB, free: 12.34 MB / 398.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 (584): * Single equations (assignments): 569 * 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.002387/0.5974, allocations: 1.411 MB / 499 MB, free: 10.93 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005378/0.598, allocations: 268.6 kB / 499.2 MB, free: 10.66 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008512/0.5988, allocations: 419.3 kB / 499.7 MB, free: 10.25 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01183/0.6107, allocations: 5.009 MB / 0.4928 GB, free: 5.203 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.366e-05/0.6107, allocations: 4 kB / 0.4928 GB, free: 5.199 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.172e-05/0.6108, allocations: 11.97 kB / 0.4928 GB, free: 5.188 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009451/0.6202, allocations: 5.38 MB / 0.4981 GB, free: 15.77 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.017e-05/0.6203, allocations: 0 / 0.4981 GB, free: 15.77 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001787/0.6221, allocations: 371.4 kB / 0.4985 GB, free: 15.4 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008664/0.6307, allocations: 2.388 MB / 0.5008 GB, free: 12.99 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006361/0.6314, allocations: 49.59 kB / 0.5008 GB, free: 12.94 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00939/0.6408, allocations: 9.007 MB / 0.5096 GB, free: 3.414 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001964/0.6428, allocations: 2.911 MB / 0.5125 GB, free: 224 kB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01767/0.6605, allocations: 8.854 MB / 0.5211 GB, free: 7.273 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00101/0.6616, allocations: 345.5 kB / 0.5214 GB, free: 6.914 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000625/0.6622, allocations: 35.94 kB / 0.5215 GB, free: 6.879 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0022/0.6644, allocations: 317 kB / 0.5218 GB, free: 6.57 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003974/0.6648, allocations: 103.8 kB / 0.5219 GB, free: 6.469 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000172/0.665, allocations: 51.95 kB / 0.5219 GB, free: 6.418 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003177/0.6682, allocations: 2.055 MB / 0.5239 GB, free: 4.359 MB / 430.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.6682, allocations: 3.938 kB / 0.5239 GB, free: 4.355 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.004816/0.673, allocations: 1.027 MB / 0.5249 GB, free: 3.336 MB / 430.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 (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.0006405/0.6737, allocations: 185 kB / 0.5251 GB, free: 3.148 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.1625/0.8362, allocations: 7.337 MB / 0.5323 GB, free: 146.1 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.701e-06/0.8363, allocations: 5.062 kB / 0.5323 GB, free: 146.1 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006823/0.8431, allocations: 3.621 MB / 0.5358 GB, free: 145.2 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001905/0.845, allocations: 292 kB / 0.5361 GB, free: 145.2 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01317/0.8582, allocations: 9.312 MB / 0.5452 GB, free: 141 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00179/0.8601, allocations: 2.359 MB / 0.5475 GB, free: 140 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.003636/0.8637, allocations: 1.673 MB / 0.5491 GB, free: 139.9 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007571/0.8645, allocations: 197.7 kB / 0.5493 GB, free: 139.8 MB / 430.1 MB Notification: Performance of SimCode: time 1.001e-06/0.8645, allocations: 3.688 kB / 0.5493 GB, free: 139.8 MB / 430.1 MB Notification: Performance of Templates: time 0.05185/0.9163, allocations: 43.85 MB / 0.5922 GB, free: 102 MB / 430.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: 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