Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.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.PointGravity,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity",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.002419/0.002419, allocations: 188.7 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.055/2.055, allocations: 205.4 MB / 222.5 MB, free: 13.85 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.001154/0.001154, allocations: 94.8 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003927/0.0003928, allocations: 8 kB / 327.1 MB, free: 15 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09798/0.09842, allocations: 47.58 MB / 374.6 MB, free: 15.34 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity): time 0.01894/0.1174, allocations: 11.88 MB / 386.5 MB, free: 3.418 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.2748/0.3923, allocations: 4.049 MB / 390.6 MB, free: 8.617 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00234/0.3947, allocations: 52.81 kB / 390.6 MB, free: 8.617 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002374/0.3971, allocations: 0.5393 MB / 391.2 MB, free: 8.617 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008607/0.4058, allocations: 1.995 MB / 393.2 MB, free: 8.582 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001823/0.4077, allocations: 426.8 kB / 393.6 MB, free: 8.582 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.004906/0.4126, allocations: 1.742 MB / 395.3 MB, free: 8.562 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001337/0.414, allocations: 0.521 MB / 395.8 MB, free: 8.355 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001969/0.416, allocations: 0.6521 MB / 396.5 MB, free: 8.355 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002734/0.4188, allocations: 0.9693 MB / 397.5 MB, free: 8.352 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009531/0.4198, allocations: 83.5 kB / 397.5 MB, free: 8.352 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0032/0.4231, allocations: 0.798 MB / 398.3 MB, free: 8.348 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002244/0.4254, allocations: 0.9845 MB / 399.3 MB, free: 8.348 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001343/0.4268, allocations: 0.4956 MB / 399.8 MB, free: 8.219 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005889/0.4327, allocations: 3.017 MB / 402.8 MB, free: 6.992 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.4327, allocations: 0 / 402.8 MB, free: 6.992 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.705e-06/0.4328, allocations: 0 / 402.8 MB, free: 6.992 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001721/0.4329, allocations: 1.156 kB / 402.8 MB, free: 6.992 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 911 * Number of variables: 911 Notification: Performance of Generate backend data structure: time 0.01086/0.4438, allocations: 2.793 MB / 405.6 MB, free: 5.25 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.989e-05/0.4439, allocations: 8.562 kB / 405.6 MB, free: 5.25 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001591/0.4455, allocations: 435.8 kB / 406.1 MB, free: 5.109 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01686/0.4624, allocations: 2.258 MB / 408.3 MB, free: 4.125 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00631/0.4687, allocations: 2.095 MB / 410.4 MB, free: 3.367 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001829/0.469, allocations: 123.1 kB / 410.5 MB, free: 3.355 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002362/0.4713, allocations: 299.8 kB / 410.8 MB, free: 3.309 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02792/0.4993, allocations: 8.611 MB / 419.4 MB, free: 13.71 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001349/0.4995, allocations: 35.66 kB / 419.5 MB, free: 13.68 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005595/0.5001, allocations: 74.41 kB / 419.5 MB, free: 13.63 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004343/0.5044, allocations: 1.406 MB / 420.9 MB, free: 12.23 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03524/0.5397, allocations: 9.906 MB / 430.9 MB, free: 2.332 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06179/0.6016, allocations: 30.71 MB / 461.6 MB, free: 2.934 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02297/0.6246, allocations: 4.512 MB / 466.1 MB, free: 14.27 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001899/0.6249, allocations: 13.06 kB / 466.1 MB, free: 14.26 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.112e-05/0.6249, allocations: 50.55 kB / 466.1 MB, free: 14.2 MB / 346.7 MB Notification: Performance of pre-optimization done (n=122): time 6.011e-06/0.625, allocations: 0 / 466.1 MB, free: 14.2 MB / 346.7 MB Notification: Performance of matching and sorting (n=136): time 0.09206/0.717, allocations: 18.96 MB / 485.1 MB, free: 10.91 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003457/0.7205, allocations: 3.085 MB / 488.2 MB, free: 7.508 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007633/0.7282, allocations: 3.23 MB / 491.4 MB, free: 4.262 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008019/0.7291, allocations: 41.7 kB / 491.5 MB, free: 4.215 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002427/0.7315, allocations: 2.067 MB / 493.5 MB, free: 2.164 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001506/0.7331, allocations: 0.5688 MB / 494.1 MB, free: 1.602 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007269/0.7338, allocations: 93.83 kB / 494.2 MB, free: 1.512 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0004459/0.7343, allocations: 0.5173 MB / 494.7 MB, free: 0.9844 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007896/0.7422, allocations: 2.645 MB / 497.3 MB, free: 14.33 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01137/0.7536, allocations: 5.567 MB / 0.4911 GB, free: 7.289 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01039/0.7641, allocations: 3.716 MB / 0.4948 GB, free: 3.574 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.91e-05/0.7642, allocations: 28 kB / 0.4948 GB, free: 3.547 MB / 378.7 MB Notification: Performance of matching and sorting (n=636) (initialization): time 0.06021/0.8244, allocations: 11.7 MB / 0.5062 GB, free: 7.809 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001022/0.8246, allocations: 48 kB / 0.5063 GB, free: 7.762 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04762/0.8722, allocations: 7.055 MB / 0.5131 GB, free: 0.6719 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04362/0.9159, allocations: 4.562 MB / 0.5176 GB, free: 12.08 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008489/0.9245, allocations: 1.232 MB / 0.5188 GB, free: 10.84 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03162/0.9561, allocations: 12.08 MB / 0.5306 GB, free: 14.23 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008784/0.965, allocations: 0.581 MB / 0.5312 GB, free: 13.65 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001773/0.9668, allocations: 314.7 kB / 0.5315 GB, free: 13.34 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 475 * Number of states: 0 () * Number of discrete variables: 18 (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 (584): * Single equations (assignments): 569 * Array equations: 7 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 6 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 4 {(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 2 {4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005418/0.9723, allocations: 1.417 MB / 0.5328 GB, free: 11.92 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000989/0.9733, allocations: 258.3 kB / 0.5331 GB, free: 11.66 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001898/0.9752, allocations: 415.4 kB / 0.5335 GB, free: 11.25 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02389/0.9991, allocations: 5.014 MB / 0.5384 GB, free: 6.199 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.882e-05/0.9992, allocations: 4 kB / 0.5384 GB, free: 6.195 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.7e-05/0.9993, allocations: 7.938 kB / 0.5384 GB, free: 6.188 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01743/1.017, allocations: 5.382 MB / 0.5437 GB, free: 0.7578 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.934e-05/1.017, allocations: 8 kB / 0.5437 GB, free: 0.75 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00396/1.021, allocations: 367.4 kB / 0.544 GB, free: 400 kB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.2932/1.314, allocations: 2.379 MB / 0.5463 GB, free: 143.9 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008625/1.315, allocations: 47.23 kB / 0.5464 GB, free: 143.9 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01554/1.331, allocations: 9.001 MB / 0.5552 GB, free: 138.8 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002339/1.333, allocations: 2.918 MB / 0.558 GB, free: 136.1 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03078/1.364, allocations: 8.848 MB / 0.5667 GB, free: 133.6 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001147/1.365, allocations: 341.4 kB / 0.567 GB, free: 133.5 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001616/1.367, allocations: 35.58 kB / 0.567 GB, free: 133.5 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004851/1.371, allocations: 317.7 kB / 0.5673 GB, free: 133.5 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001187/1.373, allocations: 106.3 kB / 0.5674 GB, free: 133.5 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003132/1.373, allocations: 53.61 kB / 0.5675 GB, free: 133.4 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.005204/1.378, allocations: 2.052 MB / 0.5695 GB, free: 132.8 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.062e-06/1.378, allocations: 0 / 0.5695 GB, free: 132.8 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.007275/1.386, allocations: 1.024 MB / 0.5705 GB, free: 132.7 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 24 ($STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],body2.frame_a.r_0[1],body2.frame_a.r_0[2],body2.frame_a.r_0[3],body2.v_0[1],body2.v_0[2],body2.v_0[3],body2.w_a[1],body2.w_a[2],body2.w_a[3],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.w_a[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 (92): * Single equations (assignments): 81 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 6 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 4 {(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 2 {4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.03005/1.416, allocations: 9.751 MB / 0.58 GB, free: 128.3 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.02014/1.436, allocations: 7.361 MB / 0.5872 GB, free: 121.3 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.274e-06/1.436, allocations: 0 / 0.5872 GB, free: 121.3 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01044/1.446, allocations: 3.629 MB / 0.5907 GB, free: 117.5 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003027/1.45, allocations: 291 kB / 0.591 GB, free: 117.2 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1212/1.571, allocations: 105 MB / 0.6936 GB, free: 8.879 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004089/1.575, allocations: 2.364 MB / 0.6959 GB, free: 6.488 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003854/1.579, allocations: 1.222 MB / 0.6971 GB, free: 5.266 MB / 426.7 MB Notification: Performance of SimCode: time 1.363e-06/1.579, allocations: 0 / 0.6971 GB, free: 5.266 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.417/6.996, allocations: 154.8 MB / 0.8483 GB, free: 11.5 MB / 426.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity_res.mat does not exist to compare? outputFormat=mat