Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.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.FreeBody,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_FreeBody",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_FreeBody",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.001318/0.001318, allocations: 181.2 kB / 16.39 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.403/1.403, allocations: 223.2 MB / 240.3 MB, free: 11.89 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.0009704/0.0009704, allocations: 96 kB / 291.5 MB, free: 10.92 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002814/0.0002814, allocations: 8 kB / 351.2 MB, free: 15.22 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2713/0.2716, allocations: 50.4 MB / 401.6 MB, free: 32.58 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1289/0.4006, allocations: 95.55 MB / 497.1 MB, free: 0.8906 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000245/0.4009, allocations: 87.95 kB / 497.2 MB, free: 0.8047 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.402/0.8029, allocations: 74.55 MB / 0.5584 GB, free: 54.62 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.114e-06/0.803, allocations: 0 / 0.5584 GB, free: 54.62 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001365/0.8031, allocations: 68 kB / 0.5584 GB, free: 54.55 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: 1330 * Number of variables: 1330 Notification: Performance of Generate backend data structure: time 0.01434/0.8175, allocations: 4.06 MB / 0.5624 GB, free: 50.43 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.74e-05/0.8175, allocations: 12.03 kB / 0.5624 GB, free: 50.41 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002418/0.8199, allocations: 0.6875 MB / 0.5631 GB, free: 49.71 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00911/0.8291, allocations: 2.151 MB / 0.5652 GB, free: 47.55 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01135/0.8405, allocations: 4.35 MB / 0.5694 GB, free: 43.14 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003035/0.8408, allocations: 283.4 kB / 0.5697 GB, free: 42.86 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001603/0.8424, allocations: 367.9 kB / 0.57 GB, free: 42.5 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0153/0.8577, allocations: 9.334 MB / 0.5792 GB, free: 32.21 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001271/0.8579, allocations: 55.47 kB / 0.5792 GB, free: 32.15 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004895/0.8584, allocations: 187.8 kB / 0.5794 GB, free: 31.97 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001044/0.8595, allocations: 0.896 MB / 0.5803 GB, free: 31.07 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01448/0.874, allocations: 7.575 MB / 0.5877 GB, free: 23.49 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05066/0.9247, allocations: 43.9 MB / 0.6305 GB, free: 10.15 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008617/0.9334, allocations: 3.447 MB / 0.6339 GB, free: 6.555 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01312/0.9466, allocations: 6.847 MB / 0.6406 GB, free: 15.39 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.843e-05/0.9467, allocations: 51.16 kB / 0.6406 GB, free: 15.33 MB / 426.7 MB Notification: Performance of pre-optimization done (n=132): time 4.949e-06/0.9467, allocations: 0 / 0.6406 GB, free: 15.33 MB / 426.7 MB Notification: Performance of matching and sorting (n=139): time 0.0268/0.9735, allocations: 11.31 MB / 0.6517 GB, free: 3.793 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001333/0.9749, allocations: 1.628 MB / 0.6533 GB, free: 1.992 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005123/0.98, allocations: 3.148 MB / 0.6563 GB, free: 14.85 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003082/0.9803, allocations: 45.7 kB / 0.6564 GB, free: 14.8 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002199/0.9825, allocations: 2.802 MB / 0.6591 GB, free: 11.96 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007174/0.9833, allocations: 0.5672 MB / 0.6597 GB, free: 11.38 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002258/0.9835, allocations: 112 kB / 0.6598 GB, free: 11.27 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003252/0.9838, allocations: 0.5295 MB / 0.6603 GB, free: 10.74 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002744/0.9866, allocations: 1.896 MB / 0.6622 GB, free: 8.836 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005206/0.9918, allocations: 5.335 MB / 0.6674 GB, free: 1.758 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2395/1.231, allocations: 3.106 MB / 0.6704 GB, free: 112.7 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001137/1.232, allocations: 35.03 kB / 0.6704 GB, free: 112.7 MB / 442.7 MB Notification: Performance of matching and sorting (n=712) (initialization): time 0.01964/1.251, allocations: 8.461 MB / 0.6787 GB, free: 112.2 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001175/1.251, allocations: 54.66 kB / 0.6787 GB, free: 112.2 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.009185/1.261, allocations: 3.175 MB / 0.6818 GB, free: 112.2 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009067/1.27, allocations: 1.946 MB / 0.6837 GB, free: 112.1 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004063/1.274, allocations: 1.242 MB / 0.685 GB, free: 112 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007179/1.281, allocations: 5.921 MB / 0.6907 GB, free: 109.4 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004492/1.286, allocations: 370.6 kB / 0.6911 GB, free: 109.4 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001132/1.287, allocations: 343.8 kB / 0.6914 GB, free: 109.4 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 559 * Number of states: 0 () * Number of discrete variables: 36 (spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],body.frameTranslation.color[3],body.frameTranslation.color[2],body.frameTranslation.color[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar2.color[3],bar2.color[2],bar2.color[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (674): * Single equations (assignments): 665 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004282/1.291, allocations: 1.859 MB / 0.6932 GB, free: 109.1 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007351/1.292, allocations: 304.7 kB / 0.6935 GB, free: 109.1 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005505/1.297, allocations: 2.755 MB / 0.6962 GB, free: 109 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.003966/1.301, allocations: 2.339 MB / 0.6985 GB, free: 108.6 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.216e-05/1.301, allocations: 3.719 kB / 0.6985 GB, free: 108.6 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.413e-05/1.301, allocations: 3.938 kB / 0.6985 GB, free: 108.6 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01427/1.316, allocations: 7.829 MB / 0.7062 GB, free: 105.7 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.428e-05/1.316, allocations: 0 / 0.7062 GB, free: 105.7 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001073/1.317, allocations: 225.3 kB / 0.7064 GB, free: 105.7 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002816/1.32, allocations: 1.046 MB / 0.7074 GB, free: 105.5 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001682/1.32, allocations: 37.84 kB / 0.7074 GB, free: 105.4 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004646/1.324, allocations: 5.045 MB / 0.7124 GB, free: 102.1 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007947/1.325, allocations: 1.489 MB / 0.7138 GB, free: 100.7 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007275/1.333, allocations: 5.08 MB / 0.7188 GB, free: 98.61 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001146/1.334, allocations: 365.2 kB / 0.7191 GB, free: 98.34 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000351/1.334, allocations: 39.47 kB / 0.7192 GB, free: 98.32 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001297/1.335, allocations: 119.8 kB / 0.7193 GB, free: 98.31 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002405/1.336, allocations: 91.52 kB / 0.7194 GB, free: 98.29 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001066/1.336, allocations: 33.22 kB / 0.7194 GB, free: 98.29 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003503/1.339, allocations: 2.183 MB / 0.7215 GB, free: 97.37 MB / 442.7 MB Notification: Performance of sort global known variables: time 4e-07/1.339, allocations: 0 / 0.7215 GB, free: 97.37 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005662/1.345, allocations: 0.9652 MB / 0.7225 GB, free: 96.42 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.v_0[1],body.v_0[2],body.v_0[3],body.body.frame_a.r_0[1],body.body.frame_a.r_0[2],body.body.frame_a.r_0[3],body.body.w_a[1],body.body.w_a[2],body.body.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 (105): * Single equations (assignments): 98 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007234/1.352, allocations: 6.068 MB / 0.7284 GB, free: 91.04 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.008301/1.36, allocations: 5.153 MB / 0.7334 GB, free: 86.57 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.254e-06/1.361, allocations: 0 / 0.7334 GB, free: 86.57 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003483/1.364, allocations: 2.021 MB / 0.7354 GB, free: 84.83 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002247/1.366, allocations: 357.4 kB / 0.7357 GB, free: 84.53 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07535/1.442, allocations: 115.1 MB / 0.8482 GB, free: 0.9219 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2205/1.662, allocations: 2.979 MB / 0.8511 GB, free: 145.1 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.004476/1.667, allocations: 1.7 MB / 0.8527 GB, free: 145.1 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002408/1.669, allocations: 1.613 MB / 0.8543 GB, free: 145.1 MB / 474.7 MB Notification: Performance of SimCode: time 2.023e-06/1.669, allocations: 0 / 0.8543 GB, free: 145.1 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1105/1.78, allocations: 69.79 MB / 0.9225 GB, free: 107 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000136/1.78, allocations: 221.6 kB / 0.9227 GB, free: 106.7 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.136/5.915, allocations: 3.938 kB / 0.9227 GB, free: 106.7 MB / 474.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_FreeBody_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_FreeBody.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody_res.mat does not exist to compare? outputFormat=mat