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.001347/0.001347, allocations: 117.7 kB / 17.7 MB, free: 5.305 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.001551/0.001551, allocations: 191 kB / 18.63 MB, free: 4.379 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.358/1.358, allocations: 222.9 MB / 242.3 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009884/0.0009885, allocations: 47.39 kB / 302.1 MB, free: 5.176 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1002/0.1012, allocations: 49.45 MB / 351.5 MB, free: 3.703 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.008597/0.1098, allocations: 7.963 MB / 359.5 MB, free: 11.69 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004303/0.1142, allocations: 2.516 MB / 362 MB, free: 9.164 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005505/0.1147, allocations: 31.94 kB / 362 MB, free: 9.133 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002558/0.1173, allocations: 1.429 MB / 363.5 MB, free: 7.699 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002055/0.1194, allocations: 0.9878 MB / 364.4 MB, free: 6.707 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005988/0.12, allocations: 267.3 kB / 364.7 MB, free: 6.445 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002399/0.1224, allocations: 2.184 MB / 366.9 MB, free: 4.258 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001644/0.1241, allocations: 1.56 MB / 368.4 MB, free: 2.676 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000963/0.1251, allocations: 0.8444 MB / 369.3 MB, free: 1.828 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001353/0.1264, allocations: 1.183 MB / 370.5 MB, free: 0.6406 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002845/0.1267, allocations: 160 kB / 370.6 MB, free: 496 kB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1548/0.2816, allocations: 0.668 MB / 371.3 MB, free: 12.33 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001477/0.2831, allocations: 1.159 MB / 372.5 MB, free: 12.33 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0013/0.2844, allocations: 1.377 MB / 373.8 MB, free: 11.85 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005038/0.2895, allocations: 4.306 MB / 378.1 MB, free: 11.15 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.2895, allocations: 0 / 378.1 MB, free: 11.15 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.395e-06/0.2895, allocations: 0 / 378.1 MB, free: 11.15 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001097/0.2896, allocations: 1.406 kB / 378.1 MB, free: 11.15 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.005594/0.2952, allocations: 2.96 MB / 381.1 MB, free: 9.789 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.441e-05/0.2953, allocations: 10.06 kB / 381.1 MB, free: 9.789 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006591/0.3019, allocations: 1.78 MB / 382.9 MB, free: 9.598 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002567/0.3045, allocations: 1.149 MB / 384 MB, free: 9.199 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001468/0.3046, allocations: 154.9 kB / 384.2 MB, free: 9.195 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004425/0.3051, allocations: 209.6 kB / 384.4 MB, free: 9.188 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01763/0.3227, allocations: 8.607 MB / 393 MB, free: 5.219 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.539e-05/0.3228, allocations: 40.2 kB / 393 MB, free: 5.211 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002833/0.3231, allocations: 103.5 kB / 393.1 MB, free: 5.172 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002338/0.3255, allocations: 1.663 MB / 394.8 MB, free: 4.531 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01509/0.3406, allocations: 7.178 MB / 402 MB, free: 15.81 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03873/0.3793, allocations: 30.07 MB / 432.1 MB, free: 1.199 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02202/0.4014, allocations: 5.05 MB / 437.1 MB, free: 12 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001603/0.403, allocations: 1.245 MB / 438.4 MB, free: 10.73 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005712/0.4087, allocations: 3.74 MB / 442.1 MB, free: 6.867 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.463e-05/0.4088, allocations: 54.08 kB / 442.1 MB, free: 6.809 MB / 350.1 MB Notification: Performance of pre-optimization done (n=111): time 3.907e-06/0.4088, allocations: 4 kB / 442.2 MB, free: 6.805 MB / 350.1 MB Notification: Performance of matching and sorting (n=111): time 0.0433/0.4521, allocations: 9.245 MB / 451.4 MB, free: 13.49 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.996e-05/0.4522, allocations: 191.3 kB / 451.6 MB, free: 13.26 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004168/0.4564, allocations: 3.035 MB / 454.6 MB, free: 10.21 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001849/0.4566, allocations: 41.7 kB / 454.7 MB, free: 10.16 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001679/0.4583, allocations: 2.429 MB / 457.1 MB, free: 7.738 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006583/0.459, allocations: 0.4907 MB / 457.6 MB, free: 7.25 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001293/0.4603, allocations: 1.089 MB / 458.7 MB, free: 6.152 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.666e-05/0.4604, allocations: 310.1 kB / 459 MB, free: 5.848 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002082/0.4625, allocations: 1.596 MB / 460.6 MB, free: 4.246 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004075/0.4666, allocations: 5.172 MB / 465.7 MB, free: 13.34 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007544/0.4741, allocations: 7.329 MB / 473.1 MB, free: 4.496 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.092e-05/0.4742, allocations: 40 kB / 473.1 MB, free: 4.457 MB / 382.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.01072/0.485, allocations: 6.438 MB / 479.5 MB, free: 14.02 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.036e-05/0.4851, allocations: 56 kB / 479.6 MB, free: 13.96 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001192/0.4852, allocations: 128 kB / 479.7 MB, free: 13.84 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001429/0.4853, allocations: 168 kB / 479.9 MB, free: 13.68 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004694/0.49, allocations: 1.455 MB / 481.3 MB, free: 12.22 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001778/0.4902, allocations: 251 kB / 481.6 MB, free: 11.97 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0036/0.4938, allocations: 0.7527 MB / 482.3 MB, free: 11.21 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004369/0.4943, allocations: 344 kB / 482.7 MB, free: 10.88 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.002107/0.4964, allocations: 1.575 MB / 484.3 MB, free: 9.289 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004006/0.4968, allocations: 248.7 kB / 484.5 MB, free: 9.043 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001179/0.498, allocations: 0.8339 MB / 485.3 MB, free: 8.199 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.327e-05/0.498, allocations: 15.98 kB / 485.3 MB, free: 8.184 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.227e-06/0.4981, allocations: 7.938 kB / 485.4 MB, free: 8.176 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.113e-05/0.4981, allocations: 7.922 kB / 485.4 MB, free: 8.168 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005619/0.5037, allocations: 3.376 MB / 488.7 MB, free: 4.754 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.332e-06/0.5037, allocations: 0 / 488.7 MB, free: 4.754 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002286/0.506, allocations: 409.7 kB / 489.1 MB, free: 4.355 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.115e-05/0.5061, allocations: 19.92 kB / 489.2 MB, free: 4.336 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.622e-05/0.5061, allocations: 31.92 kB / 489.2 MB, free: 4.305 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.817e-06/0.5062, allocations: 7.984 kB / 489.2 MB, free: 4.297 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.24e-06/0.5062, allocations: 4 kB / 489.2 MB, free: 4.293 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002984/0.5092, allocations: 2.784 MB / 492 MB, free: 1.492 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005513/0.5097, allocations: 297.7 kB / 492.3 MB, free: 1.18 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002504/0.51, allocations: 35.28 kB / 492.3 MB, free: 1.148 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000884/0.5109, allocations: 39.95 kB / 492.3 MB, free: 1.109 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001295/0.511, allocations: 63.84 kB / 492.4 MB, free: 1.047 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.667e-05/0.5111, allocations: 31.98 kB / 492.4 MB, free: 1.016 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002415/0.5135, allocations: 1.841 MB / 494.3 MB, free: 15.17 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.5135, allocations: 4 kB / 494.3 MB, free: 15.17 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003977/0.5175, allocations: 0.83 MB / 495.1 MB, free: 14.34 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.0005082/0.518, allocations: 174.4 kB / 495.3 MB, free: 14.16 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00595/0.524, allocations: 3.612 MB / 498.9 MB, free: 10.57 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 9.047e-06/0.524, allocations: 0 / 498.9 MB, free: 10.57 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009387/0.525, allocations: 0.7176 MB / 499.6 MB, free: 9.855 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001862/0.5269, allocations: 269.2 kB / 499.9 MB, free: 9.602 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01133/0.5382, allocations: 7.053 MB / 0.4951 GB, free: 2.516 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002406/0.5406, allocations: 2.39 MB / 0.4974 GB, free: 100 kB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.003555/0.5442, allocations: 1.641 MB / 0.499 GB, free: 14.45 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004575/0.5447, allocations: 183.4 kB / 0.4992 GB, free: 14.27 MB / 430.1 MB Notification: Performance of SimCode: time 1.212e-06/0.5447, allocations: 4 kB / 0.4992 GB, free: 14.27 MB / 430.1 MB Notification: Performance of Templates: time 0.03868/0.5834, allocations: 17.08 MB / 0.5158 GB, free: 13.41 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 gbode -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