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: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001308/0.001308, allocations: 110.6 kB / 16.51 MB, free: 6.652 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.001044/0.001044, allocations: 199.8 kB / 17.43 MB, free: 6.035 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.264/1.264, allocations: 222.9 MB / 241.1 MB, free: 15.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001227/0.001227, allocations: 58.45 kB / 300.1 MB, free: 6.203 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09/0.09126, allocations: 49.44 MB / 349.5 MB, free: 4.758 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.1904/0.2817, allocations: 28.95 MB / 378.5 MB, free: 8.848 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01247/0.2942, allocations: 5.951 MB / 384.4 MB, free: 7.277 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006779/0.301, allocations: 113.1 kB / 384.5 MB, free: 7.262 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003213/0.3042, allocations: 1.395 MB / 385.9 MB, free: 6.844 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003075/0.3074, allocations: 0.9386 MB / 386.9 MB, free: 6.531 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007677/0.3082, allocations: 240.9 kB / 387.1 MB, free: 6.422 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004007/0.3122, allocations: 3.296 MB / 390.4 MB, free: 5.539 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002216/0.3144, allocations: 1.537 MB / 391.9 MB, free: 5.023 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001386/0.3158, allocations: 0.729 MB / 392.6 MB, free: 4.668 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00189/0.3177, allocations: 1.302 MB / 393.9 MB, free: 4.027 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005059/0.3183, allocations: 115.3 kB / 394.1 MB, free: 4.027 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001543/0.3198, allocations: 0.661 MB / 394.7 MB, free: 3.73 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001181/0.321, allocations: 1.138 MB / 395.9 MB, free: 3.129 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001152/0.3222, allocations: 1.349 MB / 397.2 MB, free: 2.129 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00326/0.3254, allocations: 4.092 MB / 401.3 MB, free: 15.45 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.372e-06/0.3255, allocations: 2.594 kB / 401.3 MB, free: 15.45 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.3255, allocations: 4 kB / 401.3 MB, free: 15.44 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.16e-05/0.3255, allocations: 0 / 401.3 MB, free: 15.44 MB / 318.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.003857/0.3294, allocations: 2.948 MB / 404.3 MB, free: 13.36 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.38e-05/0.3294, allocations: 8.219 kB / 404.3 MB, free: 13.36 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005225/0.33, allocations: 0.5307 MB / 404.8 MB, free: 13.01 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006394/0.3364, allocations: 1.772 MB / 406.6 MB, free: 11.3 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001827/0.3382, allocations: 1.153 MB / 407.7 MB, free: 10.12 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.61e-05/0.3383, allocations: 153.5 kB / 407.9 MB, free: 9.996 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003278/0.3387, allocations: 217.2 kB / 408.1 MB, free: 9.812 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01665/0.3553, allocations: 8.595 MB / 416.7 MB, free: 0.707 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.46e-05/0.3554, allocations: 43.59 kB / 416.7 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002531/0.3557, allocations: 99.17 kB / 416.8 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00264/0.3583, allocations: 1.669 MB / 418.5 MB, free: 14.94 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01661/0.375, allocations: 7.166 MB / 425.7 MB, free: 7.758 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03491/0.4099, allocations: 30.18 MB / 455.8 MB, free: 8.84 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02326/0.4332, allocations: 5.048 MB / 460.9 MB, free: 3.613 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00168/0.4349, allocations: 1.236 MB / 462.1 MB, free: 2.355 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005871/0.4408, allocations: 3.749 MB / 465.9 MB, free: 14.47 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.902e-05/0.4409, allocations: 54.88 kB / 465.9 MB, free: 14.41 MB / 382.1 MB Notification: Performance of pre-optimization done (n=111): time 5.481e-06/0.4409, allocations: 0 / 465.9 MB, free: 14.41 MB / 382.1 MB Notification: Performance of matching and sorting (n=111): time 0.04541/0.4863, allocations: 9.263 MB / 475.2 MB, free: 5.059 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001015/0.4864, allocations: 195.9 kB / 475.4 MB, free: 4.824 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005584/0.492, allocations: 3.035 MB / 478.4 MB, free: 1.77 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000181/0.4922, allocations: 42.73 kB / 478.4 MB, free: 1.723 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002151/0.4944, allocations: 2.423 MB / 480.9 MB, free: 15.3 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007534/0.4952, allocations: 0.4925 MB / 481.4 MB, free: 14.82 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002014/0.4972, allocations: 1.079 MB / 482.4 MB, free: 13.73 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001154/0.4973, allocations: 305.1 kB / 482.7 MB, free: 13.43 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00252/0.4998, allocations: 1.607 MB / 484.3 MB, free: 11.81 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004875/0.5047, allocations: 5.165 MB / 489.5 MB, free: 4.844 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007825/0.5126, allocations: 7.336 MB / 496.8 MB, free: 11.73 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001212/0.5127, allocations: 36 kB / 496.9 MB, free: 11.69 MB / 414.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.01147/0.5242, allocations: 6.437 MB / 0.4915 GB, free: 5.25 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001426/0.5244, allocations: 64.17 kB / 0.4916 GB, free: 5.188 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000204/0.5246, allocations: 132 kB / 0.4917 GB, free: 5.059 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002205/0.5248, allocations: 164 kB / 0.4919 GB, free: 4.898 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004991/0.5298, allocations: 1.45 MB / 0.4933 GB, free: 3.445 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002154/0.5301, allocations: 255 kB / 0.4935 GB, free: 3.195 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003935/0.534, allocations: 0.7444 MB / 0.4943 GB, free: 2.445 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007099/0.5347, allocations: 340 kB / 0.4946 GB, free: 2.113 MB / 414.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.002474/0.5372, allocations: 1.579 MB / 0.4961 GB, free: 0.5234 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005326/0.5377, allocations: 248.7 kB / 0.4964 GB, free: 284 kB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001429/0.5392, allocations: 0.8256 MB / 0.4972 GB, free: 15.45 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.055e-05/0.5392, allocations: 22.11 kB / 0.4972 GB, free: 15.43 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.248e-05/0.5393, allocations: 3.938 kB / 0.4972 GB, free: 15.42 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.721e-05/0.5393, allocations: 12.02 kB / 0.4972 GB, free: 15.41 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006387/0.5457, allocations: 3.384 MB / 0.5005 GB, free: 11.98 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.29e-05/0.5457, allocations: 4 kB / 0.5005 GB, free: 11.98 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00242/0.5481, allocations: 415.4 kB / 0.5009 GB, free: 11.57 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.599e-05/0.5482, allocations: 4 kB / 0.5009 GB, free: 11.57 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000116/0.5483, allocations: 39.97 kB / 0.5009 GB, free: 11.53 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.007e-06/0.5483, allocations: 4 kB / 0.501 GB, free: 11.53 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.338e-06/0.5483, allocations: 3.984 kB / 0.501 GB, free: 11.52 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00332/0.5516, allocations: 2.782 MB / 0.5037 GB, free: 8.723 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006305/0.5523, allocations: 309.5 kB / 0.504 GB, free: 8.398 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005032/0.5528, allocations: 27.98 kB / 0.504 GB, free: 8.371 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001119/0.5539, allocations: 43.95 kB / 0.504 GB, free: 8.328 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001344/0.5541, allocations: 51.92 kB / 0.5041 GB, free: 8.277 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.869e-05/0.5542, allocations: 35.98 kB / 0.5041 GB, free: 8.242 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003333/0.5575, allocations: 1.841 MB / 0.5059 GB, free: 6.398 MB / 430.1 MB Notification: Performance of sort global known variables: time 6.21e-07/0.5575, allocations: 0 / 0.5059 GB, free: 6.398 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.004468/0.562, allocations: 0.8328 MB / 0.5067 GB, free: 5.566 MB / 430.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.004028/0.566, allocations: 3.432 MB / 0.5101 GB, free: 2.109 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.006217/0.5723, allocations: 3.598 MB / 0.5136 GB, free: 14.54 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.34e-06/0.5723, allocations: 0 / 0.5136 GB, free: 14.54 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009812/0.5733, allocations: 0.7223 MB / 0.5143 GB, free: 13.81 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002285/0.5756, allocations: 253.1 kB / 0.5145 GB, free: 13.57 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2423/0.8178, allocations: 38.12 MB / 0.5518 GB, free: 110.7 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001836/0.8197, allocations: 2.393 MB / 0.5541 GB, free: 109.7 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003278/0.823, allocations: 1.647 MB / 0.5557 GB, free: 109.6 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001182/0.8242, allocations: 1.21 MB / 0.5569 GB, free: 108.6 MB / 446.1 MB Notification: Performance of SimCode: time 1.282e-06/0.8242, allocations: 3.75 kB / 0.5569 GB, free: 108.6 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5771/1.401, allocations: 45.75 MB / 0.6016 GB, free: 66.77 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002034/1.402, allocations: 236.7 kB / 0.6018 GB, free: 66.52 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.104/4.506, allocations: 3.094 kB / 0.6018 GB, free: 66.52 MB / 446.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses.fmu > 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