Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 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.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_3.2.3_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_3.2.3_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.001458/0.001458, allocations: 103.6 kB / 18.39 MB, free: 4.641 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.00138/0.00138, allocations: 187 kB / 19.33 MB, free: 3.715 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.451/1.451, allocations: 205.1 MB / 225.2 MB, free: 12.21 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.0012/0.0012, allocations: 51.94 kB / 329.2 MB, free: 3.289 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08312/0.08433, allocations: 46.62 MB / 375.8 MB, free: 4.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.1714/0.2557, allocations: 7.96 MB / 383.8 MB, free: 9.043 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00466/0.2604, allocations: 2.55 MB / 386.3 MB, free: 7.957 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000929/0.2615, allocations: 39.56 kB / 386.4 MB, free: 7.949 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002567/0.264, allocations: 1.429 MB / 387.8 MB, free: 7.328 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002372/0.2664, allocations: 0.9775 MB / 388.8 MB, free: 6.863 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007132/0.2671, allocations: 264.6 kB / 389 MB, free: 6.727 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003067/0.2702, allocations: 2.186 MB / 391.2 MB, free: 5.848 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001865/0.2721, allocations: 1.56 MB / 392.8 MB, free: 5.227 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001437/0.2736, allocations: 0.8377 MB / 393.6 MB, free: 4.871 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001906/0.2755, allocations: 1.189 MB / 394.8 MB, free: 4.41 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004725/0.276, allocations: 163.7 kB / 395 MB, free: 4.406 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001527/0.2775, allocations: 0.6488 MB / 395.6 MB, free: 4.254 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001253/0.2788, allocations: 1.161 MB / 396.8 MB, free: 3.852 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001401/0.2802, allocations: 1.381 MB / 398.2 MB, free: 2.855 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004518/0.2847, allocations: 4.294 MB / 402.5 MB, free: 464 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.673e-06/0.2848, allocations: 4.938 kB / 402.5 MB, free: 460 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.2848, allocations: 0 / 402.5 MB, free: 460 kB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001261/0.2849, allocations: 0 / 402.5 MB, free: 460 kB / 318.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.005888/0.2908, allocations: 2.959 MB / 405.4 MB, free: 14.27 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.541e-05/0.2909, allocations: 10.16 kB / 405.4 MB, free: 14.27 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007307/0.2982, allocations: 1.775 MB / 407.2 MB, free: 13.34 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002827/0.301, allocations: 1.157 MB / 408.4 MB, free: 12.52 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001364/0.3012, allocations: 159.8 kB / 408.5 MB, free: 12.44 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005584/0.3018, allocations: 209.3 kB / 408.7 MB, free: 12.36 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01917/0.3209, allocations: 8.594 MB / 417.3 MB, free: 5.293 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001007/0.3211, allocations: 39.66 kB / 417.4 MB, free: 5.254 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003559/0.3215, allocations: 104.9 kB / 417.5 MB, free: 5.152 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002909/0.3244, allocations: 1.667 MB / 419.1 MB, free: 3.484 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0182/0.3426, allocations: 7.171 MB / 426.3 MB, free: 12.31 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03765/0.3803, allocations: 30.11 MB / 456.4 MB, free: 13.31 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02243/0.4028, allocations: 5.037 MB / 461.4 MB, free: 8.098 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001793/0.4046, allocations: 1.244 MB / 462.7 MB, free: 6.832 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00629/0.4109, allocations: 3.746 MB / 466.4 MB, free: 2.938 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.606e-05/0.411, allocations: 54.81 kB / 466.5 MB, free: 2.875 MB / 382.1 MB Notification: Performance of pre-optimization done (n=111): time 4.93e-06/0.411, allocations: 0 / 466.5 MB, free: 2.875 MB / 382.1 MB Notification: Performance of matching and sorting (n=111): time 0.04528/0.4563, allocations: 9.256 MB / 475.7 MB, free: 9.531 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001017/0.4564, allocations: 195.8 kB / 475.9 MB, free: 9.297 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005393/0.4618, allocations: 3.043 MB / 479 MB, free: 6.234 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002454/0.4621, allocations: 37.7 kB / 479 MB, free: 6.191 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001981/0.4641, allocations: 2.418 MB / 481.4 MB, free: 3.734 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007501/0.4649, allocations: 0.5018 MB / 481.9 MB, free: 3.227 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002103/0.467, allocations: 1.087 MB / 483 MB, free: 2.129 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.939e-05/0.4671, allocations: 305.1 kB / 483.3 MB, free: 1.828 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002577/0.4697, allocations: 1.603 MB / 484.9 MB, free: 224 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004925/0.4746, allocations: 5.161 MB / 490.1 MB, free: 9.254 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008051/0.4827, allocations: 7.331 MB / 497.4 MB, free: 140 kB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001279/0.4829, allocations: 40 kB / 497.5 MB, free: 100 kB / 414.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.0122/0.4951, allocations: 6.431 MB / 0.4921 GB, free: 9.66 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001299/0.4953, allocations: 63.98 kB / 0.4921 GB, free: 9.598 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001909/0.4955, allocations: 124 kB / 0.4923 GB, free: 9.477 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001799/0.4957, allocations: 168 kB / 0.4924 GB, free: 9.312 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005112/0.5008, allocations: 1.454 MB / 0.4938 GB, free: 7.855 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002451/0.5011, allocations: 251 kB / 0.4941 GB, free: 7.609 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004126/0.5052, allocations: 0.7463 MB / 0.4948 GB, free: 6.855 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008465/0.5061, allocations: 356 kB / 0.4951 GB, free: 6.508 MB / 430.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.003036/0.5091, allocations: 1.575 MB / 0.4967 GB, free: 4.922 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005901/0.5097, allocations: 244.8 kB / 0.4969 GB, free: 4.68 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00166/0.5114, allocations: 0.8388 MB / 0.4977 GB, free: 3.832 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.214e-05/0.5114, allocations: 16 kB / 0.4977 GB, free: 3.816 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.226e-05/0.5115, allocations: 7.938 kB / 0.4978 GB, free: 3.809 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.286e-05/0.5115, allocations: 3.984 kB / 0.4978 GB, free: 3.805 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007462/0.5189, allocations: 3.388 MB / 0.5011 GB, free: 364 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.071e-05/0.519, allocations: 0 / 0.5011 GB, free: 364 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002382/0.5214, allocations: 415.4 kB / 0.5015 GB, free: 15.95 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.727e-05/0.5214, allocations: 4 kB / 0.5015 GB, free: 15.95 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001781/0.5216, allocations: 35.95 kB / 0.5015 GB, free: 15.91 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.085e-05/0.5216, allocations: 8 kB / 0.5015 GB, free: 15.9 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.806e-06/0.5216, allocations: 4 kB / 0.5015 GB, free: 15.9 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003427/0.5251, allocations: 2.777 MB / 0.5042 GB, free: 13.09 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007538/0.5258, allocations: 301.6 kB / 0.5045 GB, free: 12.78 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005398/0.5264, allocations: 31.98 kB / 0.5045 GB, free: 12.75 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001241/0.5277, allocations: 43.95 kB / 0.5046 GB, free: 12.7 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001409/0.5278, allocations: 55.86 kB / 0.5046 GB, free: 12.65 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.99e-05/0.5279, allocations: 31.98 kB / 0.5047 GB, free: 12.62 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003518/0.5314, allocations: 1.845 MB / 0.5065 GB, free: 10.77 MB / 446.1 MB Notification: Performance of sort global known variables: time 7.41e-07/0.5314, allocations: 0 / 0.5065 GB, free: 10.77 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004915/0.5364, allocations: 0.8337 MB / 0.5073 GB, free: 9.934 MB / 446.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.0005275/0.5369, allocations: 163.7 kB / 0.5074 GB, free: 9.766 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006056/0.543, allocations: 3.617 MB / 0.511 GB, free: 6.176 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.929e-06/0.543, allocations: 448 / 0.511 GB, free: 6.176 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001003/0.5441, allocations: 0.7142 MB / 0.5117 GB, free: 5.461 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002487/0.5466, allocations: 267 kB / 0.5119 GB, free: 5.203 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01458/0.5612, allocations: 7.382 MB / 0.5191 GB, free: 13.77 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003287/0.5645, allocations: 2.398 MB / 0.5215 GB, free: 11.34 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008092/0.5653, allocations: 231.4 kB / 0.5217 GB, free: 11.12 MB / 462.1 MB Notification: Performance of SimCode: time 8.62e-07/0.5653, allocations: 0 / 0.5217 GB, free: 11.12 MB / 462.1 MB Notification: Performance of Templates: time 0.2781/0.8434, allocations: 41.13 MB / 0.5619 GB, free: 138.4 MB / 478.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/PointGravityWithPointMasses/PointGravityWithPointMasses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches