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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001308/0.001309, allocations: 123.5 kB / 18.41 MB, free: 4.684 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001362/0.001362, allocations: 192.3 kB / 21.35 MB, free: 1.75 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.399/1.399, allocations: 222.9 MB / 247 MB, free: 4.336 MB / 190.1 MB " [Timeout remaining time 178] 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=5002,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=5002,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") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001563/0.001564, allocations: 47.92 kB / 358.7 MB, free: 8.445 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09844/0.1, allocations: 49.44 MB / 408.1 MB, free: 6.957 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.00972/0.1098, allocations: 7.951 MB / 416.1 MB, free: 14.97 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00524/0.1151, allocations: 2.524 MB / 418.6 MB, free: 12.43 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008445/0.1159, allocations: 35.94 kB / 418.6 MB, free: 12.4 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002782/0.1187, allocations: 1.425 MB / 420 MB, free: 10.97 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002373/0.1212, allocations: 0.9955 MB / 421 MB, free: 9.969 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006631/0.1218, allocations: 263.4 kB / 421.3 MB, free: 9.711 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002939/0.1248, allocations: 2.188 MB / 423.5 MB, free: 7.52 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001847/0.1266, allocations: 1.552 MB / 425 MB, free: 5.938 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001048/0.1277, allocations: 0.8328 MB / 425.9 MB, free: 5.102 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001508/0.1292, allocations: 1.183 MB / 427.1 MB, free: 3.914 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003157/0.1295, allocations: 160 kB / 427.2 MB, free: 3.758 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001257/0.1308, allocations: 0.6708 MB / 427.9 MB, free: 3.086 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001104/0.1319, allocations: 1.169 MB / 429.1 MB, free: 1.914 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001344/0.1333, allocations: 1.374 MB / 430.4 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1955/0.3288, allocations: 4.325 MB / 434.8 MB, free: 7.465 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.042e-06/0.3289, allocations: 4.5 kB / 434.8 MB, free: 7.465 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.3289, allocations: 0 / 434.8 MB, free: 7.465 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.598e-05/0.329, allocations: 0 / 434.8 MB, free: 7.465 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.004189/0.3332, allocations: 3.031 MB / 437.8 MB, free: 6.031 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.489e-05/0.3332, allocations: 9.469 kB / 437.8 MB, free: 6.031 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006949/0.3402, allocations: 1.798 MB / 439.6 MB, free: 5.824 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002293/0.3425, allocations: 1.167 MB / 440.8 MB, free: 5.422 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001297/0.3426, allocations: 158 kB / 440.9 MB, free: 5.414 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004524/0.3431, allocations: 210.1 kB / 441.1 MB, free: 5.41 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01765/0.3608, allocations: 8.594 MB / 449.7 MB, free: 3.781 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.325e-05/0.3609, allocations: 35.2 kB / 449.8 MB, free: 3.777 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00029/0.3612, allocations: 107.8 kB / 449.9 MB, free: 3.777 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002744/0.3639, allocations: 1.67 MB / 451.5 MB, free: 3.762 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01659/0.3805, allocations: 7.163 MB / 458.7 MB, free: 2.691 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03761/0.4182, allocations: 30.16 MB / 488.8 MB, free: 6.488 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02366/0.4419, allocations: 5.047 MB / 493.9 MB, free: 1.285 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001926/0.4438, allocations: 1.249 MB / 495.1 MB, free: 28 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00609/0.45, allocations: 3.761 MB / 498.9 MB, free: 12.15 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.125e-05/0.45, allocations: 42.89 kB / 498.9 MB, free: 12.1 MB / 398.1 MB Notification: Performance of pre-optimization done (n=111): time 4.017e-06/0.45, allocations: 0 / 498.9 MB, free: 12.1 MB / 398.1 MB Notification: Performance of matching and sorting (n=111): time 0.04807/0.4981, allocations: 9.27 MB / 0.4963 GB, free: 2.766 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001255/0.4983, allocations: 195.8 kB / 0.4965 GB, free: 2.535 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004451/0.5027, allocations: 3.043 MB / 0.4995 GB, free: 15.48 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001794/0.5029, allocations: 41.7 kB / 0.4995 GB, free: 15.43 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001921/0.5049, allocations: 2.536 MB / 0.502 GB, free: 12.92 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006181/0.5055, allocations: 0.5154 MB / 0.5025 GB, free: 12.41 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001374/0.5069, allocations: 1.092 MB / 0.5035 GB, free: 11.31 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001217/0.507, allocations: 305.1 kB / 0.5038 GB, free: 11.01 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002337/0.5093, allocations: 1.607 MB / 0.5054 GB, free: 9.398 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005177/0.5145, allocations: 5.165 MB / 0.5105 GB, free: 2.496 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0086/0.5231, allocations: 7.331 MB / 0.5176 GB, free: 9.762 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.804e-05/0.5233, allocations: 36 kB / 0.5176 GB, free: 9.727 MB / 430.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.01127/0.5345, allocations: 6.453 MB / 0.5239 GB, free: 3.273 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.038e-05/0.5346, allocations: 60 kB / 0.524 GB, free: 3.215 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001468/0.5348, allocations: 130.1 kB / 0.5241 GB, free: 3.094 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000167/0.535, allocations: 168 kB / 0.5243 GB, free: 2.93 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005041/0.54, allocations: 1.458 MB / 0.5257 GB, free: 1.469 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000219/0.5403, allocations: 243 kB / 0.5259 GB, free: 1.23 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003706/0.544, allocations: 0.7716 MB / 0.5267 GB, free: 472 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006034/0.5446, allocations: 344.1 kB / 0.527 GB, free: 128 kB / 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.002404/0.547, allocations: 1.573 MB / 0.5286 GB, free: 14.54 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000476/0.5475, allocations: 266.2 kB / 0.5288 GB, free: 14.28 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001399/0.5489, allocations: 0.8325 MB / 0.5296 GB, free: 13.44 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.699e-05/0.5489, allocations: 12 kB / 0.5296 GB, free: 13.43 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.884e-06/0.549, allocations: 4 kB / 0.5296 GB, free: 13.43 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.529e-05/0.549, allocations: 11.91 kB / 0.5297 GB, free: 13.41 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005806/0.5548, allocations: 3.385 MB / 0.533 GB, free: 9.992 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.486e-06/0.5548, allocations: 3.938 kB / 0.533 GB, free: 9.992 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002321/0.5571, allocations: 407.9 kB / 0.5334 GB, free: 9.594 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.229e-05/0.5572, allocations: 7.938 kB / 0.5334 GB, free: 9.586 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001003/0.5573, allocations: 35.97 kB / 0.5334 GB, free: 9.551 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.107e-06/0.5573, allocations: 8 kB / 0.5334 GB, free: 9.543 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.848e-06/0.5573, allocations: 7.922 kB / 0.5334 GB, free: 9.535 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003482/0.5608, allocations: 2.796 MB / 0.5361 GB, free: 6.727 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006279/0.5614, allocations: 315 kB / 0.5364 GB, free: 6.398 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002537/0.5617, allocations: 27.98 kB / 0.5365 GB, free: 6.371 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008682/0.5626, allocations: 43.95 kB / 0.5365 GB, free: 6.328 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001288/0.5627, allocations: 58.48 kB / 0.5366 GB, free: 6.273 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.629e-05/0.5628, allocations: 39.97 kB / 0.5366 GB, free: 6.234 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002854/0.5657, allocations: 1.845 MB / 0.5384 GB, free: 4.387 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.5657, allocations: 0 / 0.5384 GB, free: 4.387 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003799/0.5695, allocations: 0.8408 MB / 0.5392 GB, free: 3.547 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.0003907/0.5699, allocations: 168.4 kB / 0.5394 GB, free: 3.375 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005784/0.5757, allocations: 3.61 MB / 0.5429 GB, free: 15.79 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.214e-06/0.5757, allocations: 0 / 0.5429 GB, free: 15.79 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001038/0.5768, allocations: 0.7232 MB / 0.5436 GB, free: 15.07 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001725/0.5785, allocations: 260.5 kB / 0.5439 GB, free: 14.83 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01183/0.5903, allocations: 7.488 MB / 0.5512 GB, free: 7.316 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002516/0.5929, allocations: 2.391 MB / 0.5535 GB, free: 4.895 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007634/0.5937, allocations: 235.4 kB / 0.5537 GB, free: 4.664 MB / 462.1 MB Notification: Performance of SimCode: time 7.01e-07/0.5937, allocations: 0 / 0.5537 GB, free: 4.664 MB / 462.1 MB Notification: Performance of Templates: time 0.06485/0.6585, allocations: 41.16 MB / 0.5939 GB, free: 11.59 MB / 0.4981 GB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PointGravityWithPointMasses/PointGravityWithPointMasses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 10.91705164895393]