Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.0009686/0.0009686, allocations: 172.2 kB / 14.1 MB, free: 1.223 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.443/1.443, allocations: 205.2 MB / 219.8 MB, free: 14.26 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.0009348/0.0009348, allocations: 82.66 kB / 268 MB, free: 14.1 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.572e-05/2.573e-05, allocations: 4 kB / 322.5 MB, free: 17.25 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08954/0.08958, allocations: 47.57 MB / 370.1 MB, free: 1.602 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3143/0.4039, allocations: 87.15 MB / 457.3 MB, free: 6.281 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002145/0.4041, allocations: 85.39 kB / 457.4 MB, free: 6.238 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1555/0.5597, allocations: 60.22 MB / 0.5054 GB, free: 10.87 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.863e-06/0.5597, allocations: 0 / 0.5054 GB, free: 10.87 MB / 394.7 MB Notification: Performance of Transformations before backend: time 8.174e-05/0.5598, allocations: 44 kB / 0.5055 GB, free: 10.83 MB / 394.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.01279/0.5726, allocations: 3.46 MB / 0.5089 GB, free: 7.309 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.164e-05/0.5727, allocations: 8.031 kB / 0.5089 GB, free: 7.301 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000832/0.5735, allocations: 493.2 kB / 0.5093 GB, free: 6.809 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01043/0.584, allocations: 2.348 MB / 0.5116 GB, free: 4.453 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0114/0.5954, allocations: 4.879 MB / 0.5164 GB, free: 15.52 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001696/0.5956, allocations: 172.3 kB / 0.5166 GB, free: 15.35 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008051/0.5964, allocations: 227.8 kB / 0.5168 GB, free: 15.13 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01585/0.6123, allocations: 8.479 MB / 0.5251 GB, free: 5.789 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.101e-05/0.6124, allocations: 51.52 kB / 0.5251 GB, free: 5.738 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000357/0.6127, allocations: 123.9 kB / 0.5252 GB, free: 5.617 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001048/0.6138, allocations: 0.7224 MB / 0.5259 GB, free: 4.891 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.217/0.8308, allocations: 9.452 MB / 0.5352 GB, free: 103.1 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0359/0.8668, allocations: 37.84 MB / 0.5721 GB, free: 78.74 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01082/0.8777, allocations: 4.018 MB / 0.576 GB, free: 77.38 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002983/0.8807, allocations: 2.2 MB / 0.5782 GB, free: 76.5 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001211/0.8808, allocations: 16.36 kB / 0.5782 GB, free: 76.5 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.933e-05/0.8809, allocations: 56.11 kB / 0.5783 GB, free: 76.45 MB / 410.7 MB Notification: Performance of pre-optimization done (n=122): time 4.399e-06/0.8809, allocations: 0 / 0.5783 GB, free: 76.45 MB / 410.7 MB Notification: Performance of matching and sorting (n=136): time 0.03689/0.9178, allocations: 14.52 MB / 0.5924 GB, free: 72.17 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001795/0.9196, allocations: 3.047 MB / 0.5954 GB, free: 69.12 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004733/0.9244, allocations: 2.639 MB / 0.598 GB, free: 68.18 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006434/0.9251, allocations: 48.31 kB / 0.598 GB, free: 68.13 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001024/0.9261, allocations: 2.088 MB / 0.6001 GB, free: 66.62 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005519/0.9267, allocations: 0.5652 MB / 0.6006 GB, free: 66.22 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002318/0.9269, allocations: 93.22 kB / 0.6007 GB, free: 66.15 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002123/0.9271, allocations: 0.5087 MB / 0.6012 GB, free: 65.76 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002676/0.9298, allocations: 2.298 MB / 0.6035 GB, free: 65.02 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003588/0.9334, allocations: 5.188 MB / 0.6085 GB, free: 60.35 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003705/0.9371, allocations: 3.382 MB / 0.6118 GB, free: 59.19 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.564e-05/0.9372, allocations: 28.94 kB / 0.6119 GB, free: 59.19 MB / 410.7 MB Notification: Performance of matching and sorting (n=630) (initialization): time 0.01668/0.9538, allocations: 9.255 MB / 0.6209 GB, free: 51.72 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.348e-05/0.9539, allocations: 52.92 kB / 0.6209 GB, free: 51.67 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01033/0.9643, allocations: 4.65 MB / 0.6255 GB, free: 48.18 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008287/0.9726, allocations: 2.36 MB / 0.6278 GB, free: 46.67 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004273/0.9769, allocations: 1.164 MB / 0.6289 GB, free: 45.69 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006787/0.9837, allocations: 8.125 MB / 0.6369 GB, free: 37.32 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005682/0.9895, allocations: 0.5664 MB / 0.6374 GB, free: 36.75 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001106/0.9906, allocations: 302.1 kB / 0.6377 GB, free: 36.46 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 469 * 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 (578): * Single equations (assignments): 563 * 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.001466/0.9921, allocations: 469.5 kB / 0.6382 GB, free: 35.99 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006904/0.9928, allocations: 260.6 kB / 0.6384 GB, free: 35.73 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001208/0.994, allocations: 419.5 kB / 0.6388 GB, free: 35.32 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01008/1.004, allocations: 4.558 MB / 0.6433 GB, free: 30.73 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.252e-05/1.004, allocations: 11.88 kB / 0.6433 GB, free: 30.72 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.741e-05/1.004, allocations: 15.92 kB / 0.6433 GB, free: 30.7 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007737/1.012, allocations: 5.329 MB / 0.6485 GB, free: 25.32 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.228e-06/1.012, allocations: 0 / 0.6485 GB, free: 25.32 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001367/1.013, allocations: 283.5 kB / 0.6488 GB, free: 25.05 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007639/1.021, allocations: 2.37 MB / 0.6511 GB, free: 22.65 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002491/1.021, allocations: 44.89 kB / 0.6511 GB, free: 22.61 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007072/1.028, allocations: 8.832 MB / 0.6597 GB, free: 13.25 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001436/1.03, allocations: 2.895 MB / 0.6626 GB, free: 10.08 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0146/1.044, allocations: 8.094 MB / 0.6705 GB, free: 1.898 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008896/1.045, allocations: 341.5 kB / 0.6708 GB, free: 1.543 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000831/1.046, allocations: 33.39 kB / 0.6708 GB, free: 1.512 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002351/1.049, allocations: 263.5 kB / 0.6711 GB, free: 1.254 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004283/1.049, allocations: 107.8 kB / 0.6712 GB, free: 1.148 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002119/1.049, allocations: 44.91 kB / 0.6712 GB, free: 1.105 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003308/1.053, allocations: 1.835 MB / 0.673 GB, free: 15.27 MB / 426.7 MB Notification: Performance of sort global known variables: time 3e-07/1.053, allocations: 0 / 0.673 GB, free: 15.27 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004919/1.058, allocations: 0.9378 MB / 0.6739 GB, free: 14.33 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 () * 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.01686/1.074, allocations: 8.995 MB / 0.6827 GB, free: 5.273 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.199/1.273, allocations: 6.682 MB / 0.6892 GB, free: 111.3 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.36e-06/1.273, allocations: 0 / 0.6892 GB, free: 111.3 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006242/1.28, allocations: 3.391 MB / 0.6926 GB, free: 110.4 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001689/1.281, allocations: 280.1 kB / 0.6928 GB, free: 110.4 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01962/1.301, allocations: 8.367 MB / 0.701 GB, free: 108.7 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002016/1.303, allocations: 2.362 MB / 0.7033 GB, free: 107.9 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.004099/1.307, allocations: 1.632 MB / 0.7049 GB, free: 107.8 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001648/1.309, allocations: 1.162 MB / 0.706 GB, free: 107.8 MB / 426.7 MB Notification: Performance of SimCode: time 6.51e-07/1.309, allocations: 1.281 kB / 0.706 GB, free: 107.8 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08568/1.395, allocations: 66.62 MB / 0.7711 GB, free: 71.98 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002102/1.395, allocations: 199.1 kB / 0.7713 GB, free: 71.75 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.257/4.652, allocations: 2.078 kB / 0.7713 GB, free: 71.75 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity_res.mat does not exist to compare? outputFormat=mat