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.001183/0.001184, allocations: 113.5 kB / 17.7 MB, free: 5.309 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.001134/0.001134, allocations: 191 kB / 18.63 MB, free: 4.375 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.351/1.351, allocations: 222.9 MB / 242.3 MB, free: 15.28 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00097/0.00097, allocations: 51.33 kB / 302.1 MB, free: 5.227 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09912/0.1001, allocations: 49.44 MB / 351.5 MB, free: 3.762 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.009314/0.1094, allocations: 7.962 MB / 359.5 MB, free: 11.75 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005314/0.1148, allocations: 2.524 MB / 362 MB, free: 9.215 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001079/0.1159, allocations: 39.88 kB / 362 MB, free: 9.176 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002649/0.1186, allocations: 1.425 MB / 363.5 MB, free: 7.746 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002498/0.1212, allocations: 0.9908 MB / 364.5 MB, free: 6.754 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006768/0.1218, allocations: 263.4 kB / 364.7 MB, free: 6.496 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002592/0.1244, allocations: 2.185 MB / 366.9 MB, free: 4.305 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001742/0.1262, allocations: 1.556 MB / 368.4 MB, free: 2.727 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001071/0.1273, allocations: 0.8367 MB / 369.3 MB, free: 1.887 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001451/0.1287, allocations: 1.191 MB / 370.5 MB, free: 0.6914 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003302/0.1291, allocations: 160 kB / 370.6 MB, free: 0.5352 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2301/0.3592, allocations: 0.662 MB / 371.3 MB, free: 12.38 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002479/0.3618, allocations: 1.159 MB / 372.5 MB, free: 12.38 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002737/0.3645, allocations: 1.378 MB / 373.8 MB, free: 11.9 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007614/0.3722, allocations: 4.307 MB / 378.1 MB, free: 11.2 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.56e-05/0.3722, allocations: 2.109 kB / 378.1 MB, free: 11.2 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.949e-06/0.3723, allocations: 0 / 378.1 MB, free: 11.2 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002562/0.3725, allocations: 0 / 378.1 MB, free: 11.2 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: 1113 * Number of variables: 1113 Notification: Performance of Generate backend data structure: time 0.00796/0.3805, allocations: 2.962 MB / 381.1 MB, free: 9.836 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.686e-05/0.3806, allocations: 9.125 kB / 381.1 MB, free: 9.836 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006918/0.3875, allocations: 1.777 MB / 382.9 MB, free: 9.645 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003205/0.3907, allocations: 1.154 MB / 384 MB, free: 9.246 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001282/0.3909, allocations: 157.1 kB / 384.2 MB, free: 9.242 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004713/0.3913, allocations: 213.5 kB / 384.4 MB, free: 9.234 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02093/0.4123, allocations: 8.598 MB / 393 MB, free: 5.277 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001184/0.4124, allocations: 45.45 kB / 393 MB, free: 5.27 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003372/0.4128, allocations: 103.2 kB / 393.1 MB, free: 5.23 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002686/0.4155, allocations: 1.671 MB / 394.8 MB, free: 4.582 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01693/0.4324, allocations: 7.165 MB / 402 MB, free: 15.88 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03903/0.4715, allocations: 30.08 MB / 432.1 MB, free: 1.266 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02104/0.4926, allocations: 5.044 MB / 437.1 MB, free: 12.06 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001987/0.4946, allocations: 1.243 MB / 438.3 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006538/0.5012, allocations: 3.744 MB / 442.1 MB, free: 6.934 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.861e-05/0.5012, allocations: 58.55 kB / 442.1 MB, free: 6.871 MB / 350.1 MB Notification: Performance of pre-optimization done (n=111): time 3.387e-06/0.5012, allocations: 0 / 442.1 MB, free: 6.871 MB / 350.1 MB Notification: Performance of matching and sorting (n=111): time 0.04277/0.544, allocations: 9.247 MB / 451.4 MB, free: 13.55 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001103/0.5442, allocations: 194.7 kB / 451.6 MB, free: 13.32 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004794/0.549, allocations: 3.035 MB / 454.6 MB, free: 10.27 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002203/0.5492, allocations: 45.69 kB / 454.7 MB, free: 10.22 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001788/0.551, allocations: 2.418 MB / 457.1 MB, free: 7.805 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005573/0.5516, allocations: 0.4943 MB / 457.6 MB, free: 7.316 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001318/0.5529, allocations: 1.094 MB / 458.7 MB, free: 6.215 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001927/0.5531, allocations: 305.1 kB / 459 MB, free: 5.914 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002184/0.5553, allocations: 1.599 MB / 460.6 MB, free: 4.309 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004609/0.5599, allocations: 5.172 MB / 465.7 MB, free: 13.4 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007985/0.5679, allocations: 7.329 MB / 473.1 MB, free: 4.578 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001395/0.5681, allocations: 36 kB / 473.1 MB, free: 4.543 MB / 382.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.01223/0.5803, allocations: 6.443 MB / 479.5 MB, free: 14.1 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.97e-05/0.5804, allocations: 56.19 kB / 479.6 MB, free: 14.05 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001304/0.5806, allocations: 132 kB / 479.7 MB, free: 13.92 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001703/0.5807, allocations: 168 kB / 479.9 MB, free: 13.75 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005088/0.5858, allocations: 1.454 MB / 481.4 MB, free: 12.3 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001975/0.5861, allocations: 251 kB / 481.6 MB, free: 12.05 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004916/0.591, allocations: 0.7497 MB / 482.3 MB, free: 11.3 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007303/0.5917, allocations: 344 kB / 482.7 MB, free: 10.96 MB / 398.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.00258/0.5943, allocations: 1.573 MB / 484.3 MB, free: 9.375 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004591/0.5948, allocations: 248.7 kB / 484.5 MB, free: 9.129 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001335/0.5961, allocations: 0.8341 MB / 485.3 MB, free: 8.285 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.305e-05/0.5962, allocations: 12 kB / 485.3 MB, free: 8.273 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.104e-05/0.5962, allocations: 4 kB / 485.3 MB, free: 8.27 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.201e-05/0.5962, allocations: 7.922 kB / 485.4 MB, free: 8.262 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006197/0.6024, allocations: 3.383 MB / 488.7 MB, free: 4.84 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.964e-06/0.6024, allocations: 0 / 488.7 MB, free: 4.84 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002307/0.6047, allocations: 411.5 kB / 489.1 MB, free: 4.438 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.367e-05/0.6048, allocations: 7.938 kB / 489.1 MB, free: 4.43 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.69e-05/0.6049, allocations: 36.59 kB / 489.2 MB, free: 4.395 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.975e-06/0.6049, allocations: 4 kB / 489.2 MB, free: 4.391 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.398e-06/0.6049, allocations: 4 kB / 489.2 MB, free: 4.387 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00339/0.6083, allocations: 2.788 MB / 492 MB, free: 1.586 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007497/0.6091, allocations: 301.6 kB / 492.3 MB, free: 1.27 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002572/0.6093, allocations: 37.47 kB / 492.3 MB, free: 1.234 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008963/0.6102, allocations: 35.34 kB / 492.3 MB, free: 1.203 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001351/0.6104, allocations: 67.84 kB / 492.4 MB, free: 1.137 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.827e-05/0.6105, allocations: 31.98 kB / 492.4 MB, free: 1.105 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002892/0.6134, allocations: 1.842 MB / 494.3 MB, free: 15.26 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.6134, allocations: 0 / 494.3 MB, free: 15.26 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.004044/0.6174, allocations: 0.8323 MB / 495.1 MB, free: 14.43 MB / 414.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.0005085/0.618, allocations: 178.2 kB / 495.3 MB, free: 14.25 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005814/0.6238, allocations: 3.609 MB / 498.9 MB, free: 10.66 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.6238, allocations: 0 / 498.9 MB, free: 10.66 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009171/0.6247, allocations: 0.7142 MB / 499.6 MB, free: 9.949 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001776/0.6265, allocations: 272.4 kB / 499.9 MB, free: 9.695 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0116/0.6381, allocations: 7.06 MB / 0.4951 GB, free: 2.602 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002451/0.6406, allocations: 2.387 MB / 0.4974 GB, free: 192 kB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.003479/0.6441, allocations: 1.631 MB / 0.499 GB, free: 14.55 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004324/0.6445, allocations: 191.4 kB / 0.4992 GB, free: 14.36 MB / 430.1 MB Notification: Performance of SimCode: time 8.92e-07/0.6446, allocations: 0 / 0.4992 GB, free: 14.36 MB / 430.1 MB Notification: Performance of Templates: time 0.03942/0.684, allocations: 17.09 MB / 0.5159 GB, free: 13.5 MB / 446.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 -s cvode -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