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.001107/0.001107, allocations: 179.5 kB / 16.38 MB, free: 5.766 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.438/1.438, allocations: 223.2 MB / 240.3 MB, free: 11.91 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008914/0.0008916, allocations: 90.3 kB / 291.5 MB, free: 10.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002774/0.0002775, allocations: 4 kB / 351.2 MB, free: 15.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2306/0.2309, allocations: 50.41 MB / 401.6 MB, free: 32.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.102/0.3329, allocations: 88.54 MB / 490.1 MB, free: 7.934 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002568/0.3332, allocations: 88.61 kB / 490.2 MB, free: 7.848 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.348/0.6812, allocations: 60.79 MB / 0.5381 GB, free: 75.14 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.983e-06/0.6813, allocations: 0 / 0.5381 GB, free: 75.14 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001385/0.6814, allocations: 48 kB / 0.5381 GB, free: 75.1 MB / 378.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.01659/0.698, allocations: 3.604 MB / 0.5416 GB, free: 71.43 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.843e-05/0.6981, allocations: 12.03 kB / 0.5417 GB, free: 71.42 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002264/0.7003, allocations: 493.2 kB / 0.5421 GB, free: 70.93 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01101/0.7114, allocations: 2.34 MB / 0.5444 GB, free: 68.58 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01287/0.7243, allocations: 4.602 MB / 0.5489 GB, free: 63.92 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002749/0.7246, allocations: 172.4 kB / 0.5491 GB, free: 63.75 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001795/0.7264, allocations: 235.8 kB / 0.5493 GB, free: 63.52 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02178/0.7482, allocations: 8.59 MB / 0.5577 GB, free: 54.07 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002296/0.7485, allocations: 47.53 kB / 0.5577 GB, free: 54.02 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001453/0.75, allocations: 115.9 kB / 0.5578 GB, free: 53.91 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001103/0.7511, allocations: 0.7376 MB / 0.5586 GB, free: 53.17 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01828/0.7694, allocations: 9.67 MB / 0.568 GB, free: 43.49 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03836/0.8078, allocations: 37.78 MB / 0.6049 GB, free: 4.469 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01076/0.8186, allocations: 4.036 MB / 0.6088 GB, free: 280 kB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001313/0.8188, allocations: 8.141 kB / 0.6088 GB, free: 272 kB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.864e-05/0.8189, allocations: 71.39 kB / 0.6089 GB, free: 192 kB / 378.7 MB Notification: Performance of pre-optimization done (n=122): time 6.121e-06/0.8189, allocations: 3.984 kB / 0.6089 GB, free: 188 kB / 378.7 MB Notification: Performance of matching and sorting (n=136): time 0.04686/0.8658, allocations: 17.65 MB / 0.6261 GB, free: 14.19 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00233/0.8681, allocations: 3.075 MB / 0.6291 GB, free: 10.8 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005415/0.8736, allocations: 2.708 MB / 0.6318 GB, free: 8.074 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005313/0.8742, allocations: 41.7 kB / 0.6318 GB, free: 8.027 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001659/0.8758, allocations: 2.08 MB / 0.6339 GB, free: 5.918 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001016/0.8769, allocations: 0.567 MB / 0.6344 GB, free: 5.344 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007672/0.8777, allocations: 92 kB / 0.6345 GB, free: 5.254 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0004786/0.8781, allocations: 0.5085 MB / 0.635 GB, free: 4.738 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004441/0.8826, allocations: 2.395 MB / 0.6373 GB, free: 2.336 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006805/0.8894, allocations: 5.285 MB / 0.6425 GB, free: 11.59 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006165/0.8957, allocations: 3.452 MB / 0.6459 GB, free: 8.141 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.599e-05/0.8958, allocations: 28 kB / 0.6459 GB, free: 8.113 MB / 426.7 MB Notification: Performance of matching and sorting (n=630) (initialization): time 0.02391/0.9197, allocations: 9.453 MB / 0.6551 GB, free: 14.63 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002531/0.92, allocations: 48 kB / 0.6552 GB, free: 14.58 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01273/0.9328, allocations: 4.67 MB / 0.6597 GB, free: 9.879 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009474/0.9423, allocations: 2.355 MB / 0.662 GB, free: 7.496 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004774/0.9471, allocations: 1.166 MB / 0.6632 GB, free: 6.328 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.281/1.228, allocations: 8.277 MB / 0.6713 GB, free: 123.1 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005581/1.234, allocations: 0.5649 MB / 0.6718 GB, free: 123.1 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001211/1.235, allocations: 307.3 kB / 0.6721 GB, free: 123.1 MB / 442.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 () * Number of clocked 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.002852/1.238, allocations: 1.41 MB / 0.6735 GB, free: 123 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005951/1.239, allocations: 253.5 kB / 0.6737 GB, free: 123 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008875/1.239, allocations: 421.9 kB / 0.6741 GB, free: 122.9 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01037/1.25, allocations: 4.58 MB / 0.6786 GB, free: 122.8 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.486e-05/1.25, allocations: 5.219 kB / 0.6786 GB, free: 122.8 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.963e-05/1.25, allocations: 10.44 kB / 0.6786 GB, free: 122.8 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009767/1.26, allocations: 5.332 MB / 0.6838 GB, free: 122.4 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.204e-05/1.26, allocations: 0 / 0.6838 GB, free: 122.4 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001505/1.261, allocations: 287 kB / 0.6841 GB, free: 122.4 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007808/1.269, allocations: 2.373 MB / 0.6864 GB, free: 122.3 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006987/1.27, allocations: 45.61 kB / 0.6865 GB, free: 122.3 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008554/1.278, allocations: 9.003 MB / 0.6952 GB, free: 116.8 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001561/1.28, allocations: 2.915 MB / 0.6981 GB, free: 114 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0154/1.296, allocations: 8.135 MB / 0.706 GB, free: 111.3 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001052/1.297, allocations: 339.4 kB / 0.7064 GB, free: 111.1 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001044/1.298, allocations: 34.75 kB / 0.7064 GB, free: 111.1 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002691/1.3, allocations: 268.4 kB / 0.7067 GB, free: 111.1 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006411/1.301, allocations: 107.2 kB / 0.7068 GB, free: 111.1 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003811/1.301, allocations: 45.52 kB / 0.7068 GB, free: 111.1 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003877/1.305, allocations: 1.902 MB / 0.7087 GB, free: 110.4 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.3e-07/1.305, allocations: 0 / 0.7087 GB, free: 110.4 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005343/1.311, allocations: 0.9338 MB / 0.7096 GB, free: 110.3 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 () * 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.01499/1.326, allocations: 9.024 MB / 0.7184 GB, free: 106.4 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01151/1.337, allocations: 6.82 MB / 0.725 GB, free: 100.8 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.652e-06/1.337, allocations: 0 / 0.725 GB, free: 100.8 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00557/1.343, allocations: 3.409 MB / 0.7284 GB, free: 97.91 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002226/1.345, allocations: 286.5 kB / 0.7286 GB, free: 97.66 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07266/1.418, allocations: 100.7 MB / 0.827 GB, free: 11.38 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003896/1.422, allocations: 2.348 MB / 0.8293 GB, free: 9.012 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.005308/1.427, allocations: 1.632 MB / 0.8309 GB, free: 7.379 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002707/1.43, allocations: 1.159 MB / 0.832 GB, free: 6.219 MB / 458.7 MB Notification: Performance of SimCode: time 8.31e-07/1.43, allocations: 0 / 0.832 GB, free: 6.219 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3145/1.744, allocations: 66.47 MB / 0.8969 GB, free: 109.8 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001519/1.745, allocations: 225.3 kB / 0.8971 GB, free: 109.5 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.85/5.595, allocations: 7 kB / 0.8971 GB, free: 109.5 MB / 458.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