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.001472/0.001472, allocations: 114.1 kB / 16.63 MB, free: 6.816 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.001618/0.001618, allocations: 189.8 kB / 17.55 MB, free: 5.93 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.358/1.358, allocations: 222.9 MB / 241.2 MB, free: 15.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001154/0.001154, allocations: 46.77 kB / 300.2 MB, free: 6.023 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0939/0.09507, allocations: 49.44 MB / 349.7 MB, free: 4.578 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.2002/0.2953, allocations: 28.94 MB / 378.6 MB, free: 8.922 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01077/0.3061, allocations: 5.909 MB / 384.5 MB, free: 7.332 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00406/0.3102, allocations: 113.2 kB / 384.6 MB, free: 7.316 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002952/0.3131, allocations: 1.357 MB / 386 MB, free: 6.922 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002418/0.3156, allocations: 0.9303 MB / 386.9 MB, free: 6.602 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000629/0.3163, allocations: 241.1 kB / 387.2 MB, free: 6.496 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002057/0.3183, allocations: 2.228 MB / 389.4 MB, free: 5.75 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001548/0.3199, allocations: 1.657 MB / 391.1 MB, free: 5.137 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007542/0.3207, allocations: 0.8379 MB / 391.9 MB, free: 4.836 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001176/0.3218, allocations: 1.351 MB / 393.2 MB, free: 4.441 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002226/0.3221, allocations: 159.6 kB / 393.4 MB, free: 4.441 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008977/0.323, allocations: 0.6792 MB / 394.1 MB, free: 4.168 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006797/0.3237, allocations: 1.186 MB / 395.3 MB, free: 3.52 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008208/0.3245, allocations: 1.398 MB / 396.7 MB, free: 2.469 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003248/0.3278, allocations: 4.161 MB / 400.8 MB, free: 15.75 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.511e-06/0.3278, allocations: 0 / 400.8 MB, free: 15.75 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.3278, allocations: 0 / 400.8 MB, free: 15.75 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.466e-05/0.3279, allocations: 0 / 400.8 MB, free: 15.75 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.004308/0.3322, allocations: 2.961 MB / 403.8 MB, free: 13.66 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.271e-05/0.3323, allocations: 9.75 kB / 403.8 MB, free: 13.66 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005175/0.3328, allocations: 0.5229 MB / 404.3 MB, free: 13.32 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006385/0.3392, allocations: 1.773 MB / 406.1 MB, free: 11.97 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001891/0.3411, allocations: 1.16 MB / 407.3 MB, free: 10.78 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.761e-05/0.3412, allocations: 159.4 kB / 407.4 MB, free: 10.65 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003186/0.3415, allocations: 202.4 kB / 407.6 MB, free: 10.48 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01627/0.3578, allocations: 8.605 MB / 416.2 MB, free: 1.367 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.568e-05/0.3579, allocations: 35.66 kB / 416.2 MB, free: 1.332 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000238/0.3581, allocations: 105.1 kB / 416.3 MB, free: 1.258 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00251/0.3606, allocations: 1.661 MB / 418 MB, free: 15.61 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01563/0.3763, allocations: 7.178 MB / 425.2 MB, free: 8.41 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02951/0.4058, allocations: 30.17 MB / 455.4 MB, free: 9.453 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02235/0.4282, allocations: 5.037 MB / 460.4 MB, free: 4.238 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001361/0.4296, allocations: 1.241 MB / 461.6 MB, free: 2.977 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00453/0.4341, allocations: 3.757 MB / 465.4 MB, free: 15.07 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.387e-05/0.4342, allocations: 50.83 kB / 465.4 MB, free: 15.01 MB / 382.1 MB Notification: Performance of pre-optimization done (n=111): time 3.437e-06/0.4342, allocations: 0 / 465.4 MB, free: 15.01 MB / 382.1 MB Notification: Performance of matching and sorting (n=111): time 0.04629/0.4805, allocations: 9.259 MB / 474.7 MB, free: 5.66 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000112/0.4806, allocations: 187.9 kB / 474.9 MB, free: 5.434 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004735/0.4854, allocations: 3.047 MB / 477.9 MB, free: 2.367 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001364/0.4855, allocations: 41.7 kB / 478 MB, free: 2.32 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001611/0.4871, allocations: 2.422 MB / 480.4 MB, free: 15.86 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005793/0.4877, allocations: 0.4902 MB / 480.9 MB, free: 15.36 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001587/0.4893, allocations: 1.095 MB / 482 MB, free: 14.25 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.413e-05/0.4894, allocations: 301.1 kB / 482.3 MB, free: 13.96 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002429/0.4918, allocations: 1.596 MB / 483.9 MB, free: 12.36 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004498/0.4964, allocations: 5.169 MB / 489 MB, free: 5.383 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007619/0.504, allocations: 7.339 MB / 496.4 MB, free: 12.26 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001073/0.5041, allocations: 36 kB / 496.4 MB, free: 12.22 MB / 414.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.01011/0.5142, allocations: 6.444 MB / 0.4911 GB, free: 5.781 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000117/0.5144, allocations: 56 kB / 0.4911 GB, free: 5.727 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001818/0.5146, allocations: 128 kB / 0.4912 GB, free: 5.602 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001695/0.5147, allocations: 168 kB / 0.4914 GB, free: 5.438 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004674/0.5194, allocations: 1.454 MB / 0.4928 GB, free: 3.98 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002168/0.5197, allocations: 258.9 kB / 0.4931 GB, free: 3.727 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003499/0.5232, allocations: 0.7463 MB / 0.4938 GB, free: 2.973 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005266/0.5237, allocations: 348 kB / 0.4941 GB, free: 2.633 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.002305/0.526, allocations: 1.563 MB / 0.4957 GB, free: 1.059 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005639/0.5266, allocations: 248.8 kB / 0.4959 GB, free: 0.8125 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001398/0.528, allocations: 0.8331 MB / 0.4967 GB, free: 15.97 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.644e-05/0.528, allocations: 12 kB / 0.4967 GB, free: 15.96 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.505e-05/0.5281, allocations: 15.88 kB / 0.4967 GB, free: 15.94 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.191e-05/0.5281, allocations: 3.984 kB / 0.4967 GB, free: 15.94 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005739/0.5338, allocations: 3.383 MB / 0.5 GB, free: 12.5 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.931e-06/0.5338, allocations: 0 / 0.5 GB, free: 12.5 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002366/0.5362, allocations: 415.4 kB / 0.5004 GB, free: 12.09 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.708e-06/0.5362, allocations: 4 kB / 0.5004 GB, free: 12.09 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.497e-05/0.5363, allocations: 36.34 kB / 0.5005 GB, free: 12.05 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.693e-06/0.5363, allocations: 4 kB / 0.5005 GB, free: 12.05 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.467e-06/0.5363, allocations: 4 kB / 0.5005 GB, free: 12.04 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003078/0.5394, allocations: 2.78 MB / 0.5032 GB, free: 9.238 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004839/0.5399, allocations: 309.5 kB / 0.5035 GB, free: 8.914 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002462/0.5402, allocations: 31.98 kB / 0.5035 GB, free: 8.883 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008587/0.541, allocations: 39.95 kB / 0.5036 GB, free: 8.844 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001304/0.5412, allocations: 63.84 kB / 0.5036 GB, free: 8.781 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.22e-05/0.5413, allocations: 32.03 kB / 0.5037 GB, free: 8.75 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002503/0.5438, allocations: 1.845 MB / 0.5055 GB, free: 6.902 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.5438, allocations: 0 / 0.5055 GB, free: 6.902 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003963/0.5478, allocations: 0.8339 MB / 0.5063 GB, free: 6.066 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.004178/0.5519, allocations: 3.428 MB / 0.5096 GB, free: 2.613 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00596/0.5579, allocations: 3.796 MB / 0.5133 GB, free: 14.84 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.569e-06/0.5579, allocations: 384 / 0.5133 GB, free: 14.84 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000882/0.5588, allocations: 0.7234 MB / 0.514 GB, free: 14.12 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001878/0.5607, allocations: 259.8 kB / 0.5143 GB, free: 13.86 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2221/0.7828, allocations: 38.11 MB / 0.5515 GB, free: 129.8 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002092/0.785, allocations: 2.396 MB / 0.5538 GB, free: 128.7 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003369/0.7884, allocations: 1.634 MB / 0.5554 GB, free: 128.7 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001131/0.7895, allocations: 1.214 MB / 0.5566 GB, free: 127.7 MB / 446.1 MB Notification: Performance of SimCode: time 1.122e-06/0.7895, allocations: 0 / 0.5566 GB, free: 127.7 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2318/1.021, allocations: 46.53 MB / 0.6021 GB, free: 85.73 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002444/1.022, allocations: 243.5 kB / 0.6023 GB, free: 85.47 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.185/4.207, allocations: 3.828 kB / 0.6023 GB, free: 85.47 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