Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses,fileNamePrefix="Modelica_3_2_3_cpp_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_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001023/0.001023, allocations: 175.9 kB / 16.72 MB, free: 5.074 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.273/1.273, allocations: 205.4 MB / 222.9 MB, free: 9.027 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008486/0.0008486, allocations: 97.75 kB / 271.2 MB, free: 8.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003068/0.000307, allocations: 16 kB / 327.6 MB, free: 15.78 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2495/0.2498, allocations: 47.57 MB / 375.2 MB, free: 45.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.01922/0.2691, allocations: 26.15 MB / 401.3 MB, free: 22.47 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01199/0.2811, allocations: 5.678 MB / 407 MB, free: 16.78 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003976/0.2851, allocations: 119.7 kB / 407.1 MB, free: 16.66 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003232/0.2884, allocations: 1.33 MB / 408.5 MB, free: 15.32 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00764/0.2961, allocations: 3.797 MB / 412.3 MB, free: 11.51 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00125/0.2973, allocations: 255.5 kB / 412.5 MB, free: 11.26 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002391/0.2997, allocations: 2.617 MB / 415.1 MB, free: 8.637 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002322/0.3021, allocations: 1.976 MB / 417.1 MB, free: 6.625 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009951/0.3031, allocations: 0.7393 MB / 417.9 MB, free: 5.883 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001306/0.3044, allocations: 1.199 MB / 419 MB, free: 4.68 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003761/0.3048, allocations: 88 kB / 419.1 MB, free: 4.594 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001079/0.3059, allocations: 0.6122 MB / 419.7 MB, free: 3.98 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008775/0.3068, allocations: 1.079 MB / 420.8 MB, free: 2.898 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001304/0.3081, allocations: 1.24 MB / 422.1 MB, free: 1.645 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002525/0.3106, allocations: 3.255 MB / 425.3 MB, free: 14.38 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.3106, allocations: 4 kB / 425.3 MB, free: 14.38 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.402e-06/0.3106, allocations: 0 / 425.3 MB, free: 14.38 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.997e-05/0.3107, allocations: 0 / 425.3 MB, free: 14.38 MB / 314.7 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.0031/0.3138, allocations: 2.399 MB / 427.7 MB, free: 11.92 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.691e-05/0.3139, allocations: 8.031 kB / 427.7 MB, free: 11.91 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005668/0.3144, allocations: 0.5259 MB / 428.3 MB, free: 11.37 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006189/0.3206, allocations: 1.822 MB / 430.1 MB, free: 9.543 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001691/0.3224, allocations: 1.158 MB / 431.2 MB, free: 8.34 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001022/0.3225, allocations: 155.8 kB / 431.4 MB, free: 8.188 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003581/0.3228, allocations: 207.8 kB / 431.6 MB, free: 7.984 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01819/0.341, allocations: 8.596 MB / 440.2 MB, free: 14.79 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001561/0.3412, allocations: 43.58 kB / 440.2 MB, free: 14.74 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007208/0.342, allocations: 103.9 kB / 440.3 MB, free: 14.64 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003088/0.3451, allocations: 1.659 MB / 442 MB, free: 12.98 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01797/0.3631, allocations: 7.161 MB / 449.2 MB, free: 5.812 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03546/0.3985, allocations: 30.2 MB / 479.4 MB, free: 6.719 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0217/0.4203, allocations: 5.108 MB / 484.5 MB, free: 1.434 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001696/0.422, allocations: 1.24 MB / 485.7 MB, free: 176 kB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005753/0.4278, allocations: 3.746 MB / 489.4 MB, free: 12.27 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.161e-05/0.4279, allocations: 46.89 kB / 489.5 MB, free: 12.22 MB / 378.7 MB Notification: Performance of pre-optimization done (n=111): time 4.238e-06/0.4279, allocations: 0 / 489.5 MB, free: 12.22 MB / 378.7 MB Notification: Performance of matching and sorting (n=111): time 0.04303/0.4709, allocations: 9.38 MB / 498.9 MB, free: 2.754 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001248/0.4711, allocations: 199.8 kB / 499.1 MB, free: 2.516 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1545/0.6256, allocations: 3.018 MB / 0.4903 GB, free: 111.8 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001784/0.6258, allocations: 41.61 kB / 0.4904 GB, free: 111.7 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001495/0.6274, allocations: 2.421 MB / 0.4927 GB, free: 110.3 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005476/0.6279, allocations: 0.4982 MB / 0.4932 GB, free: 109.9 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003925/0.6283, allocations: 107.6 kB / 0.4933 GB, free: 109.8 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002423/0.6286, allocations: 0.5289 MB / 0.4938 GB, free: 109.4 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002226/0.6308, allocations: 1.585 MB / 0.4954 GB, free: 109 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003028/0.6338, allocations: 5.14 MB / 0.5004 GB, free: 103.6 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005453/0.6393, allocations: 7.304 MB / 0.5075 GB, free: 97.04 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.509e-05/0.6394, allocations: 36.12 kB / 0.5076 GB, free: 97.04 MB / 378.7 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.006913/0.6463, allocations: 6.398 MB / 0.5138 GB, free: 94.58 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.17e-05/0.6464, allocations: 61.84 kB / 0.5139 GB, free: 94.58 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.849e-05/0.6465, allocations: 127.7 kB / 0.514 GB, free: 94.58 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001092/0.6466, allocations: 165.9 kB / 0.5142 GB, free: 94.58 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003708/0.6503, allocations: 1.462 MB / 0.5156 GB, free: 93.22 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000109/0.6504, allocations: 247.4 kB / 0.5158 GB, free: 92.98 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002482/0.6529, allocations: 0.7554 MB / 0.5166 GB, free: 92.22 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002741/0.6532, allocations: 344 kB / 0.5169 GB, free: 91.88 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001491/0.6547, allocations: 1.572 MB / 0.5184 GB, free: 90.3 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002482/0.6549, allocations: 248.8 kB / 0.5187 GB, free: 90.05 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009298/0.6559, allocations: 0.8366 MB / 0.5195 GB, free: 89.21 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.033e-05/0.6559, allocations: 17.34 kB / 0.5195 GB, free: 89.19 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.897e-06/0.6559, allocations: 4 kB / 0.5195 GB, free: 89.19 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.538e-06/0.6559, allocations: 3.984 kB / 0.5195 GB, free: 89.18 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003852/0.6598, allocations: 3.385 MB / 0.5228 GB, free: 85.77 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.158e-06/0.6598, allocations: 0 / 0.5228 GB, free: 85.77 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002/0.6618, allocations: 415.5 kB / 0.5232 GB, free: 85.36 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.561e-06/0.6618, allocations: 4 kB / 0.5232 GB, free: 85.36 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.787e-05/0.6619, allocations: 37.3 kB / 0.5232 GB, free: 85.32 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.759e-06/0.6619, allocations: 4 kB / 0.5232 GB, free: 85.32 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.6619, allocations: 0 / 0.5232 GB, free: 85.32 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002165/0.6641, allocations: 2.775 MB / 0.526 GB, free: 82.52 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002445/0.6643, allocations: 313.5 kB / 0.5262 GB, free: 82.19 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001992/0.6646, allocations: 32.2 kB / 0.5263 GB, free: 82.16 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000761/0.6653, allocations: 46.53 kB / 0.5263 GB, free: 82.12 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001431/0.6655, allocations: 55.86 kB / 0.5264 GB, free: 82.06 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.017e-05/0.6655, allocations: 35.98 kB / 0.5264 GB, free: 82.03 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001587/0.6671, allocations: 1.833 MB / 0.5282 GB, free: 80.19 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.6671, allocations: 0 / 0.5282 GB, free: 80.19 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002697/0.6698, allocations: 0.8268 MB / 0.529 GB, free: 79.37 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002631/0.6725, allocations: 3.412 MB / 0.5323 GB, free: 75.92 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003543/0.676, allocations: 3.589 MB / 0.5358 GB, free: 72.36 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.476e-06/0.676, allocations: 0 / 0.5358 GB, free: 72.36 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006311/0.6767, allocations: 0.7116 MB / 0.5365 GB, free: 71.65 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001607/0.6783, allocations: 252.9 kB / 0.5368 GB, free: 71.41 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0248/0.7031, allocations: 24.36 MB / 0.5606 GB, free: 44.03 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001794/0.7049, allocations: 2.388 MB / 0.5629 GB, free: 41.61 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00122/0.7062, allocations: 1.257 MB / 0.5641 GB, free: 40.35 MB / 378.7 MB Notification: Performance of SimCode: time 7.01e-07/0.7062, allocations: 8 kB / 0.5641 GB, free: 40.34 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.163/5.869, allocations: 50.84 MB / 0.6138 GB, free: 5.398 MB / 394.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches