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.001025/0.001025, allocations: 112.7 kB / 17.75 MB, free: 5.332 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.001019/0.001019, allocations: 183 kB / 18.68 MB, free: 4.41 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.299/1.299, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009189/0.0009189, allocations: 43.92 kB / 352 MB, free: 3.238 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2079/0.2088, allocations: 49.44 MB / 401.4 MB, free: 8.738 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.007946/0.2168, allocations: 7.962 MB / 409.4 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003564/0.2204, allocations: 2.524 MB / 411.9 MB, free: 14.32 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003495/0.2207, allocations: 35.94 kB / 411.9 MB, free: 14.29 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002399/0.2231, allocations: 1.429 MB / 413.4 MB, free: 12.85 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001563/0.2247, allocations: 1.019 MB / 414.4 MB, free: 11.83 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004707/0.2252, allocations: 263.5 kB / 414.6 MB, free: 11.57 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001964/0.2272, allocations: 2.194 MB / 416.8 MB, free: 9.371 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001381/0.2286, allocations: 1.552 MB / 418.4 MB, free: 7.793 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006878/0.2293, allocations: 0.8367 MB / 419.2 MB, free: 6.953 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001221/0.2305, allocations: 1.187 MB / 420.4 MB, free: 5.762 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00024/0.2307, allocations: 160 kB / 420.6 MB, free: 5.605 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001018/0.2318, allocations: 0.6669 MB / 421.2 MB, free: 4.938 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008414/0.2326, allocations: 1.169 MB / 422.4 MB, free: 3.766 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009962/0.2336, allocations: 1.378 MB / 423.8 MB, free: 2.379 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003322/0.237, allocations: 4.306 MB / 428.1 MB, free: 14.06 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.237, allocations: 4 kB / 428.1 MB, free: 14.05 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.237, allocations: 0 / 428.1 MB, free: 14.05 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.317e-05/0.237, allocations: 0 / 428.1 MB, free: 14.05 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.003616/0.2406, allocations: 2.96 MB / 431.1 MB, free: 11.03 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.624e-05/0.2407, allocations: 8.031 kB / 431.1 MB, free: 11.02 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006853/0.2475, allocations: 1.771 MB / 432.8 MB, free: 9.246 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002045/0.2496, allocations: 1.165 MB / 434 MB, free: 8.039 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.303e-05/0.2497, allocations: 151.8 kB / 434.2 MB, free: 7.891 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003379/0.2501, allocations: 207.9 kB / 434.4 MB, free: 7.688 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0164/0.2665, allocations: 8.588 MB / 442.9 MB, free: 14.5 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.706e-05/0.2666, allocations: 43.59 kB / 443 MB, free: 14.45 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002635/0.2668, allocations: 103.8 kB / 443.1 MB, free: 14.35 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002769/0.2696, allocations: 1.682 MB / 444.8 MB, free: 12.67 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01599/0.2856, allocations: 7.155 MB / 451.9 MB, free: 5.512 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0288/0.3144, allocations: 30.11 MB / 482 MB, free: 6.52 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02326/0.3377, allocations: 5.052 MB / 487.1 MB, free: 1.293 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001454/0.3392, allocations: 1.236 MB / 488.3 MB, free: 36 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004886/0.3441, allocations: 3.749 MB / 492.1 MB, free: 12.14 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.247e-05/0.3441, allocations: 54.83 kB / 492.1 MB, free: 12.07 MB / 414.1 MB Notification: Performance of pre-optimization done (n=111): time 3.236e-06/0.3441, allocations: 0 / 492.1 MB, free: 12.07 MB / 414.1 MB Notification: Performance of matching and sorting (n=111): time 0.0478/0.3919, allocations: 9.255 MB / 0.4896 GB, free: 2.73 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.671e-05/0.392, allocations: 191.9 kB / 0.4898 GB, free: 2.5 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003544/0.3956, allocations: 3.043 MB / 0.4928 GB, free: 15.44 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 7.07e-05/0.3957, allocations: 37.7 kB / 0.4928 GB, free: 15.39 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001458/0.3971, allocations: 2.422 MB / 0.4952 GB, free: 12.93 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003953/0.3975, allocations: 0.4979 MB / 0.4957 GB, free: 12.43 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001198/0.3987, allocations: 1.083 MB / 0.4967 GB, free: 11.34 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.834e-05/0.3988, allocations: 301.1 kB / 0.497 GB, free: 11.04 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002179/0.401, allocations: 1.603 MB / 0.4986 GB, free: 9.43 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004261/0.4053, allocations: 5.173 MB / 0.5036 GB, free: 2.453 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006953/0.4123, allocations: 7.318 MB / 0.5108 GB, free: 9.352 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.679e-05/0.4123, allocations: 36 kB / 0.5108 GB, free: 9.316 MB / 446.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.009115/0.4215, allocations: 6.443 MB / 0.5171 GB, free: 2.871 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.558e-05/0.4215, allocations: 60 kB / 0.5172 GB, free: 2.812 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001351/0.4217, allocations: 128 kB / 0.5173 GB, free: 2.688 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001493/0.4218, allocations: 172.1 kB / 0.5174 GB, free: 2.52 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004674/0.4265, allocations: 1.454 MB / 0.5189 GB, free: 1.062 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001794/0.4267, allocations: 251 kB / 0.5191 GB, free: 0.8164 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002934/0.4297, allocations: 0.746 MB / 0.5198 GB, free: 64 kB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003825/0.43, allocations: 344 kB / 0.5202 GB, free: 15.73 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.001773/0.4318, allocations: 1.579 MB / 0.5217 GB, free: 14.13 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003652/0.4322, allocations: 252.7 kB / 0.5219 GB, free: 13.88 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001198/0.4334, allocations: 0.8252 MB / 0.5227 GB, free: 13.05 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.13e-05/0.4334, allocations: 3.984 kB / 0.5228 GB, free: 13.05 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.843e-06/0.4334, allocations: 7.938 kB / 0.5228 GB, free: 13.04 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004211/0.4339, allocations: 301.6 kB / 0.523 GB, free: 12.72 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002861/0.4342, allocations: 35.98 kB / 0.5231 GB, free: 12.69 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008995/0.4351, allocations: 35.95 kB / 0.5231 GB, free: 12.65 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001288/0.4352, allocations: 67.84 kB / 0.5232 GB, free: 12.59 MB / 462.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.004207/0.4394, allocations: 2.173 MB / 0.5253 GB, free: 10.4 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.003045/0.4425, allocations: 2.882 MB / 0.5281 GB, free: 7.492 MB / 462.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0007849/0.4433, allocations: 0.6563 MB / 0.5288 GB, free: 6.836 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002169/0.4455, allocations: 1.841 MB / 0.5306 GB, free: 4.992 MB / 462.1 MB Notification: Performance of Backend: time 6.01e-07/0.4455, allocations: 0 / 0.5306 GB, free: 4.992 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004948/0.4504, allocations: 3.197 MB / 0.5337 GB, free: 1.82 MB / 462.1 MB Notification: Performance of SimCode: time 0.1867/0.6371, allocations: 7.402 MB / 0.5409 GB, free: 120.6 MB / 462.1 MB Notification: Performance of Templates: time 0.04093/0.6781, allocations: 28.3 MB / 0.5685 GB, free: 99.35 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