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) 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 3.2.3+maint.om/package.mo", uses=false) 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: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses,fileNamePrefix="Modelica_3_2_3_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.001354/0.001354, allocations: 106.5 kB / 17.73 MB, free: 5.367 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.001735/0.001735, allocations: 191 kB / 18.66 MB, free: 4.441 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.253/1.253, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB 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.001201/0.001201, allocations: 59.92 kB / 328 MB, free: 3.793 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08635/0.08756, allocations: 46.62 MB / 374.7 MB, free: 5.062 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.1819/0.2695, allocations: 7.947 MB / 382.6 MB, free: 9.039 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00429/0.2738, allocations: 2.553 MB / 385.2 MB, free: 7.945 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006305/0.2745, allocations: 39.12 kB / 385.2 MB, free: 7.938 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002291/0.2768, allocations: 1.427 MB / 386.6 MB, free: 7.402 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001886/0.2787, allocations: 0.9781 MB / 387.6 MB, free: 6.938 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006016/0.2793, allocations: 268.6 kB / 387.9 MB, free: 6.797 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002585/0.2819, allocations: 2.194 MB / 390.1 MB, free: 5.91 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001641/0.2836, allocations: 1.548 MB / 391.6 MB, free: 5.301 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009782/0.2846, allocations: 0.8361 MB / 392.4 MB, free: 4.945 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001262/0.2858, allocations: 1.189 MB / 393.6 MB, free: 4.484 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002724/0.2861, allocations: 159.3 kB / 393.8 MB, free: 4.484 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001252/0.2874, allocations: 0.6497 MB / 394.4 MB, free: 4.332 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001007/0.2884, allocations: 1.169 MB / 395.6 MB, free: 3.922 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009434/0.2893, allocations: 1.377 MB / 397 MB, free: 2.93 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00375/0.2931, allocations: 4.31 MB / 401.3 MB, free: 0.5625 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.105e-06/0.2931, allocations: 0 / 401.3 MB, free: 0.5625 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.2931, allocations: 0 / 401.3 MB, free: 0.5625 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.071e-05/0.2932, allocations: 0 / 401.3 MB, free: 0.5625 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.003992/0.2972, allocations: 2.952 MB / 404.2 MB, free: 14.39 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.901e-05/0.2972, allocations: 9.219 kB / 404.3 MB, free: 14.39 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005678/0.2978, allocations: 0.5329 MB / 404.8 MB, free: 14.02 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006236/0.3041, allocations: 1.775 MB / 406.6 MB, free: 13.08 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002098/0.3062, allocations: 1.158 MB / 407.7 MB, free: 12.26 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001203/0.3063, allocations: 150.8 kB / 407.9 MB, free: 12.19 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003706/0.3067, allocations: 206 kB / 408.1 MB, free: 12.11 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01688/0.3236, allocations: 8.602 MB / 416.7 MB, free: 5.059 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001188/0.3237, allocations: 39.69 kB / 416.7 MB, free: 5.02 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004793/0.3242, allocations: 103.9 kB / 416.8 MB, free: 4.918 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002761/0.327, allocations: 1.675 MB / 418.5 MB, free: 3.242 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01664/0.3436, allocations: 7.165 MB / 425.7 MB, free: 12.07 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03525/0.3789, allocations: 30.11 MB / 455.8 MB, free: 13.08 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02275/0.4017, allocations: 5.037 MB / 460.8 MB, free: 7.867 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001704/0.4034, allocations: 1.247 MB / 462 MB, free: 6.598 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006062/0.4095, allocations: 3.734 MB / 465.8 MB, free: 2.715 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.066e-05/0.4096, allocations: 58.81 kB / 465.8 MB, free: 2.648 MB / 382.1 MB Notification: Performance of pre-optimization done (n=111): time 3.327e-06/0.4096, allocations: 0 / 465.8 MB, free: 2.648 MB / 382.1 MB Notification: Performance of matching and sorting (n=111): time 0.04376/0.4534, allocations: 9.253 MB / 475.1 MB, free: 9.309 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001088/0.4535, allocations: 207.9 kB / 475.3 MB, free: 9.062 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005133/0.4587, allocations: 3.035 MB / 478.3 MB, free: 6.008 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001798/0.4589, allocations: 41.7 kB / 478.4 MB, free: 5.961 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001781/0.4607, allocations: 2.418 MB / 480.8 MB, free: 3.504 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006028/0.4613, allocations: 0.498 MB / 481.3 MB, free: 3 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001747/0.463, allocations: 1.083 MB / 482.4 MB, free: 1.906 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.85e-05/0.4631, allocations: 301.1 kB / 482.7 MB, free: 1.609 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002382/0.4655, allocations: 1.607 MB / 484.3 MB, free: 15.99 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004603/0.4701, allocations: 5.165 MB / 489.4 MB, free: 9.027 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007388/0.4775, allocations: 7.331 MB / 496.8 MB, free: 15.91 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001021/0.4777, allocations: 36 kB / 496.8 MB, free: 15.88 MB / 430.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.0111/0.4888, allocations: 6.431 MB / 0.4914 GB, free: 9.438 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000104/0.4889, allocations: 64.31 kB / 0.4915 GB, free: 9.375 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001701/0.4891, allocations: 135.9 kB / 0.4916 GB, free: 9.242 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001623/0.4893, allocations: 164 kB / 0.4918 GB, free: 9.082 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00474/0.494, allocations: 1.454 MB / 0.4932 GB, free: 7.625 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002208/0.4942, allocations: 251 kB / 0.4934 GB, free: 7.379 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003573/0.4978, allocations: 0.7499 MB / 0.4942 GB, free: 6.621 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005388/0.4984, allocations: 344 kB / 0.4945 GB, free: 6.285 MB / 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.002488/0.5009, allocations: 1.583 MB / 0.496 GB, free: 4.688 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000558/0.5014, allocations: 252.7 kB / 0.4963 GB, free: 4.438 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00139/0.5028, allocations: 0.8264 MB / 0.4971 GB, free: 3.602 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.616e-05/0.5029, allocations: 16 kB / 0.4971 GB, free: 3.586 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.628e-05/0.5029, allocations: 3.938 kB / 0.4971 GB, free: 3.582 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.445e-05/0.5029, allocations: 7.984 kB / 0.4971 GB, free: 3.574 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006594/0.5095, allocations: 3.392 MB / 0.5004 GB, free: 124 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.194e-05/0.5095, allocations: 3.938 kB / 0.5004 GB, free: 120 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002251/0.5118, allocations: 411.5 kB / 0.5008 GB, free: 15.71 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.438e-05/0.5118, allocations: 4 kB / 0.5008 GB, free: 15.71 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001112/0.5119, allocations: 39.97 kB / 0.5009 GB, free: 15.67 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.536e-06/0.512, allocations: 4 kB / 0.5009 GB, free: 15.67 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.512, allocations: 0 / 0.5009 GB, free: 15.67 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003261/0.5152, allocations: 2.777 MB / 0.5036 GB, free: 12.86 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000633/0.5159, allocations: 309.5 kB / 0.5039 GB, free: 12.54 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004946/0.5164, allocations: 27.98 kB / 0.5039 GB, free: 12.51 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00117/0.5176, allocations: 47.89 kB / 0.504 GB, free: 12.46 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001185/0.5177, allocations: 55.86 kB / 0.504 GB, free: 12.41 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.414e-05/0.5178, allocations: 39.98 kB / 0.504 GB, free: 12.37 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002995/0.5208, allocations: 1.841 MB / 0.5058 GB, free: 10.53 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5208, allocations: 0 / 0.5058 GB, free: 10.53 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004136/0.5249, allocations: 0.83 MB / 0.5067 GB, free: 9.695 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.003688/0.5286, allocations: 3.422 MB / 0.51 GB, free: 6.242 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005437/0.5341, allocations: 3.616 MB / 0.5135 GB, free: 2.656 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/0.5341, allocations: 0 / 0.5135 GB, free: 2.656 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000893/0.535, allocations: 0.7181 MB / 0.5142 GB, free: 1.938 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001947/0.537, allocations: 260.4 kB / 0.5145 GB, free: 1.688 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04735/0.5843, allocations: 34.17 MB / 0.5478 GB, free: 10.15 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003561/0.5879, allocations: 2.398 MB / 0.5502 GB, free: 7.719 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004077/0.592, allocations: 1.629 MB / 0.5518 GB, free: 6.082 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001861/0.5939, allocations: 1.218 MB / 0.553 GB, free: 4.863 MB / 494.1 MB Notification: Performance of SimCode: time 7.91e-07/0.5939, allocations: 0 / 0.553 GB, free: 4.863 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3984/0.9923, allocations: 44.01 MB / 0.5959 GB, free: 151.9 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.05/16.04, allocations: 12.06 kB / 0.596 GB, free: 151.9 MB / 494.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/PointGravityWithPointMasses/PointGravityWithPointMasses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches