Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_AST_BatchPlant_Test_OneTank",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_AST_BatchPlant_Test_OneTank",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001253/0.001253, allocations: 198 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.38/1.38, allocations: 227.2 MB / 245 MB, free: 7.625 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009927/0.0009926, allocations: 106.6 kB / 297.3 MB, free: 6.195 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002565/0.0002564, allocations: 8 kB / 358 MB, free: 9.449 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2381/0.2383, allocations: 51.49 MB / 409.5 MB, free: 26.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7107/0.9491, allocations: 327.7 MB / 0.7199 GB, free: 141.3 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002476/0.9494, allocations: 95.95 kB / 0.72 GB, free: 141.2 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5188/1.468, allocations: 146.4 MB / 0.8629 GB, free: 103.8 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.834e-06/1.468, allocations: 2.906 kB / 0.8629 GB, free: 103.8 MB / 458.7 MB Notification: Performance of Transformations before backend: time 6.119e-05/1.468, allocations: 23.52 kB / 0.8629 GB, free: 103.8 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: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.002387/1.471, allocations: 1.18 MB / 0.8641 GB, free: 103.2 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.643e-05/1.471, allocations: 9.969 kB / 0.8641 GB, free: 103.2 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001446/1.471, allocations: 101.4 kB / 0.8642 GB, free: 103.2 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003367/1.471, allocations: 98.72 kB / 0.8643 GB, free: 103.1 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001228/1.472, allocations: 0.6111 MB / 0.8649 GB, free: 102.9 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.567e-05/1.473, allocations: 98.11 kB / 0.865 GB, free: 102.8 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001192/1.473, allocations: 44.25 kB / 0.865 GB, free: 102.8 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001181/1.474, allocations: 0.8257 MB / 0.8658 GB, free: 102.7 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.96e-05/1.474, allocations: 7.688 kB / 0.8658 GB, free: 102.7 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.133e-05/1.474, allocations: 23.34 kB / 0.8659 GB, free: 102.7 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.984e-05/1.474, allocations: 38.36 kB / 0.8659 GB, free: 102.7 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000981/1.475, allocations: 0.6899 MB / 0.8666 GB, free: 102.7 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004292/1.479, allocations: 3.403 MB / 0.8699 GB, free: 100.8 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005947/1.48, allocations: 432.6 kB / 0.8703 GB, free: 100.8 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001539/1.481, allocations: 1.369 MB / 0.8717 GB, free: 99.92 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006077/1.482, allocations: 379 kB / 0.872 GB, free: 99.8 MB / 458.7 MB Notification: Performance of pre-optimization done (n=35): time 2.024e-06/1.482, allocations: 0 / 0.872 GB, free: 99.8 MB / 458.7 MB Notification: Performance of matching and sorting (n=40): time 0.003742/1.486, allocations: 1.96 MB / 0.8739 GB, free: 99.12 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.268e-05/1.486, allocations: 272 kB / 0.8742 GB, free: 98.81 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007059/1.487, allocations: 0.6864 MB / 0.8749 GB, free: 98.68 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 4.838e-05/1.487, allocations: 37.22 kB / 0.8749 GB, free: 98.64 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002056/1.487, allocations: 399.2 kB / 0.8753 GB, free: 98.48 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.787e-05/1.487, allocations: 135 kB / 0.8754 GB, free: 98.41 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.315e-05/1.487, allocations: 12.41 kB / 0.8754 GB, free: 98.41 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001002/1.487, allocations: 392.7 kB / 0.8758 GB, free: 98.09 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003421/1.488, allocations: 263.2 kB / 0.876 GB, free: 98.09 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004548/1.488, allocations: 0.5004 MB / 0.8765 GB, free: 97.81 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004034/1.488, allocations: 357.4 kB / 0.8769 GB, free: 97.77 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.828e-06/1.488, allocations: 3.625 kB / 0.8769 GB, free: 97.77 MB / 458.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001375/1.49, allocations: 0.9865 MB / 0.8778 GB, free: 97.65 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004158/1.49, allocations: 2.473 MB / 0.8802 GB, free: 95.08 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.017e-05/1.49, allocations: 7.188 kB / 0.8803 GB, free: 95.08 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005333/1.491, allocations: 132.1 kB / 0.8804 GB, free: 95.07 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004584/1.491, allocations: 137.1 kB / 0.8805 GB, free: 95.07 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004706/1.492, allocations: 0.6803 MB / 0.8812 GB, free: 94.55 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006291/1.492, allocations: 53.38 kB / 0.8812 GB, free: 94.55 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.417e-05/1.492, allocations: 40.88 kB / 0.8813 GB, free: 94.55 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.783e-06/1.492, allocations: 3.969 kB / 0.8813 GB, free: 94.55 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001446/1.494, allocations: 0.9127 MB / 0.8822 GB, free: 94.49 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.613e-06/1.494, allocations: 8 kB / 0.8822 GB, free: 94.49 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003671/1.494, allocations: 123.5 kB / 0.8823 GB, free: 94.48 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004261/1.495, allocations: 135.5 kB / 0.8824 GB, free: 94.48 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000383/1.495, allocations: 0.6683 MB / 0.8831 GB, free: 93.96 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005211/1.496, allocations: 44.81 kB / 0.8831 GB, free: 93.96 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.198e-05/1.496, allocations: 39.91 kB / 0.8832 GB, free: 93.96 MB / 458.7 MB Warning: Assuming fixed start value for the following 2 variables: tank.level:VARIABLE(start = tank.level_start unit = "m" fixed = true stateSelect=StateSelect.prefer ) "Fluid level in the tank" type: Real tank.medium.T:VARIABLE(min = max(1.0, max(1.0, 1.0)) max = min(10000.0, min(10000.0, 10000.0)) start = tank.T_start unit = "K" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) "Temperature of medium" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.tank.ports_m_flow_out[1],tank.ports_m_flow_out[1],$PRE.tank.aboveLevel[1],tank.aboveLevel[1],timeTable.a,timeTable.b,timeTable.last,$PRE.timeTable.nextEvent,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (78): * Single equations (assignments): 76 * Array equations: 0 * Algorithm blocks: 1 * 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 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0004474/1.496, allocations: 394 kB / 0.8835 GB, free: 93.73 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001028/1.496, allocations: 81.47 kB / 0.8836 GB, free: 93.7 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001181/1.497, allocations: 0.751 MB / 0.8843 GB, free: 93.59 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.04e-06/1.498, allocations: 3.688 kB / 0.8843 GB, free: 93.59 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/1.498, allocations: 0.5625 kB / 0.8843 GB, free: 93.59 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.831e-06/1.498, allocations: 3.953 kB / 0.8843 GB, free: 93.59 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00196/1.499, allocations: 1.478 MB / 0.8858 GB, free: 93.23 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.797e-06/1.5, allocations: 3.688 kB / 0.8858 GB, free: 93.23 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002816/1.5, allocations: 52.77 kB / 0.8858 GB, free: 93.23 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004607/1.5, allocations: 127.4 kB / 0.886 GB, free: 93.22 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.744e-05/1.5, allocations: 18.53 kB / 0.886 GB, free: 93.22 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003918/1.501, allocations: 0.6665 MB / 0.8866 GB, free: 92.7 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/1.501, allocations: 0 / 0.8866 GB, free: 92.7 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001238/1.502, allocations: 1.1 MB / 0.8877 GB, free: 92.45 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001643/1.502, allocations: 160.5 kB / 0.8879 GB, free: 92.32 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001126/1.502, allocations: 19.73 kB / 0.8879 GB, free: 92.32 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004703/1.503, allocations: 39.61 kB / 0.8879 GB, free: 92.31 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.496e-05/1.503, allocations: 38.81 kB / 0.888 GB, free: 92.31 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.23e-05/1.503, allocations: 28.27 kB / 0.888 GB, free: 92.31 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0005023/1.503, allocations: 0.5327 MB / 0.8885 GB, free: 92.22 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.4e-07/1.503, allocations: 0 / 0.8885 GB, free: 92.22 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001672/1.505, allocations: 0.6045 MB / 0.8891 GB, free: 92.13 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (tank.medium.T,tank.level) * Number of discrete variables: 8 ($whenCondition1,tank.ports_m_flow_out[1],tank.aboveLevel[1],timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 8 (tank.aboveLevel[1],tank.ports_m_flow_out[1],timeTable.nextEvent,timeTable.last,timeTable.nextEventScaled,timeTable.b,timeTable.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 1 * 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 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.002436/1.508, allocations: 2.13 MB / 0.8912 GB, free: 91.2 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.00191/1.509, allocations: 1.164 MB / 0.8923 GB, free: 91.06 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/1.509, allocations: 0 / 0.8923 GB, free: 91.06 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005585/1.51, allocations: 358.1 kB / 0.8926 GB, free: 90.99 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00141/1.511, allocations: 309.5 kB / 0.8929 GB, free: 90.98 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003772/1.515, allocations: 6.59 MB / 0.8994 GB, free: 85.66 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003553/1.516, allocations: 0.9827 MB / 0.9003 GB, free: 84.96 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0008112/1.516, allocations: 249.6 kB / 0.9006 GB, free: 84.95 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002926/1.517, allocations: 257 kB / 0.9008 GB, free: 84.95 MB / 458.7 MB Notification: Performance of SimCode: time 6.81e-07/1.517, allocations: 0 / 0.9008 GB, free: 84.95 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04074/1.558, allocations: 25.98 MB / 0.9262 GB, free: 83.84 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001661/1.558, allocations: 242.7 kB / 0.9264 GB, free: 83.55 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.631/4.189, allocations: 2.953 kB / 0.9264 GB, free: 83.55 MB / 458.7 MB (rm -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank_res.mat --tempDir=temp_Modelica_trunk_Modelica_Fluid_Examples_AST_BatchPlant_Test_OneTank_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Fluid_Examples_AST_BatchPlant_Test_OneTank.fmu > Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank_res.mat does not exist to compare? outputFormat=mat