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.001611/0.001611, allocations: 104 kB / 17.59 MB, free: 5.555 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.00168/0.001681, allocations: 191.5 kB / 18.51 MB, free: 4.637 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.62/1.62, allocations: 222.9 MB / 242.2 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001088/0.001088, allocations: 50.98 kB / 301.3 MB, free: 5.852 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08965/0.09076, allocations: 49.44 MB / 350.7 MB, free: 4.398 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.009/0.09981, allocations: 7.966 MB / 358.7 MB, free: 12.38 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005034/0.1049, allocations: 2.516 MB / 361.2 MB, free: 9.852 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001127/0.106, allocations: 39.88 kB / 361.3 MB, free: 9.812 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002896/0.109, allocations: 1.417 MB / 362.7 MB, free: 8.391 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002515/0.1115, allocations: 0.9966 MB / 363.7 MB, free: 7.391 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007312/0.1123, allocations: 267.4 kB / 363.9 MB, free: 7.129 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00294/0.1152, allocations: 2.19 MB / 366.1 MB, free: 4.934 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00239/0.1176, allocations: 1.556 MB / 367.7 MB, free: 3.355 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001703/0.1193, allocations: 0.8328 MB / 368.5 MB, free: 2.52 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002213/0.1216, allocations: 1.191 MB / 369.7 MB, free: 1.324 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006542/0.1223, allocations: 164 kB / 369.9 MB, free: 1.164 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001744/0.124, allocations: 0.6592 MB / 370.5 MB, free: 0.5039 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.1908/0.3148, allocations: 1.161 MB / 371.7 MB, free: 11.73 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002908/0.3178, allocations: 1.378 MB / 373.1 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008734/0.3266, allocations: 4.113 MB / 377.2 MB, free: 10.72 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.117e-06/0.3266, allocations: 0 / 377.2 MB, free: 10.72 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.685e-06/0.3266, allocations: 0 / 377.2 MB, free: 10.72 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002102/0.3269, allocations: 0 / 377.2 MB, free: 10.72 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.009313/0.3362, allocations: 2.96 MB / 380.1 MB, free: 9.363 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.538e-05/0.3363, allocations: 8.406 kB / 380.1 MB, free: 9.363 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01119/0.3475, allocations: 1.774 MB / 381.9 MB, free: 9.172 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004192/0.3517, allocations: 1.155 MB / 383.1 MB, free: 8.77 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002681/0.352, allocations: 154.2 kB / 383.2 MB, free: 8.766 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001192/0.3533, allocations: 208.1 kB / 383.4 MB, free: 8.758 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02297/0.3762, allocations: 8.604 MB / 392 MB, free: 5.09 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001255/0.3764, allocations: 41.19 kB / 392.1 MB, free: 5.086 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003384/0.3768, allocations: 102.1 kB / 392.2 MB, free: 5.047 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00267/0.3794, allocations: 1.665 MB / 393.8 MB, free: 4.406 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01696/0.3964, allocations: 7.182 MB / 401 MB, free: 328 kB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03928/0.4358, allocations: 30.16 MB / 431.2 MB, free: 1.617 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02293/0.4587, allocations: 5.044 MB / 436.2 MB, free: 12.41 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001941/0.4607, allocations: 1.24 MB / 437.5 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006498/0.4673, allocations: 3.752 MB / 441.2 MB, free: 7.281 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.808e-05/0.4674, allocations: 50.64 kB / 441.3 MB, free: 7.227 MB / 350.1 MB Notification: Performance of pre-optimization done (n=111): time 4.268e-06/0.4674, allocations: 4 kB / 441.3 MB, free: 7.223 MB / 350.1 MB Notification: Performance of matching and sorting (n=111): time 0.04793/0.5153, allocations: 9.246 MB / 450.5 MB, free: 13.9 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001483/0.5155, allocations: 195.7 kB / 450.7 MB, free: 13.67 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00861/0.5241, allocations: 3.035 MB / 453.7 MB, free: 10.62 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003893/0.5246, allocations: 41.7 kB / 453.8 MB, free: 10.57 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002536/0.5272, allocations: 2.419 MB / 456.2 MB, free: 8.156 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000976/0.5282, allocations: 0.496 MB / 456.7 MB, free: 7.664 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00321/0.5314, allocations: 1.091 MB / 457.8 MB, free: 6.562 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001546/0.5316, allocations: 309 kB / 458.1 MB, free: 6.258 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003126/0.5347, allocations: 1.596 MB / 459.7 MB, free: 4.656 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006052/0.5408, allocations: 5.174 MB / 464.9 MB, free: 13.75 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00856/0.5494, allocations: 7.32 MB / 472.2 MB, free: 5.02 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001206/0.5495, allocations: 36.75 kB / 472.2 MB, free: 4.984 MB / 382.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.01207/0.5616, allocations: 6.45 MB / 478.7 MB, free: 14.54 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001391/0.5618, allocations: 60 kB / 478.7 MB, free: 14.48 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001856/0.562, allocations: 128 kB / 478.8 MB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001797/0.5622, allocations: 168 kB / 479 MB, free: 14.19 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005208/0.5674, allocations: 1.454 MB / 480.5 MB, free: 12.73 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002242/0.5676, allocations: 251 kB / 480.7 MB, free: 12.49 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004108/0.5718, allocations: 0.7511 MB / 481.5 MB, free: 11.73 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007442/0.5725, allocations: 344.7 kB / 481.8 MB, free: 11.39 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.003023/0.5756, allocations: 1.575 MB / 483.4 MB, free: 9.805 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005967/0.5762, allocations: 248.7 kB / 483.6 MB, free: 9.559 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001449/0.5776, allocations: 0.8291 MB / 484.4 MB, free: 8.719 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.563e-05/0.5777, allocations: 16 kB / 484.5 MB, free: 8.703 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.445e-05/0.5777, allocations: 4 kB / 484.5 MB, free: 8.699 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.688e-05/0.5777, allocations: 11.91 kB / 484.5 MB, free: 8.688 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007924/0.5856, allocations: 3.378 MB / 487.9 MB, free: 5.27 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.91e-05/0.5857, allocations: 7.062 kB / 487.9 MB, free: 5.266 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002577/0.5883, allocations: 407.5 kB / 488.3 MB, free: 4.867 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.817e-05/0.5883, allocations: 11.94 kB / 488.3 MB, free: 4.855 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001581/0.5885, allocations: 35.97 kB / 488.3 MB, free: 4.82 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.468e-06/0.5885, allocations: 7.984 kB / 488.3 MB, free: 4.812 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/0.5885, allocations: 4 kB / 488.3 MB, free: 4.809 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003892/0.5924, allocations: 2.785 MB / 491.1 MB, free: 2.012 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007622/0.5932, allocations: 301.7 kB / 491.4 MB, free: 1.695 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005438/0.5938, allocations: 35.92 kB / 491.4 MB, free: 1.66 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001218/0.595, allocations: 35.95 kB / 491.5 MB, free: 1.625 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001535/0.5952, allocations: 59.86 kB / 491.5 MB, free: 1.566 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.436e-05/0.5953, allocations: 35.97 kB / 491.6 MB, free: 1.531 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.003979/0.5993, allocations: 1.841 MB / 493.4 MB, free: 15.69 MB / 414.1 MB Notification: Performance of sort global known variables: time 4.11e-07/0.5993, allocations: 4 kB / 493.4 MB, free: 15.68 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.005102/0.6044, allocations: 0.8334 MB / 494.2 MB, free: 14.85 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.0005281/0.6049, allocations: 171.6 kB / 494.4 MB, free: 14.67 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.006693/0.6116, allocations: 3.792 MB / 498.2 MB, free: 10.91 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.009e-05/0.6117, allocations: 3.938 kB / 498.2 MB, free: 10.9 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001081/0.6128, allocations: 0.7172 MB / 498.9 MB, free: 10.19 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002513/0.6153, allocations: 272.5 kB / 499.2 MB, free: 9.93 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01576/0.6311, allocations: 7.467 MB / 0.4948 GB, free: 2.426 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003373/0.6345, allocations: 2.398 MB / 0.4971 GB, free: 0 / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008346/0.6354, allocations: 235.4 kB / 0.4973 GB, free: 15.77 MB / 430.1 MB Notification: Performance of SimCode: time 8.61e-07/0.6354, allocations: 0 / 0.4973 GB, free: 15.77 MB / 430.1 MB Notification: Performance of Templates: time 0.2199/0.8553, allocations: 40.63 MB / 0.537 GB, free: 150.7 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 -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