Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001904/0.001904, allocations: 176.4 kB / 8.346 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.507/1.507, allocations: 221.5 MB / 230.3 MB, free: 7.574 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008755/0.0008753, allocations: 83.64 kB / 281.2 MB, free: 5.32 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.692e-05/1.694e-05, allocations: 4 kB / 337.2 MB, free: 9.914 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1104/0.1104, allocations: 50.41 MB / 387.6 MB, free: 7.465 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3963/0.5068, allocations: 87.79 MB / 475.4 MB, free: 6.898 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003037/0.5072, allocations: 88.69 kB / 475.4 MB, free: 6.812 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1637/0.6709, allocations: 60.03 MB / 0.5229 GB, free: 10.32 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.671, allocations: 3.938 kB / 0.5229 GB, free: 10.32 MB / 410.7 MB Notification: Performance of Transformations before backend: time 9.523e-05/0.6711, allocations: 47.94 kB / 0.523 GB, free: 10.27 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.01744/0.6885, allocations: 3.441 MB / 0.5263 GB, free: 6.77 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.589e-05/0.6886, allocations: 8.031 kB / 0.5263 GB, free: 6.762 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01229/0.7009, allocations: 2.356 MB / 0.5286 GB, free: 4.398 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01348/0.7144, allocations: 4.574 MB / 0.5331 GB, free: 15.77 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002212/0.7147, allocations: 72 kB / 0.5332 GB, free: 15.7 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001518/0.7162, allocations: 139.9 kB / 0.5333 GB, free: 15.56 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0111/0.7273, allocations: 5.54 MB / 0.5387 GB, free: 10.02 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01578/0.7431, allocations: 7.818 MB / 0.5464 GB, free: 1.348 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001553/0.7433, allocations: 43.62 kB / 0.5464 GB, free: 1.305 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006381/0.744, allocations: 28 kB / 0.5464 GB, free: 1.277 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001448/0.7455, allocations: 0.7379 MB / 0.5471 GB, free: 0.5352 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3112/1.057, allocations: 36.61 MB / 0.5829 GB, free: 84.79 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004777/1.062, allocations: 3.141 MB / 0.586 GB, free: 84.11 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003555/1.065, allocations: 2.179 MB / 0.5881 GB, free: 83.59 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001375/1.065, allocations: 19.55 kB / 0.5881 GB, free: 83.59 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.293e-05/1.065, allocations: 48.16 kB / 0.5882 GB, free: 83.54 MB / 426.7 MB Notification: Performance of pre-optimization done (n=122): time 4.919e-06/1.065, allocations: 0 / 0.5882 GB, free: 83.54 MB / 426.7 MB Notification: Performance of matching and sorting (n=136): time 0.03234/1.098, allocations: 13.47 MB / 0.6013 GB, free: 79.12 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.927e-05/1.098, allocations: 169.3 kB / 0.6015 GB, free: 78.93 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003857/1.102, allocations: 2.294 MB / 0.6037 GB, free: 78.07 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007718/1.103, allocations: 25.7 kB / 0.6037 GB, free: 78.04 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001163/1.104, allocations: 2.117 MB / 0.6058 GB, free: 76.55 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008297/1.105, allocations: 0.5546 MB / 0.6064 GB, free: 76.14 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002694/1.105, allocations: 3.969 kB / 0.6064 GB, free: 76.14 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002161/1.105, allocations: 0.5137 MB / 0.6069 GB, free: 75.75 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002664/1.108, allocations: 2.246 MB / 0.609 GB, free: 75 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003929/1.112, allocations: 5.229 MB / 0.6142 GB, free: 70.21 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00435/1.116, allocations: 3.333 MB / 0.6174 GB, free: 69.2 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.028e-05/1.116, allocations: 30.22 kB / 0.6174 GB, free: 69.2 MB / 426.7 MB Notification: Performance of matching and sorting (n=651) (initialization): time 0.02012/1.136, allocations: 8.725 MB / 0.626 GB, free: 66.68 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.503e-05/1.136, allocations: 54.98 kB / 0.626 GB, free: 66.68 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01079/1.147, allocations: 4.593 MB / 0.6305 GB, free: 64.96 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008814/1.156, allocations: 2.32 MB / 0.6328 GB, free: 63.48 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004599/1.161, allocations: 1.206 MB / 0.6339 GB, free: 62.46 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006725/1.168, allocations: 7.824 MB / 0.6416 GB, free: 54.99 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006621/1.174, allocations: 493.4 kB / 0.6421 GB, free: 54.68 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001774/1.176, allocations: 318.6 kB / 0.6424 GB, free: 54.39 MB / 426.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.001056/1.177, allocations: 364 kB / 0.6427 GB, free: 54.02 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01127/1.188, allocations: 5.189 MB / 0.6478 GB, free: 50.07 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001064/1.189, allocations: 233 kB / 0.648 GB, free: 49.84 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001247/1.191, allocations: 390.4 kB / 0.6484 GB, free: 49.49 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00985/1.201, allocations: 4.507 MB / 0.6528 GB, free: 45.27 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.469e-05/1.201, allocations: 4 kB / 0.6528 GB, free: 45.26 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.659e-05/1.201, allocations: 3.984 kB / 0.6528 GB, free: 45.26 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0088/1.21, allocations: 5.02 MB / 0.6577 GB, free: 40.2 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.327e-05/1.21, allocations: 3.938 kB / 0.6577 GB, free: 40.2 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001578/1.211, allocations: 275.6 kB / 0.6579 GB, free: 39.93 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007929/1.219, allocations: 2.339 MB / 0.6602 GB, free: 37.56 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007072/1.22, allocations: 36.42 kB / 0.6603 GB, free: 37.53 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007117/1.227, allocations: 8.609 MB / 0.6687 GB, free: 28.48 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001295/1.228, allocations: 2.774 MB / 0.6714 GB, free: 25.46 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0144/1.243, allocations: 7.985 MB / 0.6792 GB, free: 17.39 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009794/1.244, allocations: 302 kB / 0.6795 GB, free: 17.08 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000696/1.244, allocations: 23.92 kB / 0.6795 GB, free: 17.05 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002079/1.247, allocations: 251.5 kB / 0.6797 GB, free: 16.81 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003747/1.247, allocations: 99.83 kB / 0.6798 GB, free: 16.71 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000155/1.247, allocations: 45.44 kB / 0.6799 GB, free: 16.67 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002269/1.249, allocations: 1.518 MB / 0.6813 GB, free: 15.14 MB / 426.7 MB Notification: Performance of sort global known variables: time 9.82e-07/1.249, allocations: 4 kB / 0.6814 GB, free: 15.14 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004923/1.254, allocations: 0.8823 MB / 0.6822 GB, free: 14.26 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 24 ($STATESET12.x[3],$STATESET12.x[2],$STATESET12.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],$STATESET11.x[3],$STATESET11.x[2],$STATESET11.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.01431/1.269, allocations: 8.859 MB / 0.6909 GB, free: 5.336 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01154/1.28, allocations: 6.478 MB / 0.6972 GB, free: 14.75 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.163e-06/1.28, allocations: 4 kB / 0.6972 GB, free: 14.75 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0069/1.287, allocations: 3.339 MB / 0.7005 GB, free: 11.28 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002093/1.289, allocations: 229.6 kB / 0.7007 GB, free: 11.05 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0231/1.313, allocations: 8.164 MB / 0.7086 GB, free: 2.926 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002829/1.315, allocations: 2.351 MB / 0.7109 GB, free: 0.5547 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.2409/1.556, allocations: 1.667 MB / 0.7126 GB, free: 112.9 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00318/1.56, allocations: 1.15 MB / 0.7137 GB, free: 112.9 MB / 442.7 MB Notification: Performance of SimCode: time 1.262e-06/1.56, allocations: 0 / 0.7137 GB, free: 112.9 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1169/1.676, allocations: 62.2 MB / 0.7744 GB, free: 94.33 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001963/1.677, allocations: 163.9 kB / 0.7746 GB, free: 94.13 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.717/5.393, allocations: 3.938 kB / 0.7746 GB, free: 94.12 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity_res.mat does not exist to compare? outputFormat=mat