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.001465/0.001465, allocations: 108.2 kB / 16.92 MB, free: 6.145 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.001752/0.001752, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.333/1.333, allocations: 222.9 MB / 241.5 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009947/0.0009949, allocations: 53.77 kB / 300.6 MB, free: 5.848 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1009/0.1019, allocations: 49.44 MB / 350.1 MB, free: 4.402 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.009235/0.1112, allocations: 7.97 MB / 358 MB, free: 12.38 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005332/0.1166, allocations: 2.524 MB / 360.5 MB, free: 9.844 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0012/0.1178, allocations: 35.94 kB / 360.6 MB, free: 9.809 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002952/0.1208, allocations: 1.421 MB / 362 MB, free: 8.383 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002583/0.1235, allocations: 0.9889 MB / 363 MB, free: 7.391 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008085/0.1243, allocations: 271.5 kB / 363.3 MB, free: 7.125 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002971/0.1273, allocations: 2.184 MB / 365.4 MB, free: 4.938 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002907/0.1302, allocations: 1.56 MB / 367 MB, free: 3.355 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001897/0.1321, allocations: 0.8328 MB / 367.8 MB, free: 2.52 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002186/0.1343, allocations: 1.187 MB / 369 MB, free: 1.328 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006495/0.135, allocations: 160 kB / 369.2 MB, free: 1.172 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002046/0.137, allocations: 0.6669 MB / 369.8 MB, free: 0.5039 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2209/0.3579, allocations: 1.164 MB / 371 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001759/0.3597, allocations: 1.371 MB / 372.4 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005279/0.365, allocations: 4.12 MB / 376.5 MB, free: 10.78 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.472e-06/0.365, allocations: 0 / 376.5 MB, free: 10.78 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.595e-06/0.3651, allocations: 0.75 kB / 376.5 MB, free: 10.78 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001234/0.3652, allocations: 0 / 376.5 MB, free: 10.78 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.005526/0.3707, allocations: 2.951 MB / 379.5 MB, free: 9.418 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.496e-05/0.3708, allocations: 10.88 kB / 379.5 MB, free: 9.418 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006773/0.3775, allocations: 1.781 MB / 381.2 MB, free: 9.227 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002156/0.3797, allocations: 1.153 MB / 382.4 MB, free: 8.824 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001062/0.3798, allocations: 150.2 kB / 382.5 MB, free: 8.82 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004118/0.3803, allocations: 211.9 kB / 382.8 MB, free: 8.812 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01863/0.3989, allocations: 8.603 MB / 391.4 MB, free: 5.105 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.654e-05/0.399, allocations: 42.33 kB / 391.4 MB, free: 5.098 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002918/0.3993, allocations: 103 kB / 391.5 MB, free: 5.059 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002834/0.4022, allocations: 1.66 MB / 393.2 MB, free: 4.422 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01599/0.4182, allocations: 7.186 MB / 400.3 MB, free: 316 kB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03594/0.4541, allocations: 30.17 MB / 430.5 MB, free: 1.602 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02242/0.4766, allocations: 5.032 MB / 435.5 MB, free: 12.41 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00186/0.4785, allocations: 1.241 MB / 436.8 MB, free: 11.15 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006406/0.4849, allocations: 3.755 MB / 440.5 MB, free: 7.273 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.165e-05/0.485, allocations: 50.8 kB / 440.6 MB, free: 7.215 MB / 350.1 MB Notification: Performance of pre-optimization done (n=111): time 4.688e-06/0.485, allocations: 7.734 kB / 440.6 MB, free: 7.211 MB / 350.1 MB Notification: Performance of matching and sorting (n=111): time 0.04444/0.5295, allocations: 9.248 MB / 449.8 MB, free: 13.89 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.817e-05/0.5296, allocations: 194.9 kB / 450 MB, free: 13.66 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005726/0.5353, allocations: 3.031 MB / 453.1 MB, free: 10.61 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003284/0.5357, allocations: 41.7 kB / 453.1 MB, free: 10.56 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002436/0.5381, allocations: 2.418 MB / 455.5 MB, free: 8.145 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008379/0.539, allocations: 0.4918 MB / 456 MB, free: 7.656 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002005/0.541, allocations: 1.102 MB / 457.1 MB, free: 6.547 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001066/0.5411, allocations: 305.1 kB / 457.4 MB, free: 6.246 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002337/0.5435, allocations: 1.603 MB / 459 MB, free: 4.637 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004574/0.548, allocations: 5.163 MB / 464.2 MB, free: 13.73 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008038/0.5561, allocations: 7.33 MB / 471.5 MB, free: 5.008 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.95e-05/0.5562, allocations: 36 kB / 471.5 MB, free: 4.973 MB / 382.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.01191/0.5681, allocations: 6.443 MB / 478 MB, free: 14.53 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001023/0.5683, allocations: 59.44 kB / 478 MB, free: 14.47 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001725/0.5684, allocations: 128 kB / 478.2 MB, free: 14.35 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001721/0.5686, allocations: 168 kB / 478.3 MB, free: 14.18 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004708/0.5733, allocations: 1.454 MB / 479.8 MB, free: 12.73 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000191/0.5735, allocations: 251 kB / 480 MB, free: 12.48 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003807/0.5774, allocations: 0.7541 MB / 480.8 MB, free: 11.72 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000555/0.5779, allocations: 344 kB / 481.1 MB, free: 11.38 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.002522/0.5804, allocations: 1.57 MB / 482.7 MB, free: 9.801 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005364/0.581, allocations: 248.7 kB / 482.9 MB, free: 9.555 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001364/0.5824, allocations: 0.8369 MB / 483.8 MB, free: 8.707 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.377e-05/0.5824, allocations: 12 kB / 483.8 MB, free: 8.695 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.366e-05/0.5824, allocations: 8 kB / 483.8 MB, free: 8.688 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.427e-05/0.5824, allocations: 7.922 kB / 483.8 MB, free: 8.68 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005538/0.588, allocations: 3.377 MB / 487.2 MB, free: 5.262 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.677e-06/0.588, allocations: 3.984 kB / 487.2 MB, free: 5.258 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002171/0.5902, allocations: 411.5 kB / 487.6 MB, free: 4.855 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.369e-05/0.5902, allocations: 11.94 kB / 487.6 MB, free: 4.844 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.712e-05/0.5903, allocations: 34.16 kB / 487.6 MB, free: 4.812 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.222e-06/0.5903, allocations: 4 kB / 487.6 MB, free: 4.809 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.953e-06/0.5903, allocations: 4 kB / 487.6 MB, free: 4.805 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003022/0.5934, allocations: 2.784 MB / 490.4 MB, free: 2.004 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005392/0.5939, allocations: 305.7 kB / 490.7 MB, free: 1.684 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002957/0.5942, allocations: 36.61 kB / 490.8 MB, free: 1.648 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000841/0.5951, allocations: 31.97 kB / 490.8 MB, free: 1.617 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001256/0.5952, allocations: 63.84 kB / 490.8 MB, free: 1.555 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.471e-05/0.5953, allocations: 34.48 kB / 490.9 MB, free: 1.523 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002699/0.598, allocations: 1.845 MB / 492.7 MB, free: 15.68 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.598, allocations: 0 / 492.7 MB, free: 15.68 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003784/0.6018, allocations: 0.8342 MB / 493.6 MB, free: 14.84 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.000403/0.6022, allocations: 170.4 kB / 493.7 MB, free: 14.66 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005406/0.6076, allocations: 3.8 MB / 497.5 MB, free: 10.89 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.029e-06/0.6076, allocations: 0 / 497.5 MB, free: 10.89 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008787/0.6085, allocations: 0.7142 MB / 498.2 MB, free: 10.18 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001521/0.61, allocations: 267.8 kB / 498.5 MB, free: 9.926 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0115/0.6215, allocations: 7.14 MB / 0.4938 GB, free: 2.75 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002938/0.6245, allocations: 2.391 MB / 0.4961 GB, free: 340 kB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.004107/0.6286, allocations: 1.633 MB / 0.4977 GB, free: 14.69 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006762/0.6293, allocations: 183.4 kB / 0.4979 GB, free: 14.51 MB / 430.1 MB Notification: Performance of SimCode: time 8.71e-07/0.6293, allocations: 0 / 0.4979 GB, free: 14.51 MB / 430.1 MB Notification: Performance of Templates: time 0.04252/0.6719, allocations: 21.45 MB / 0.5188 GB, free: 9.223 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PointGravityWithPointMasses/PointGravityWithPointMasses.csv","/var/lib/jenkins/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