Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.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.PointGravityWithPointMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body1.r_0.1.|body1.r_0.2.|body1.r_0.3.|body1.v_0.1.|body1.v_0.2.|body1.v_0.3.|body2.r_0.1.|body2.r_0.2.|body2.r_0.3.|body2.v_0.1.|body2.v_0.2.|body2.v_0.3.|body3.r_0.1.|body3.r_0.2.|body3.r_0.3.|body3.v_0.1.|body3.v_0.2.|body3.v_0.3.|body4.r_0.1.|body4.r_0.2.|body4.r_0.3.|body4.v_0.1.|body4.v_0.2.|body4.v_0.3.",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body1.r_0.1.|body1.r_0.2.|body1.r_0.3.|body1.v_0.1.|body1.v_0.2.|body1.v_0.3.|body2.r_0.1.|body2.r_0.2.|body2.r_0.3.|body2.v_0.1.|body2.v_0.2.|body2.v_0.3.|body3.r_0.1.|body3.r_0.2.|body3.r_0.3.|body3.v_0.1.|body3.v_0.2.|body3.v_0.3.|body4.r_0.1.|body4.r_0.2.|body4.r_0.3.|body4.v_0.1.|body4.v_0.2.|body4.v_0.3.",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001693/0.001693, allocations: 110.8 kB / 17.74 MB, free: 5.191 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.001964/0.001964, allocations: 192.4 kB / 18.67 MB, free: 4.266 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.357/1.357, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001093/0.001093, allocations: 43.94 kB / 352 MB, free: 3.242 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2693/0.2704, allocations: 49.44 MB / 401.4 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.008989/0.2795, allocations: 7.974 MB / 409.4 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005004/0.2845, allocations: 2.512 MB / 411.9 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001178/0.2857, allocations: 35.88 kB / 411.9 MB, free: 14.31 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003061/0.2888, allocations: 1.433 MB / 413.4 MB, free: 12.87 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002658/0.2915, allocations: 0.984 MB / 414.4 MB, free: 11.88 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007728/0.2923, allocations: 267.4 kB / 414.6 MB, free: 11.62 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002944/0.2953, allocations: 2.192 MB / 416.8 MB, free: 9.422 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002119/0.2974, allocations: 1.545 MB / 418.4 MB, free: 7.848 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00132/0.2988, allocations: 0.8328 MB / 419.2 MB, free: 7.012 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00176/0.3005, allocations: 1.191 MB / 420.4 MB, free: 5.816 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005204/0.3011, allocations: 156 kB / 420.5 MB, free: 5.664 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001567/0.3026, allocations: 0.6669 MB / 421.2 MB, free: 4.996 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001272/0.3039, allocations: 1.169 MB / 422.4 MB, free: 3.824 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001967/0.3059, allocations: 1.374 MB / 423.7 MB, free: 2.441 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005761/0.3117, allocations: 4.308 MB / 428 MB, free: 14.12 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.813e-06/0.3117, allocations: 0 / 428 MB, free: 14.12 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.3117, allocations: 0 / 428 MB, free: 14.12 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.000179/0.3119, allocations: 0 / 428 MB, free: 14.12 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: 1113 * Number of variables: 1113 Notification: Performance of Generate backend data structure: time 0.006276/0.3182, allocations: 2.968 MB / 431 MB, free: 11.09 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.115e-05/0.3183, allocations: 8.031 kB / 431 MB, free: 11.08 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00691/0.3252, allocations: 1.783 MB / 432.8 MB, free: 9.293 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002343/0.3275, allocations: 1.158 MB / 434 MB, free: 8.094 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000133/0.3277, allocations: 151.8 kB / 434.1 MB, free: 7.945 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004489/0.3282, allocations: 203.9 kB / 434.3 MB, free: 7.746 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01737/0.3455, allocations: 8.596 MB / 442.9 MB, free: 14.55 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.533e-05/0.3456, allocations: 47.59 kB / 443 MB, free: 14.5 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002718/0.3459, allocations: 99.88 kB / 443 MB, free: 14.4 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002676/0.3486, allocations: 1.671 MB / 444.7 MB, free: 12.73 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01669/0.3653, allocations: 7.163 MB / 451.9 MB, free: 5.566 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03393/0.3993, allocations: 30.11 MB / 482 MB, free: 6.574 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02233/0.4216, allocations: 5.048 MB / 487 MB, free: 1.348 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001635/0.4233, allocations: 1.236 MB / 488.3 MB, free: 92 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005944/0.4293, allocations: 3.749 MB / 492 MB, free: 12.19 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.92e-05/0.4294, allocations: 46.89 kB / 492.1 MB, free: 12.14 MB / 414.1 MB Notification: Performance of pre-optimization done (n=111): time 3.617e-06/0.4294, allocations: 4 kB / 492.1 MB, free: 12.13 MB / 414.1 MB Notification: Performance of matching and sorting (n=111): time 0.04563/0.475, allocations: 9.259 MB / 0.4896 GB, free: 2.785 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001046/0.4752, allocations: 195.9 kB / 0.4898 GB, free: 2.551 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005081/0.4802, allocations: 3.036 MB / 0.4927 GB, free: 15.5 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001751/0.4805, allocations: 41.7 kB / 0.4928 GB, free: 15.45 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001804/0.4823, allocations: 2.422 MB / 0.4951 GB, free: 12.99 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006573/0.4829, allocations: 0.4902 MB / 0.4956 GB, free: 12.49 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001766/0.4847, allocations: 1.091 MB / 0.4967 GB, free: 11.39 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001015/0.4848, allocations: 301.1 kB / 0.497 GB, free: 11.09 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002446/0.4873, allocations: 1.603 MB / 0.4985 GB, free: 9.484 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005062/0.4924, allocations: 5.177 MB / 0.5036 GB, free: 2.504 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007854/0.5002, allocations: 7.325 MB / 0.5107 GB, free: 9.395 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001094/0.5004, allocations: 36 kB / 0.5108 GB, free: 9.359 MB / 446.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.01077/0.5112, allocations: 6.431 MB / 0.5171 GB, free: 2.926 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001344/0.5114, allocations: 64.06 kB / 0.5171 GB, free: 2.863 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001881/0.5116, allocations: 128 kB / 0.5172 GB, free: 2.738 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001841/0.5117, allocations: 168 kB / 0.5174 GB, free: 2.574 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005056/0.5168, allocations: 1.454 MB / 0.5188 GB, free: 1.117 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002314/0.5171, allocations: 251 kB / 0.5191 GB, free: 0.8711 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003987/0.5211, allocations: 0.746 MB / 0.5198 GB, free: 120 kB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007389/0.5218, allocations: 340 kB / 0.5201 GB, free: 15.79 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 580 * Number of states: 0 () * Number of discrete variables: 30 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],body4.sphereColor[3],body4.sphereColor[2],body4.sphereColor[1],body3.sphereColor[3],body3.sphereColor[2],body3.sphereColor[1],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 (681): * Single equations (assignments): 678 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002577/0.5244, allocations: 1.586 MB / 0.5217 GB, free: 14.18 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005872/0.525, allocations: 249.1 kB / 0.5219 GB, free: 13.94 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001515/0.5266, allocations: 0.833 MB / 0.5227 GB, free: 13.1 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.284e-05/0.5266, allocations: 15.94 kB / 0.5227 GB, free: 13.08 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.043e-05/0.5266, allocations: 4 kB / 0.5227 GB, free: 13.08 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.379e-05/0.5266, allocations: 7.922 kB / 0.5227 GB, free: 13.07 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006371/0.533, allocations: 3.38 MB / 0.526 GB, free: 9.629 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-05/0.5331, allocations: 4 kB / 0.526 GB, free: 9.625 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002287/0.5354, allocations: 407.5 kB / 0.5264 GB, free: 9.227 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.501e-05/0.5354, allocations: 4 kB / 0.5264 GB, free: 9.223 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001288/0.5355, allocations: 39.97 kB / 0.5265 GB, free: 9.184 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.544e-06/0.5355, allocations: 7.938 kB / 0.5265 GB, free: 9.176 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.5356, allocations: 4 kB / 0.5265 GB, free: 9.172 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003257/0.5388, allocations: 2.781 MB / 0.5292 GB, free: 6.359 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005446/0.5394, allocations: 305.6 kB / 0.5295 GB, free: 6.039 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003828/0.5398, allocations: 31.98 kB / 0.5295 GB, free: 6.008 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001043/0.5408, allocations: 39.95 kB / 0.5296 GB, free: 5.969 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001264/0.541, allocations: 55.92 kB / 0.5296 GB, free: 5.914 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.881e-05/0.5411, allocations: 35.98 kB / 0.5296 GB, free: 5.879 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002922/0.544, allocations: 1.841 MB / 0.5314 GB, free: 4.035 MB / 462.1 MB Notification: Performance of sort global known variables: time 4.31e-07/0.544, allocations: 0 / 0.5314 GB, free: 4.035 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0041/0.5481, allocations: 0.826 MB / 0.5323 GB, free: 3.207 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 24 (body1.r_0[1],body1.r_0[2],body1.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body2.r_0[1],body2.r_0[2],body2.r_0[3],body2.v_0[1],body2.v_0[2],body2.v_0[3],body3.r_0[1],body3.r_0[2],body3.r_0[3],body3.v_0[1],body3.v_0[2],body3.v_0[3],body4.r_0[1],body4.r_0[2],body4.r_0[3],body4.v_0[1],body4.v_0[2],body4.v_0[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 (87): * Single equations (assignments): 84 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004459/0.5486, allocations: 175.6 kB / 0.5324 GB, free: 3.027 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.1931/0.7417, allocations: 3.611 MB / 0.5359 GB, free: 131.8 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.486e-06/0.7418, allocations: 0.625 kB / 0.5359 GB, free: 131.8 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001289/0.7431, allocations: 0.7179 MB / 0.5366 GB, free: 131.8 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002133/0.7452, allocations: 255.7 kB / 0.5369 GB, free: 131.8 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01026/0.7555, allocations: 7.387 MB / 0.5441 GB, free: 128.4 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001874/0.7574, allocations: 2.393 MB / 0.5464 GB, free: 127.3 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006578/0.7581, allocations: 234.6 kB / 0.5467 GB, free: 127.3 MB / 462.1 MB Notification: Performance of SimCode: time 9.02e-07/0.7581, allocations: 0 / 0.5467 GB, free: 127.3 MB / 462.1 MB Notification: Performance of Templates: time 0.04712/0.8053, allocations: 40.64 MB / 0.5864 GB, free: 89.91 MB / 462.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PointGravityWithPointMasses/PointGravityWithPointMasses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches