Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.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.Fluid.Examples.Tanks.EmptyTanks,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_Tanks_EmptyTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.EmptyTanks,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_Tanks_EmptyTanks",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.001563/0.001563, allocations: 180.6 kB / 16.39 MB, free: 5.762 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.519/1.519, allocations: 223.2 MB / 240.3 MB, free: 11.88 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.0009665/0.0009666, allocations: 87.27 kB / 291.5 MB, free: 10.92 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003005/0.0003006, allocations: 8 kB / 351.2 MB, free: 15.22 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3218/0.3221, allocations: 50.41 MB / 401.6 MB, free: 32.58 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.001/1.323, allocations: 321.5 MB / 0.7062 GB, free: 162.2 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004127/1.324, allocations: 82.19 kB / 0.7063 GB, free: 162.1 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2797/1.604, allocations: 134.8 MB / 0.8379 GB, free: 27.54 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.733e-06/1.604, allocations: 0 / 0.8379 GB, free: 27.54 MB / 458.7 MB Notification: Performance of Transformations before backend: time 6.127e-05/1.604, allocations: 27.92 kB / 0.8379 GB, free: 27.51 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.002804/1.606, allocations: 1.18 MB / 0.8391 GB, free: 26.27 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.552e-05/1.607, allocations: 8.031 kB / 0.8391 GB, free: 26.27 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001439/1.607, allocations: 106.5 kB / 0.8392 GB, free: 26.15 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00028/1.607, allocations: 98.91 kB / 0.8393 GB, free: 26.05 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001211/1.608, allocations: 0.6635 MB / 0.8399 GB, free: 25.35 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.606e-05/1.608, allocations: 108.7 kB / 0.84 GB, free: 25.23 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.291e-05/1.608, allocations: 47.98 kB / 0.8401 GB, free: 25.19 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001285/1.61, allocations: 0.897 MB / 0.8409 GB, free: 24.26 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.992e-05/1.61, allocations: 0 / 0.8409 GB, free: 24.26 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.839e-05/1.61, allocations: 23.98 kB / 0.841 GB, free: 24.24 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.55e-05/1.61, allocations: 49.28 kB / 0.841 GB, free: 24.19 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001133/1.611, allocations: 0.8288 MB / 0.8418 GB, free: 23.36 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004758/1.616, allocations: 3.307 MB / 0.8451 GB, free: 19.9 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000825/1.617, allocations: 0.6531 MB / 0.8457 GB, free: 19.23 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002407/1.619, allocations: 2.039 MB / 0.8477 GB, free: 17 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.852e-05/1.619, allocations: 47.11 kB / 0.8477 GB, free: 16.95 MB / 458.7 MB Notification: Performance of pre-optimization done (n=56): time 2.715e-06/1.619, allocations: 0 / 0.8477 GB, free: 16.95 MB / 458.7 MB Notification: Performance of matching and sorting (n=66): time 0.006127/1.625, allocations: 2.843 MB / 0.8505 GB, free: 14.04 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.762e-05/1.625, allocations: 89.62 kB / 0.8506 GB, free: 13.93 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007619/1.626, allocations: 0.5932 MB / 0.8512 GB, free: 13.33 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 6.256e-05/1.626, allocations: 41.7 kB / 0.8512 GB, free: 13.29 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001766/1.626, allocations: 336.5 kB / 0.8515 GB, free: 12.95 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001572/1.627, allocations: 224.7 kB / 0.8517 GB, free: 12.73 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.392e-05/1.627, allocations: 20 kB / 0.8518 GB, free: 12.71 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001247/1.627, allocations: 390.7 kB / 0.8521 GB, free: 12.32 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004867/1.627, allocations: 349.8 kB / 0.8525 GB, free: 11.98 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000554/1.628, allocations: 0.5027 MB / 0.853 GB, free: 11.42 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005396/1.628, allocations: 403 kB / 0.8533 GB, free: 11.03 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/1.628, allocations: 0 / 0.8533 GB, free: 11.03 MB / 458.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001705/1.63, allocations: 1.141 MB / 0.8545 GB, free: 9.875 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004169/1.63, allocations: 1.574 MB / 0.856 GB, free: 8.18 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.32e-05/1.63, allocations: 4 kB / 0.856 GB, free: 8.176 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001283/1.632, allocations: 440.4 kB / 0.8564 GB, free: 7.742 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006377/1.632, allocations: 163.7 kB / 0.8566 GB, free: 7.582 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001066/1.634, allocations: 1.021 MB / 0.8576 GB, free: 6.535 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007514/1.634, allocations: 47.92 kB / 0.8576 GB, free: 6.488 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.556e-05/1.634, allocations: 31.98 kB / 0.8577 GB, free: 6.457 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.138e-05/1.634, allocations: 8 kB / 0.8577 GB, free: 6.449 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001461/1.636, allocations: 0.9923 MB / 0.8586 GB, free: 5.453 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.53e-06/1.636, allocations: 4 kB / 0.8586 GB, free: 5.449 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006268/1.636, allocations: 316.6 kB / 0.8589 GB, free: 5.137 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006036/1.637, allocations: 163.8 kB / 0.8591 GB, free: 4.977 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009296/1.638, allocations: 0.9034 MB / 0.86 GB, free: 4.047 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000751/1.639, allocations: 47.95 kB / 0.86 GB, free: 4 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.622e-05/1.639, allocations: 31.98 kB / 0.86 GB, free: 3.969 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 4 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 9} Notification: Performance of prepare postOptimizeDAE: time 0.0006226/1.64, allocations: 324.9 kB / 0.8604 GB, free: 3.641 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001651/1.64, allocations: 79.06 kB / 0.8604 GB, free: 3.562 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001929/1.642, allocations: 1.094 MB / 0.8615 GB, free: 2.457 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.009e-05/1.642, allocations: 12.09 kB / 0.8615 GB, free: 2.445 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.456e-06/1.642, allocations: 3.938 kB / 0.8615 GB, free: 2.441 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.237e-05/1.642, allocations: 7.969 kB / 0.8615 GB, free: 2.434 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003015/1.645, allocations: 2.001 MB / 0.8635 GB, free: 380 kB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.879e-06/1.645, allocations: 3.984 kB / 0.8635 GB, free: 376 kB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005654/1.645, allocations: 123.8 kB / 0.8636 GB, free: 252 kB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.3373/1.983, allocations: 439.4 kB / 0.864 GB, free: 108.8 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002221/1.983, allocations: 22.64 kB / 0.864 GB, free: 108.8 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001497/1.984, allocations: 1.033 MB / 0.865 GB, free: 108.3 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/1.984, allocations: 0 / 0.865 GB, free: 108.3 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002775/1.987, allocations: 1.591 MB / 0.8666 GB, free: 108.1 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005593/1.988, allocations: 251.2 kB / 0.8668 GB, free: 108.1 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001127/1.988, allocations: 17.28 kB / 0.8669 GB, free: 108.1 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006097/1.989, allocations: 45.38 kB / 0.8669 GB, free: 108.1 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001522/1.989, allocations: 64.12 kB / 0.867 GB, free: 108.1 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.975e-05/1.989, allocations: 26.27 kB / 0.867 GB, free: 108.1 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.000622/1.989, allocations: 475.6 kB / 0.8674 GB, free: 108 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.3e-07/1.989, allocations: 0 / 0.8674 GB, free: 108 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002038/1.991, allocations: 0.6396 MB / 0.8681 GB, free: 108 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 4 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.003689/1.995, allocations: 2.628 MB / 0.8706 GB, free: 107.3 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.002697/1.998, allocations: 1.382 MB / 0.872 GB, free: 107.3 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.841e-06/1.998, allocations: 0.5625 kB / 0.872 GB, free: 107.3 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008868/1.999, allocations: 473.4 kB / 0.8724 GB, free: 107.2 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001593/2, allocations: 347.6 kB / 0.8728 GB, free: 107.2 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005419/2.006, allocations: 5.425 MB / 0.8781 GB, free: 103.5 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005678/2.006, allocations: 1.02 MB / 0.8791 GB, free: 102.8 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.001151/2.008, allocations: 304.7 kB / 0.8794 GB, free: 102.8 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000454/2.008, allocations: 283 kB / 0.8796 GB, free: 102.8 MB / 458.7 MB Notification: Performance of SimCode: time 1.323e-06/2.008, allocations: 0 / 0.8796 GB, free: 102.8 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06187/2.07, allocations: 29.21 MB / 0.9081 GB, free: 101.9 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000178/2.07, allocations: 193.8 kB / 0.9083 GB, free: 101.6 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.964/5.034, allocations: 0 / 0.9083 GB, free: 101.6 MB / 458.7 MB (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Fluid_Examples_Tanks_EmptyTanks_fmu --startTime=0 --stopTime=50 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Fluid_Examples_Tanks_EmptyTanks.fmu > Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks_res.mat does not exist to compare? outputFormat=mat