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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001227/0.001227, allocations: 91.48 kB / 16.31 MB, free: 5.566 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001436/0.001436, allocations: 176.8 kB / 17.2 MB, free: 5.492 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.427/1.427, allocations: 223.2 MB / 241.2 MB, free: 352 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002595/0.0002595, allocations: 8 kB / 300.9 MB, free: 6.352 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.1069, allocations: 50.41 MB / 351.3 MB, free: 3.926 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity): time 0.01189/0.1188, allocations: 12.5 MB / 363.8 MB, free: 7.375 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008334/0.1272, allocations: 3.974 MB / 367.8 MB, free: 3.391 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001828/0.1291, allocations: 59.81 kB / 367.9 MB, free: 3.332 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001285/0.1304, allocations: 0.591 MB / 368.5 MB, free: 2.738 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004818/0.1352, allocations: 2.207 MB / 370.7 MB, free: 0.5234 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009837/0.1362, allocations: 439.3 kB / 371.1 MB, free: 96 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.2101/0.3463, allocations: 3.242 MB / 374.3 MB, free: 9.43 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001084/0.3475, allocations: 0.5254 MB / 374.9 MB, free: 9.219 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001785/0.3493, allocations: 0.7693 MB / 375.6 MB, free: 9.219 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002343/0.3516, allocations: 1.3 MB / 376.9 MB, free: 9.215 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003158/0.3519, allocations: 82.66 kB / 377 MB, free: 9.215 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001901/0.3538, allocations: 0.828 MB / 377.8 MB, free: 9.215 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001352/0.3552, allocations: 1.045 MB / 378.9 MB, free: 9.215 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006251/0.3558, allocations: 0.4941 MB / 379.4 MB, free: 9.168 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003664/0.3595, allocations: 3.006 MB / 382.4 MB, free: 8.961 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.061e-06/0.3595, allocations: 4 kB / 382.4 MB, free: 8.957 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.226e-06/0.3595, allocations: 1 kB / 382.4 MB, free: 8.957 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.232e-05/0.3596, allocations: 0 / 382.4 MB, free: 8.957 MB / 302.1 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.005979/0.3656, allocations: 2.749 MB / 385.1 MB, free: 7.422 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.638e-05/0.3657, allocations: 16.5 kB / 385.2 MB, free: 7.418 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006999/0.3664, allocations: 439.1 kB / 385.6 MB, free: 7.273 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007376/0.3737, allocations: 1.958 MB / 387.5 MB, free: 6.367 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004275/0.378, allocations: 2.201 MB / 389.7 MB, free: 5.516 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000115/0.3782, allocations: 115.2 kB / 389.9 MB, free: 5.512 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008798/0.3791, allocations: 301.9 kB / 390.2 MB, free: 5.461 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0138/0.3929, allocations: 8.239 MB / 398.4 MB, free: 1.938 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.924e-05/0.393, allocations: 35.31 kB / 398.4 MB, free: 1.906 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002727/0.3933, allocations: 76.03 kB / 398.5 MB, free: 1.879 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001788/0.3951, allocations: 1.396 MB / 399.9 MB, free: 0.6992 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01866/0.4137, allocations: 9.509 MB / 409.4 MB, free: 8.039 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05404/0.4678, allocations: 30.51 MB / 439.9 MB, free: 8.844 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01758/0.4854, allocations: 4.422 MB / 444.3 MB, free: 4.262 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005272/0.4908, allocations: 2.124 MB / 446.5 MB, free: 2.125 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001155/0.4909, allocations: 10.66 kB / 446.5 MB, free: 2.117 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.319e-05/0.491, allocations: 47.58 kB / 446.5 MB, free: 2.062 MB / 350.1 MB Notification: Performance of pre-optimization done (n=122): time 5.03e-06/0.491, allocations: 0 / 446.5 MB, free: 2.062 MB / 350.1 MB Notification: Performance of matching and sorting (n=136): time 0.07881/0.5699, allocations: 18.42 MB / 464.9 MB, free: 15.38 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003733/0.5736, allocations: 3.054 MB / 468 MB, free: 12 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007375/0.581, allocations: 2.985 MB / 471 MB, free: 8.996 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008633/0.5819, allocations: 45.64 kB / 471 MB, free: 8.945 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002286/0.5842, allocations: 2.081 MB / 473.1 MB, free: 6.879 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001248/0.5855, allocations: 0.5652 MB / 473.7 MB, free: 6.32 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003499/0.5859, allocations: 96 kB / 473.8 MB, free: 6.227 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000322/0.5862, allocations: 0.5086 MB / 474.3 MB, free: 5.711 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004173/0.5904, allocations: 2.559 MB / 476.8 MB, free: 3.145 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007152/0.5976, allocations: 5.502 MB / 482.3 MB, free: 12.18 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006921/0.6045, allocations: 3.606 MB / 485.9 MB, free: 8.57 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.153e-05/0.6046, allocations: 33.75 kB / 486 MB, free: 8.539 MB / 398.1 MB Notification: Performance of matching and sorting (n=636) (initialization): time 0.02423/0.6289, allocations: 9.825 MB / 495.8 MB, free: 14.68 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.291e-05/0.629, allocations: 54.5 kB / 495.9 MB, free: 14.63 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01205/0.641, allocations: 5.095 MB / 0.4892 GB, free: 9.512 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008342/0.6494, allocations: 2.366 MB / 0.4915 GB, free: 7.117 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005356/0.6548, allocations: 1.236 MB / 0.4927 GB, free: 5.879 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009876/0.6647, allocations: 8.105 MB / 0.5006 GB, free: 13.25 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006705/0.6715, allocations: 0.5625 MB / 0.5012 GB, free: 12.68 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001712/0.6733, allocations: 318.8 kB / 0.5015 GB, free: 12.38 MB / 430.1 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.004305/0.6776, allocations: 1.407 MB / 0.5029 GB, free: 10.95 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008581/0.6784, allocations: 256.7 kB / 0.5031 GB, free: 10.7 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001251/0.6797, allocations: 427.2 kB / 0.5035 GB, free: 10.27 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01148/0.6912, allocations: 5.012 MB / 0.5084 GB, free: 5.227 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.409e-05/0.6913, allocations: 4 kB / 0.5084 GB, free: 5.223 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.521e-05/0.6913, allocations: 15.92 kB / 0.5084 GB, free: 5.207 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01204/0.7034, allocations: 5.352 MB / 0.5137 GB, free: 15.81 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.42e-05/0.7035, allocations: 0 / 0.5137 GB, free: 15.81 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00244/0.7059, allocations: 367.4 kB / 0.514 GB, free: 15.45 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008809/0.7148, allocations: 2.382 MB / 0.5163 GB, free: 13.04 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008288/0.7157, allocations: 55.94 kB / 0.5164 GB, free: 12.98 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01051/0.7262, allocations: 8.834 MB / 0.525 GB, free: 3.621 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002248/0.7285, allocations: 2.893 MB / 0.5278 GB, free: 452 kB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2298/0.9583, allocations: 8.75 MB / 0.5364 GB, free: 146.9 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000869/0.9593, allocations: 333.1 kB / 0.5367 GB, free: 146.7 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006781/0.9599, allocations: 37.66 kB / 0.5367 GB, free: 146.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002146/0.9621, allocations: 320.6 kB / 0.537 GB, free: 146.7 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004398/0.9626, allocations: 107.2 kB / 0.5371 GB, free: 146.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001973/0.9628, allocations: 49.78 kB / 0.5372 GB, free: 146.7 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003681/0.9664, allocations: 1.865 MB / 0.539 GB, free: 146.1 MB / 446.1 MB Notification: Performance of sort global known variables: time 4.91e-07/0.9665, allocations: 0 / 0.539 GB, free: 146.1 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005427/0.9719, allocations: 0.9574 MB / 0.5399 GB, free: 146 MB / 446.1 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.01627/0.9882, allocations: 9.406 MB / 0.5491 GB, free: 142.7 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01111/0.9994, allocations: 7.185 MB / 0.5562 GB, free: 139.5 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.811e-06/0.9994, allocations: 0 / 0.5562 GB, free: 139.5 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005453/1.005, allocations: 3.615 MB / 0.5597 GB, free: 136.4 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002792/1.008, allocations: 307.3 kB / 0.56 GB, free: 136.2 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05407/1.062, allocations: 32.34 MB / 0.5916 GB, free: 102.2 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001733/1.064, allocations: 2.296 MB / 0.5938 GB, free: 99.84 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003574/1.067, allocations: 1.663 MB / 0.5954 GB, free: 98.17 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001515/1.069, allocations: 1.163 MB / 0.5966 GB, free: 97 MB / 446.1 MB Notification: Performance of SimCode: time 1.022e-06/1.069, allocations: 0 / 0.5966 GB, free: 97 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08082/1.15, allocations: 68.37 MB / 0.6633 GB, free: 29.04 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001376/1.15, allocations: 237.9 kB / 0.6636 GB, free: 28.79 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.056/5.205, allocations: 0 / 0.6636 GB, free: 28.79 MB / 446.1 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