Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.0009944/0.0009948, allocations: 191.2 kB / 17.37 MB, free: 4.434 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.24/1.24, allocations: 226.5 MB / 244.7 MB, free: 8.188 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007688/0.0007688, allocations: 100 kB / 296.7 MB, free: 6.902 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002064/0.0002064, allocations: 8 kB / 356.8 MB, free: 10.81 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1864/0.1866, allocations: 51.29 MB / 408.1 MB, free: 27.72 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.01558/0.2022, allocations: 26.17 MB / 434.3 MB, free: 1.473 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01041/0.2126, allocations: 5.691 MB / 440 MB, free: 11.78 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003803/0.2165, allocations: 119.7 kB / 440.1 MB, free: 11.66 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003047/0.2196, allocations: 1.33 MB / 441.4 MB, free: 10.33 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007664/0.2272, allocations: 3.809 MB / 445.2 MB, free: 6.508 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008236/0.2281, allocations: 255.5 kB / 445.5 MB, free: 6.258 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.002789/0.2309, allocations: 2.617 MB / 448.1 MB, free: 3.633 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002321/0.2332, allocations: 1.995 MB / 450.1 MB, free: 1.594 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006917/0.2339, allocations: 0.7315 MB / 450.8 MB, free: 0.8594 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001225/0.2352, allocations: 1.207 MB / 452 MB, free: 15.64 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001768/0.2353, allocations: 84 kB / 452.1 MB, free: 15.56 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001028/0.2364, allocations: 0.62 MB / 452.7 MB, free: 14.94 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008434/0.2372, allocations: 1.079 MB / 453.8 MB, free: 13.86 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009383/0.2382, allocations: 1.244 MB / 455.1 MB, free: 12.6 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002611/0.2408, allocations: 3.255 MB / 458.3 MB, free: 9.34 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.2408, allocations: 0 / 458.3 MB, free: 9.34 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.343e-06/0.2408, allocations: 0 / 458.3 MB, free: 9.34 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.458e-05/0.2409, allocations: 0 / 458.3 MB, free: 9.34 MB / 330.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.002935/0.2438, allocations: 2.403 MB / 460.7 MB, free: 6.875 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.772e-05/0.2439, allocations: 20.02 kB / 460.7 MB, free: 6.855 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000548/0.2444, allocations: 0.5182 MB / 461.3 MB, free: 6.324 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006143/0.2506, allocations: 1.822 MB / 463.1 MB, free: 4.496 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001734/0.2523, allocations: 1.161 MB / 464.3 MB, free: 3.289 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.485e-05/0.2524, allocations: 151.8 kB / 464.4 MB, free: 3.141 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003175/0.2527, allocations: 207.8 kB / 464.6 MB, free: 2.938 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01641/0.2692, allocations: 8.6 MB / 473.2 MB, free: 9.73 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.881e-05/0.2693, allocations: 39.64 kB / 473.2 MB, free: 9.691 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002432/0.2695, allocations: 99.88 kB / 473.3 MB, free: 9.594 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002695/0.2722, allocations: 1.667 MB / 475 MB, free: 7.926 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0161/0.2883, allocations: 7.163 MB / 482.2 MB, free: 0.7617 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03481/0.3232, allocations: 30.19 MB / 0.5003 GB, free: 1.691 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1779/0.5011, allocations: 5.097 MB / 0.5053 GB, free: 94.22 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00139/0.5026, allocations: 1.243 MB / 0.5065 GB, free: 93.87 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00469/0.5073, allocations: 3.736 MB / 0.5102 GB, free: 91.7 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.659e-05/0.5073, allocations: 52.27 kB / 0.5102 GB, free: 91.65 MB / 378.7 MB Notification: Performance of pre-optimization done (n=111): time 3.507e-06/0.5073, allocations: 0 / 0.5102 GB, free: 91.65 MB / 378.7 MB Notification: Performance of matching and sorting (n=111): time 0.03871/0.546, allocations: 9.373 MB / 0.5194 GB, free: 86.7 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.411e-05/0.5461, allocations: 199.8 kB / 0.5196 GB, free: 86.47 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003567/0.5497, allocations: 3.023 MB / 0.5225 GB, free: 83.43 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.483e-05/0.5498, allocations: 41.7 kB / 0.5226 GB, free: 83.38 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001073/0.5508, allocations: 2.415 MB / 0.5249 GB, free: 80.97 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003177/0.5512, allocations: 0.4959 MB / 0.5254 GB, free: 80.48 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001688/0.5514, allocations: 104 kB / 0.5255 GB, free: 80.38 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002053/0.5516, allocations: 0.5372 MB / 0.526 GB, free: 79.84 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001709/0.5533, allocations: 1.584 MB / 0.5276 GB, free: 78.25 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002661/0.5559, allocations: 5.146 MB / 0.5326 GB, free: 71.33 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004682/0.5606, allocations: 7.308 MB / 0.5397 GB, free: 62.25 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.533e-05/0.5607, allocations: 36 kB / 0.5398 GB, free: 62.21 MB / 378.7 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.007306/0.568, allocations: 6.397 MB / 0.546 GB, free: 55.81 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.109e-05/0.5681, allocations: 60 kB / 0.5461 GB, free: 55.75 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001122/0.5682, allocations: 128.9 kB / 0.5462 GB, free: 55.63 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001108/0.5683, allocations: 168.9 kB / 0.5464 GB, free: 55.46 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003911/0.5723, allocations: 1.458 MB / 0.5478 GB, free: 54 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001301/0.5724, allocations: 251 kB / 0.548 GB, free: 53.76 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002647/0.575, allocations: 0.7421 MB / 0.5488 GB, free: 53.01 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002998/0.5754, allocations: 344 kB / 0.5491 GB, free: 52.67 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.001562/0.5769, allocations: 1.576 MB / 0.5506 GB, free: 51.09 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003218/0.5773, allocations: 252.8 kB / 0.5509 GB, free: 50.84 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009897/0.5783, allocations: 0.8408 MB / 0.5517 GB, free: 49.98 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.979e-05/0.5783, allocations: 12 kB / 0.5517 GB, free: 49.97 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.805e-06/0.5783, allocations: 2.062 kB / 0.5517 GB, free: 49.97 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.338e-06/0.5783, allocations: 7.984 kB / 0.5517 GB, free: 49.96 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004374/0.5827, allocations: 3.397 MB / 0.555 GB, free: 46.53 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.414e-06/0.5827, allocations: 0 / 0.555 GB, free: 46.53 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002044/0.5848, allocations: 411.4 kB / 0.5554 GB, free: 46.13 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.015e-05/0.5848, allocations: 8 kB / 0.5554 GB, free: 46.12 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.658e-05/0.5849, allocations: 35.91 kB / 0.5555 GB, free: 46.09 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.001e-06/0.5849, allocations: 4 kB / 0.5555 GB, free: 46.08 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.5849, allocations: 4 kB / 0.5555 GB, free: 46.08 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002259/0.5872, allocations: 2.776 MB / 0.5582 GB, free: 43.28 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004253/0.5876, allocations: 305.6 kB / 0.5585 GB, free: 42.96 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003254/0.5879, allocations: 31.98 kB / 0.5585 GB, free: 42.93 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009076/0.5888, allocations: 45.05 kB / 0.5585 GB, free: 42.88 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001643/0.589, allocations: 55.86 kB / 0.5586 GB, free: 42.83 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.163e-05/0.5891, allocations: 34 kB / 0.5586 GB, free: 42.8 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002246/0.5913, allocations: 1.833 MB / 0.5604 GB, free: 40.96 MB / 378.7 MB Notification: Performance of sort global known variables: time 8.21e-07/0.5914, allocations: 0 / 0.5604 GB, free: 40.96 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003693/0.5951, allocations: 0.8286 MB / 0.5612 GB, free: 40.13 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.003004/0.5981, allocations: 3.428 MB / 0.5646 GB, free: 36.68 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0047/0.6028, allocations: 3.573 MB / 0.5681 GB, free: 33.13 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.6028, allocations: 4 kB / 0.5681 GB, free: 33.13 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006947/0.6035, allocations: 0.7079 MB / 0.5688 GB, free: 32.42 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002167/0.6057, allocations: 262.5 kB / 0.569 GB, free: 32.17 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03208/0.6378, allocations: 24.35 MB / 0.5928 GB, free: 4.805 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001984/0.6398, allocations: 2.398 MB / 0.5951 GB, free: 2.379 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001384/0.6412, allocations: 1.257 MB / 0.5964 GB, free: 1.121 MB / 378.7 MB Notification: Performance of SimCode: time 7.72e-07/0.6412, allocations: 0 / 0.5964 GB, free: 1.121 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.15/5.791, allocations: 50.88 MB / 0.646 GB, free: 14.25 MB / 442.7 MB (rm -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses.fmu > Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches