Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.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.PointGravity,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001821/0.001821, allocations: 201.8 kB / 8.767 MB, free: 288 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.544/1.544, allocations: 225.6 MB / 234.8 MB, free: 3.266 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001066/0.001066, allocations: 96.11 kB / 286.7 MB, free: 5.25 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.931e-05/1.933e-05, allocations: 4 kB / 343.8 MB, free: 8.164 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1277/0.1277, allocations: 51.48 MB / 395.3 MB, free: 4.648 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4252/0.553, allocations: 88.45 MB / 483.7 MB, free: 4.566 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002166/0.5532, allocations: 86.39 kB / 483.8 MB, free: 4.523 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1633/0.7166, allocations: 62.32 MB / 0.5333 GB, free: 11.11 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.424e-06/0.7166, allocations: 0 / 0.5333 GB, free: 11.11 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001141/0.7167, allocations: 40 kB / 0.5334 GB, free: 11.07 MB / 410.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.01848/0.7352, allocations: 3.647 MB / 0.5369 GB, free: 7.363 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.491e-05/0.7353, allocations: 8.031 kB / 0.5369 GB, free: 7.355 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0127/0.748, allocations: 2.461 MB / 0.5393 GB, free: 4.887 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01132/0.7594, allocations: 3.939 MB / 0.5432 GB, free: 0.8984 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001777/0.7596, allocations: 76 kB / 0.5433 GB, free: 0.8242 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00136/0.761, allocations: 143.8 kB / 0.5434 GB, free: 0.6836 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008883/0.7699, allocations: 5.532 MB / 0.5488 GB, free: 11.14 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01356/0.7835, allocations: 7.816 MB / 0.5564 GB, free: 2.477 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001324/0.7837, allocations: 59.47 kB / 0.5565 GB, free: 2.418 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004425/0.7841, allocations: 24 kB / 0.5565 GB, free: 2.395 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001138/0.7853, allocations: 0.7262 MB / 0.5572 GB, free: 1.668 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3616/1.147, allocations: 36.61 MB / 0.593 GB, free: 72.81 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004291/1.151, allocations: 3.153 MB / 0.5961 GB, free: 72.13 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002982/1.154, allocations: 2.164 MB / 0.5982 GB, free: 72.09 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001308/1.154, allocations: 14.88 kB / 0.5982 GB, free: 72.09 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.377e-05/1.154, allocations: 46.42 kB / 0.5982 GB, free: 72.05 MB / 442.7 MB Notification: Performance of pre-optimization done (n=122): time 5.941e-06/1.155, allocations: 3.891 kB / 0.5982 GB, free: 72.05 MB / 442.7 MB Notification: Performance of matching and sorting (n=136): time 0.03298/1.187, allocations: 13.47 MB / 0.6114 GB, free: 69.74 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.658e-05/1.188, allocations: 165.5 kB / 0.6115 GB, free: 69.55 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004118/1.192, allocations: 2.287 MB / 0.6138 GB, free: 69.28 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006347/1.192, allocations: 29.3 kB / 0.6138 GB, free: 69.25 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001454/1.194, allocations: 2.117 MB / 0.6159 GB, free: 68.17 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001058/1.195, allocations: 0.5515 MB / 0.6164 GB, free: 67.86 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003777/1.195, allocations: 3.156 kB / 0.6164 GB, free: 67.86 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002877/1.196, allocations: 0.5118 MB / 0.6169 GB, free: 67.55 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003004/1.199, allocations: 2.238 MB / 0.6191 GB, free: 67.54 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005041/1.204, allocations: 5.237 MB / 0.6242 GB, free: 62.93 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006366/1.21, allocations: 3.335 MB / 0.6275 GB, free: 61.96 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002251/1.21, allocations: 31.03 kB / 0.6275 GB, free: 61.96 MB / 442.7 MB Notification: Performance of matching and sorting (n=651) (initialization): time 0.02415/1.235, allocations: 8.731 MB / 0.636 GB, free: 59.6 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001381/1.235, allocations: 50.53 kB / 0.6361 GB, free: 59.6 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01371/1.248, allocations: 4.601 MB / 0.6406 GB, free: 58.51 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009643/1.258, allocations: 2.323 MB / 0.6428 GB, free: 58.23 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005187/1.263, allocations: 1.207 MB / 0.644 GB, free: 58.09 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007705/1.271, allocations: 7.834 MB / 0.6517 GB, free: 52.42 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006244/1.277, allocations: 496.8 kB / 0.6521 GB, free: 52.39 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001708/1.279, allocations: 314.5 kB / 0.6524 GB, free: 52.35 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 490 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (599): * Single equations (assignments): 584 * 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.001692/1.281, allocations: 369.2 kB / 0.6528 GB, free: 52.04 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01261/1.294, allocations: 5.187 MB / 0.6579 GB, free: 50.7 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001399/1.295, allocations: 239 kB / 0.6581 GB, free: 50.57 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001386/1.296, allocations: 388.2 kB / 0.6584 GB, free: 50.34 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0108/1.307, allocations: 4.516 MB / 0.6629 GB, free: 49.24 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.744e-05/1.307, allocations: 7.938 kB / 0.6629 GB, free: 49.23 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.221e-05/1.307, allocations: 10.78 kB / 0.6629 GB, free: 49.23 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009852/1.317, allocations: 4.996 MB / 0.6678 GB, free: 47.32 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.737e-05/1.317, allocations: 0 / 0.6678 GB, free: 47.32 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00174/1.319, allocations: 286 kB / 0.668 GB, free: 47.3 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008395/1.327, allocations: 2.341 MB / 0.6703 GB, free: 46.99 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006125/1.328, allocations: 29.67 kB / 0.6703 GB, free: 46.99 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007949/1.336, allocations: 8.602 MB / 0.6787 GB, free: 41.2 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.00142/1.338, allocations: 2.783 MB / 0.6815 GB, free: 38.46 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01526/1.353, allocations: 7.979 MB / 0.6893 GB, free: 33.84 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008167/1.354, allocations: 309.3 kB / 0.6895 GB, free: 33.52 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008969/1.355, allocations: 22.75 kB / 0.6896 GB, free: 33.5 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002633/1.357, allocations: 245.4 kB / 0.6898 GB, free: 33.38 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000602/1.358, allocations: 102.6 kB / 0.6899 GB, free: 33.32 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002243/1.358, allocations: 39.5 kB / 0.6899 GB, free: 33.29 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002603/1.361, allocations: 1.524 MB / 0.6914 GB, free: 31.96 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.192e-06/1.361, allocations: 0 / 0.6914 GB, free: 31.96 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.006164/1.367, allocations: 0.8719 MB / 0.6923 GB, free: 31.09 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 24 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.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],$STATESET0.x[3],$STATESET0.x[2],$STATESET0.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 () * 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.01533/1.382, allocations: 8.884 MB / 0.701 GB, free: 23.71 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01179/1.394, allocations: 6.477 MB / 0.7073 GB, free: 17.99 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.362e-05/1.394, allocations: 0 / 0.7073 GB, free: 17.99 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005839/1.4, allocations: 3.336 MB / 0.7105 GB, free: 14.92 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001947/1.402, allocations: 228.5 kB / 0.7108 GB, free: 14.7 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01996/1.422, allocations: 8.161 MB / 0.7187 GB, free: 6.582 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001961/1.424, allocations: 2.346 MB / 0.721 GB, free: 4.215 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.004237/1.428, allocations: 1.671 MB / 0.7226 GB, free: 2.547 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002095/1.431, allocations: 1.155 MB / 0.7238 GB, free: 1.395 MB / 442.7 MB Notification: Performance of SimCode: time 1.664e-06/1.431, allocations: 0 / 0.7238 GB, free: 1.395 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4054/1.836, allocations: 62.19 MB / 0.7845 GB, free: 94.82 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001561/1.836, allocations: 155.7 kB / 0.7847 GB, free: 94.64 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.81/5.646, allocations: 0.8438 kB / 0.7847 GB, free: 94.64 MB / 458.7 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity_res.mat does not exist to compare? outputFormat=mat