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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001293/0.001293, allocations: 106 kB / 21.18 MB, free: 0.6992 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.001347/0.001347, allocations: 181.2 kB / 24.46 MB, free: 4.062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.503/1.503, allocations: 207.6 MB / 235.2 MB, free: 10.02 MB / 190.1 MB " [Timeout remaining time 178] 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=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_3.2.3_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_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses") [Timeout 660] "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.001948/0.001948, allocations: 55.92 kB / 347.7 MB, free: 9.559 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3365/0.3384, allocations: 49.16 MB / 396.8 MB, free: 9.523 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.01158/0.35, allocations: 8.007 MB / 404.8 MB, free: 3.883 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007358/0.3574, allocations: 2.591 MB / 407.4 MB, free: 2.16 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001587/0.359, allocations: 48.16 kB / 407.5 MB, free: 2.145 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00379/0.3627, allocations: 1.451 MB / 408.9 MB, free: 1.492 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003986/0.3667, allocations: 1.027 MB / 409.9 MB, free: 0.9922 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001035/0.3678, allocations: 259.9 kB / 410.2 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004805/0.3726, allocations: 2.187 MB / 412.4 MB, free: 15.76 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002502/0.3751, allocations: 1.208 MB / 413.6 MB, free: 14.93 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00214/0.3772, allocations: 0.8534 MB / 414.4 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002575/0.3798, allocations: 1.302 MB / 415.7 MB, free: 13.67 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006065/0.3804, allocations: 159.6 kB / 415.9 MB, free: 13.67 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001958/0.3823, allocations: 0.6775 MB / 416.6 MB, free: 13.37 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001697/0.384, allocations: 1.189 MB / 417.8 MB, free: 12.7 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002172/0.3862, allocations: 1.371 MB / 419.1 MB, free: 11.66 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008315/0.3945, allocations: 4.329 MB / 423.5 MB, free: 8.684 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.387e-06/0.3945, allocations: 4 kB / 423.5 MB, free: 8.68 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.627e-06/0.3945, allocations: 3.938 kB / 423.5 MB, free: 8.676 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002223/0.3948, allocations: 1.312 kB / 423.5 MB, free: 8.676 MB / 334.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.008716/0.4035, allocations: 2.956 MB / 426.4 MB, free: 5.699 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.495e-05/0.4035, allocations: 19.98 kB / 426.5 MB, free: 5.68 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008442/0.412, allocations: 1.793 MB / 428.2 MB, free: 3.883 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004367/0.4164, allocations: 1.113 MB / 429.4 MB, free: 2.742 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002065/0.4166, allocations: 147.8 kB / 429.5 MB, free: 2.598 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001036/0.4176, allocations: 207.8 kB / 429.7 MB, free: 2.395 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02242/0.44, allocations: 8.6 MB / 438.3 MB, free: 9.191 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001111/0.4401, allocations: 39.64 kB / 438.3 MB, free: 9.152 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003131/0.4404, allocations: 103.9 kB / 438.4 MB, free: 9.051 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003026/0.4435, allocations: 1.663 MB / 440.1 MB, free: 7.387 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01983/0.4633, allocations: 7.174 MB / 447.3 MB, free: 204 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04487/0.5082, allocations: 30.06 MB / 477.3 MB, free: 1.246 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02297/0.5311, allocations: 4.511 MB / 481.9 MB, free: 12.67 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002064/0.5332, allocations: 1.189 MB / 483 MB, free: 11.46 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007109/0.5403, allocations: 3.29 MB / 486.3 MB, free: 8.137 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.311e-05/0.5404, allocations: 54.83 kB / 486.4 MB, free: 8.074 MB / 398.1 MB Notification: Performance of pre-optimization done (n=111): time 5.831e-06/0.5404, allocations: 3.984 kB / 486.4 MB, free: 8.07 MB / 398.1 MB Notification: Performance of matching and sorting (n=111): time 0.04612/0.5865, allocations: 8.969 MB / 495.4 MB, free: 15.09 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001253/0.5866, allocations: 199.9 kB / 495.6 MB, free: 14.85 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00698/0.5936, allocations: 3.044 MB / 498.6 MB, free: 11.79 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002375/0.5939, allocations: 49.64 kB / 498.6 MB, free: 11.73 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002453/0.5963, allocations: 2.531 MB / 0.4894 GB, free: 9.172 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008596/0.5972, allocations: 0.5158 MB / 0.4899 GB, free: 8.652 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002123/0.5993, allocations: 1.088 MB / 0.491 GB, free: 7.555 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001326/0.5994, allocations: 305.1 kB / 0.4913 GB, free: 7.254 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002674/0.6021, allocations: 1.603 MB / 0.4929 GB, free: 5.645 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00627/0.6084, allocations: 5.169 MB / 0.4979 GB, free: 14.67 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009538/0.6179, allocations: 7.331 MB / 0.5051 GB, free: 5.555 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001519/0.6181, allocations: 36 kB / 0.5051 GB, free: 5.52 MB / 430.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.01391/0.632, allocations: 6.447 MB / 0.5114 GB, free: 15.07 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001492/0.6321, allocations: 63.98 kB / 0.5115 GB, free: 15 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002336/0.6323, allocations: 128 kB / 0.5116 GB, free: 14.88 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002141/0.6326, allocations: 164.8 kB / 0.5117 GB, free: 14.72 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005631/0.6382, allocations: 1.458 MB / 0.5132 GB, free: 13.26 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003536/0.6385, allocations: 259 kB / 0.5134 GB, free: 13 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004877/0.6434, allocations: 0.7639 MB / 0.5141 GB, free: 12.23 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001162/0.6446, allocations: 344 kB / 0.5145 GB, free: 11.9 MB / 446.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.004918/0.6495, allocations: 1.575 MB / 0.516 GB, free: 10.31 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000757/0.6503, allocations: 262.3 kB / 0.5163 GB, free: 10.05 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00187/0.6521, allocations: 0.825 MB / 0.5171 GB, free: 9.223 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.552e-05/0.6522, allocations: 15.94 kB / 0.5171 GB, free: 9.207 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.362e-05/0.6522, allocations: 0 / 0.5171 GB, free: 9.207 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.671e-05/0.6522, allocations: 7.984 kB / 0.5171 GB, free: 9.199 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008138/0.6603, allocations: 3.376 MB / 0.5204 GB, free: 5.77 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-05/0.6603, allocations: 0 / 0.5204 GB, free: 5.77 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002391/0.6627, allocations: 415.5 kB / 0.5208 GB, free: 5.363 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.125e-05/0.6628, allocations: 7.938 kB / 0.5208 GB, free: 5.355 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001655/0.6629, allocations: 35.97 kB / 0.5208 GB, free: 5.32 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.086e-05/0.6629, allocations: 4 kB / 0.5208 GB, free: 5.316 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.6629, allocations: 0 / 0.5208 GB, free: 5.316 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003996/0.6669, allocations: 2.795 MB / 0.5236 GB, free: 2.5 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008178/0.6677, allocations: 238 kB / 0.5238 GB, free: 2.266 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005067/0.6683, allocations: 35.97 kB / 0.5238 GB, free: 2.23 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001181/0.6694, allocations: 39.95 kB / 0.5239 GB, free: 2.191 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000163/0.6696, allocations: 59.83 kB / 0.5239 GB, free: 2.133 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000107/0.6697, allocations: 31.98 kB / 0.5239 GB, free: 2.102 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003714/0.6734, allocations: 1.845 MB / 0.5258 GB, free: 260 kB / 446.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.6734, allocations: 4 kB / 0.5258 GB, free: 256 kB / 446.1 MB Notification: Performance of remove unused functions: time 0.00511/0.6785, allocations: 0.8348 MB / 0.5266 GB, free: 15.41 MB / 462.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.0005477/0.6791, allocations: 166.9 kB / 0.5267 GB, free: 15.24 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006518/0.6856, allocations: 3.483 MB / 0.5301 GB, free: 11.78 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.801e-06/0.6856, allocations: 0 / 0.5301 GB, free: 11.78 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001043/0.6866, allocations: 0.68 MB / 0.5308 GB, free: 11.1 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002322/0.689, allocations: 267.8 kB / 0.531 GB, free: 10.84 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01518/0.7041, allocations: 7.163 MB / 0.538 GB, free: 3.621 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004301/0.7084, allocations: 2.375 MB / 0.5404 GB, free: 1.219 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.004636/0.7131, allocations: 1.637 MB / 0.542 GB, free: 15.57 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006943/0.7138, allocations: 191.3 kB / 0.5421 GB, free: 15.39 MB / 478.1 MB Notification: Performance of SimCode: time 1.192e-06/0.7138, allocations: 3.938 kB / 0.5421 GB, free: 15.38 MB / 478.1 MB Notification: Performance of Templates: time 0.3072/1.021, allocations: 22.55 MB / 0.5642 GB, free: 146.4 MB / 478.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/PointGravityWithPointMasses/PointGravityWithPointMasses.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 6.439269025810063]