Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.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.Thermal.FluidHeatFlow.Examples.TestOpenTank,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TestOpenTank",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TestOpenTank",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.001341/0.001341, allocations: 181 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.347/1.347, allocations: 223.2 MB / 240.3 MB, free: 10.16 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.0009254/0.0009255, allocations: 97.86 kB / 291.5 MB, free: 10.69 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003231/0.0003232, allocations: 4 kB / 351.2 MB, free: 15.01 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2664/0.2668, allocations: 50.41 MB / 401.6 MB, free: 32.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1062/0.373, allocations: 82.98 MB / 484.6 MB, free: 13.34 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002247/0.3733, allocations: 83.95 kB / 484.6 MB, free: 13.25 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02199/0.3953, allocations: 8.36 MB / 493 MB, free: 4.863 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.404e-06/0.3953, allocations: 0 / 493 MB, free: 4.863 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.484e-05/0.3954, allocations: 8 kB / 493 MB, free: 4.855 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.000924/0.3963, allocations: 0.6617 MB / 493.7 MB, free: 4.145 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.89e-05/0.3963, allocations: 8.031 kB / 493.7 MB, free: 4.137 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.015e-05/0.3964, allocations: 58.97 kB / 493.7 MB, free: 4.07 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.431e-05/0.3965, allocations: 47.44 kB / 493.8 MB, free: 4.023 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004805/0.397, allocations: 333.6 kB / 494.1 MB, free: 3.656 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.835e-05/0.397, allocations: 20.42 kB / 494.1 MB, free: 3.637 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.472e-05/0.3971, allocations: 24.69 kB / 494.1 MB, free: 3.613 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004608/0.3976, allocations: 297.5 kB / 494.4 MB, free: 3.281 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.28e-05/0.3976, allocations: 4 kB / 494.4 MB, free: 3.277 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.852e-05/0.3976, allocations: 12 kB / 494.4 MB, free: 3.266 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.378e-06/0.3976, allocations: 4 kB / 494.5 MB, free: 3.262 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002878/0.3979, allocations: 165.5 kB / 494.6 MB, free: 3.102 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001315/0.3992, allocations: 0.8132 MB / 495.4 MB, free: 2.23 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004848/0.3997, allocations: 218.3 kB / 495.6 MB, free: 2.008 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.516e-05/0.3998, allocations: 4 kB / 495.6 MB, free: 2.004 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002644/0.4001, allocations: 136.6 kB / 495.8 MB, free: 1.859 MB / 362.7 MB Notification: Performance of pre-optimization done (n=24): time 1.593e-06/0.4001, allocations: 0 / 495.8 MB, free: 1.859 MB / 362.7 MB Notification: Performance of matching and sorting (n=24): time 0.0008416/0.4009, allocations: 424.3 kB / 496.2 MB, free: 1.418 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000177/0.4011, allocations: 312.4 kB / 496.5 MB, free: 1.039 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004621/0.4016, allocations: 384.7 kB / 496.9 MB, free: 0.6562 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.284e-05/0.4016, allocations: 33.7 kB / 496.9 MB, free: 0.6172 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001599/0.4018, allocations: 208.4 kB / 497.1 MB, free: 420 kB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.177e-05/0.4019, allocations: 74.77 kB / 497.2 MB, free: 344 kB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.094e-05/0.4019, allocations: 4 kB / 497.2 MB, free: 340 kB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000152/0.402, allocations: 354.8 kB / 497.5 MB, free: 15.98 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001311/0.4022, allocations: 63.98 kB / 497.6 MB, free: 15.91 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002234/0.4024, allocations: 176.7 kB / 497.8 MB, free: 15.7 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001662/0.4026, allocations: 86.53 kB / 497.9 MB, free: 15.62 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.668e-06/0.4026, allocations: 4 kB / 497.9 MB, free: 15.61 MB / 378.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004557/0.4031, allocations: 288.4 kB / 498.1 MB, free: 15.32 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.883e-05/0.4031, allocations: 7.984 kB / 498.1 MB, free: 15.32 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.192e-06/0.4031, allocations: 0 / 498.1 MB, free: 15.32 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001506/0.4033, allocations: 40.92 kB / 498.2 MB, free: 15.27 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002254/0.4035, allocations: 59.91 kB / 498.2 MB, free: 15.21 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001458/0.405, allocations: 1.46 MB / 499.7 MB, free: 13.62 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001982/0.4052, allocations: 27.81 kB / 499.7 MB, free: 13.59 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.265e-05/0.4052, allocations: 12 kB / 499.7 MB, free: 13.58 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEvent,$PRE.combiTimeTable.nextTimeEventScaled,combiTimeTable.nextTimeEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 27 * 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 {3 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002479/0.4055, allocations: 164.9 kB / 499.9 MB, free: 13.41 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.184e-05/0.4055, allocations: 39.53 kB / 499.9 MB, free: 13.37 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005346/0.4061, allocations: 282.4 kB / 0.4885 GB, free: 13.09 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.348e-06/0.4061, allocations: 4 kB / 0.4885 GB, free: 13.09 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.844e-06/0.4061, allocations: 0 / 0.4885 GB, free: 13.09 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005624/0.4067, allocations: 0.5999 MB / 0.4891 GB, free: 12.38 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001067/0.4077, allocations: 0.7551 MB / 0.4898 GB, free: 11.56 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.933e-06/0.4078, allocations: 96 / 0.4898 GB, free: 11.56 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002229/0.408, allocations: 55.84 kB / 0.4899 GB, free: 11.51 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.916e-06/0.408, allocations: 0 / 0.4899 GB, free: 11.51 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.279e-05/0.408, allocations: 16.36 kB / 0.4899 GB, free: 11.49 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.674e-06/0.408, allocations: 0 / 0.4899 GB, free: 11.49 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.816e-06/0.408, allocations: 4 kB / 0.4899 GB, free: 11.49 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006355/0.4087, allocations: 430.8 kB / 0.4903 GB, free: 11.05 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001856/0.4089, allocations: 148.6 kB / 0.4904 GB, free: 10.89 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.014e-05/0.4089, allocations: 11.98 kB / 0.4905 GB, free: 10.88 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001776/0.4091, allocations: 12.06 kB / 0.4905 GB, free: 10.86 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.334e-05/0.4092, allocations: 15.97 kB / 0.4905 GB, free: 10.85 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.253e-05/0.4092, allocations: 12 kB / 0.4905 GB, free: 10.84 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003392/0.4096, allocations: 307.1 kB / 0.4908 GB, free: 10.54 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4096, allocations: 0 / 0.4908 GB, free: 10.54 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004564/0.41, allocations: 115.8 kB / 0.4909 GB, free: 10.42 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (openTank.m,openTank.H) * Number of discrete variables: 3 ($whenCondition1,combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of discrete states: 2 (combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001795/0.4118, allocations: 1.288 MB / 0.4922 GB, free: 9.27 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006389/0.4125, allocations: 311.2 kB / 0.4925 GB, free: 8.953 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.4125, allocations: 4 kB / 0.4925 GB, free: 8.949 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001803/0.4127, allocations: 104 kB / 0.4926 GB, free: 8.848 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004826/0.4132, allocations: 88.55 kB / 0.4926 GB, free: 8.766 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003399/0.4166, allocations: 2.682 MB / 0.4953 GB, free: 6.027 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004062/0.417, allocations: 0.8156 MB / 0.4961 GB, free: 5.184 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001934/0.4172, allocations: 46.94 kB / 0.4961 GB, free: 5.133 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000177/0.4174, allocations: 127.4 kB / 0.4962 GB, free: 5.008 MB / 378.7 MB Notification: Performance of SimCode: time 6.61e-07/0.4174, allocations: 0 / 0.4962 GB, free: 5.008 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2217/0.6391, allocations: 9.376 MB / 0.5054 GB, free: 98.59 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001918/0.6394, allocations: 262.2 kB / 0.5056 GB, free: 98.26 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.256/2.896, allocations: 4 kB / 0.5056 GB, free: 98.26 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TestOpenTank_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TestOpenTank.fmu > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank_res.mat does not exist to compare? outputFormat=mat