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.001256/0.001256, allocations: 175.5 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.376/1.376, allocations: 221.3 MB / 235.5 MB, free: 2.957 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.00104/0.00104, allocations: 91.72 kB / 286.5 MB, free: 252 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.029e-05/3.032e-05, allocations: 4 kB / 343.9 MB, free: 4.242 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1089/0.109, allocations: 50.41 MB / 394.3 MB, free: 1.789 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3671/0.4762, allocations: 88.47 MB / 482.8 MB, free: 15.04 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002643/0.4765, allocations: 83.95 kB / 482.9 MB, free: 14.95 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1673/0.6438, allocations: 60.81 MB / 0.531 GB, free: 1.684 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.6439, allocations: 0 / 0.531 GB, free: 1.684 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001411/0.644, allocations: 51.92 kB / 0.531 GB, free: 1.633 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.01678/0.6608, allocations: 3.453 MB / 0.5344 GB, free: 14.12 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.196e-05/0.6609, allocations: 8.031 kB / 0.5344 GB, free: 14.11 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002166/0.6631, allocations: 485.2 kB / 0.5349 GB, free: 13.62 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0121/0.6752, allocations: 2.356 MB / 0.5372 GB, free: 11.26 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01364/0.6888, allocations: 4.566 MB / 0.5416 GB, free: 6.648 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003059/0.6892, allocations: 176.4 kB / 0.5418 GB, free: 6.473 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001802/0.691, allocations: 235.8 kB / 0.542 GB, free: 6.242 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3059/0.997, allocations: 8.481 MB / 0.5503 GB, free: 102.8 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001408/0.9972, allocations: 46 kB / 0.5503 GB, free: 102.8 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004789/0.9977, allocations: 119.7 kB / 0.5504 GB, free: 102.8 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001492/0.9992, allocations: 0.7282 MB / 0.5512 GB, free: 102.8 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02459/1.024, allocations: 9.459 MB / 0.5604 GB, free: 102.8 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04296/1.067, allocations: 37.8 MB / 0.5973 GB, free: 76.6 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01201/1.079, allocations: 4.018 MB / 0.6012 GB, free: 75.24 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00358/1.083, allocations: 2.205 MB / 0.6034 GB, free: 74.36 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001588/1.083, allocations: 9.844 kB / 0.6034 GB, free: 74.36 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.098e-05/1.083, allocations: 50.42 kB / 0.6034 GB, free: 74.31 MB / 426.7 MB Notification: Performance of pre-optimization done (n=122): time 6.322e-06/1.083, allocations: 3.469 kB / 0.6034 GB, free: 74.31 MB / 426.7 MB Notification: Performance of matching and sorting (n=136): time 0.04154/1.124, allocations: 14.4 MB / 0.6175 GB, free: 70.05 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001831/1.126, allocations: 3.052 MB / 0.6205 GB, free: 67 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006009/1.132, allocations: 2.613 MB / 0.623 GB, free: 66.06 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006907/1.133, allocations: 46.67 kB / 0.6231 GB, free: 66.02 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001815/1.135, allocations: 2.077 MB / 0.6251 GB, free: 64.55 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001207/1.136, allocations: 0.5653 MB / 0.6257 GB, free: 64.15 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007295/1.137, allocations: 92.98 kB / 0.6257 GB, free: 64.08 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003685/1.137, allocations: 0.5084 MB / 0.6262 GB, free: 63.69 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003495/1.141, allocations: 2.301 MB / 0.6285 GB, free: 62.95 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004953/1.146, allocations: 5.195 MB / 0.6336 GB, free: 58.19 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004877/1.151, allocations: 3.382 MB / 0.6369 GB, free: 56.47 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000106/1.151, allocations: 28 kB / 0.6369 GB, free: 56.44 MB / 426.7 MB Notification: Performance of matching and sorting (n=630) (initialization): time 0.01961/1.17, allocations: 9.259 MB / 0.6459 GB, free: 48.87 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001014/1.17, allocations: 48 kB / 0.646 GB, free: 48.82 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01092/1.181, allocations: 4.656 MB / 0.6505 GB, free: 45.34 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008698/1.19, allocations: 2.354 MB / 0.6528 GB, free: 43.41 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00421/1.194, allocations: 1.17 MB / 0.654 GB, free: 42.24 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006878/1.201, allocations: 8.116 MB / 0.6619 GB, free: 33.61 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006549/1.208, allocations: 0.5707 MB / 0.6625 GB, free: 33.04 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001884/1.21, allocations: 307.3 kB / 0.6627 GB, free: 32.75 MB / 426.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.00232/1.212, allocations: 473.7 kB / 0.6632 GB, free: 32.28 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00107/1.213, allocations: 256.7 kB / 0.6634 GB, free: 32.03 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001687/1.215, allocations: 415.4 kB / 0.6638 GB, free: 31.62 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01114/1.226, allocations: 4.562 MB / 0.6683 GB, free: 27.02 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-05/1.226, allocations: 4 kB / 0.6683 GB, free: 27.02 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.218e-05/1.226, allocations: 7.984 kB / 0.6683 GB, free: 27.01 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01056/1.237, allocations: 5.323 MB / 0.6735 GB, free: 21.64 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.989e-05/1.237, allocations: 0 / 0.6735 GB, free: 21.64 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001646/1.239, allocations: 283.5 kB / 0.6738 GB, free: 21.36 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008252/1.247, allocations: 2.374 MB / 0.6761 GB, free: 18.96 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004848/1.247, allocations: 51.84 kB / 0.6761 GB, free: 18.91 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007524/1.255, allocations: 8.824 MB / 0.6848 GB, free: 9.566 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001384/1.256, allocations: 2.89 MB / 0.6876 GB, free: 6.395 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01609/1.272, allocations: 8.103 MB / 0.6955 GB, free: 14.21 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001253/1.274, allocations: 345.5 kB / 0.6958 GB, free: 13.85 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001209/1.275, allocations: 32.69 kB / 0.6959 GB, free: 13.82 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002924/1.278, allocations: 259.5 kB / 0.6961 GB, free: 13.56 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006676/1.279, allocations: 108.3 kB / 0.6962 GB, free: 13.46 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003336/1.279, allocations: 49.06 kB / 0.6963 GB, free: 13.41 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.004196/1.283, allocations: 1.813 MB / 0.698 GB, free: 11.59 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.91e-07/1.283, allocations: 0 / 0.698 GB, free: 11.59 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.006433/1.29, allocations: 0.9402 MB / 0.6989 GB, free: 10.66 MB / 442.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.0184/1.308, allocations: 8.977 MB / 0.7077 GB, free: 1.605 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.2574/1.565, allocations: 6.691 MB / 0.7142 GB, free: 112.2 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.955e-06/1.566, allocations: 0 / 0.7142 GB, free: 112.2 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007092/1.573, allocations: 3.387 MB / 0.7176 GB, free: 111.4 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002293/1.575, allocations: 285.6 kB / 0.7178 GB, free: 111.4 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02456/1.6, allocations: 8.358 MB / 0.726 GB, free: 109.7 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00296/1.603, allocations: 2.35 MB / 0.7283 GB, free: 109 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.004913/1.608, allocations: 1.626 MB / 0.7299 GB, free: 108.9 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00208/1.61, allocations: 1.158 MB / 0.731 GB, free: 108.8 MB / 442.7 MB Notification: Performance of SimCode: time 9.02e-07/1.61, allocations: 0 / 0.731 GB, free: 108.8 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1027/1.712, allocations: 66.4 MB / 0.7958 GB, free: 73.42 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001449/1.712, allocations: 203.2 kB / 0.796 GB, free: 73.19 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.058/5.77, allocations: 0 / 0.796 GB, free: 73.19 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