Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.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.AST_BatchPlant.Test.TwoTanks,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_AST_BatchPlant_Test_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_AST_BatchPlant_Test_TwoTanks",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.0009939/0.000994, allocations: 173.1 kB / 13.64 MB, free: 1.672 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.366/1.366, allocations: 221.3 MB / 235.5 MB, free: 2.934 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000912/0.0009121, allocations: 91.86 kB / 286.5 MB, free: 236 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.878e-05/2.882e-05, allocations: 0 / 343.9 MB, free: 4.227 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1203/0.1203, allocations: 50.41 MB / 394.3 MB, free: 1.773 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8718/0.9921, allocations: 322.3 MB / 0.6998 GB, free: 9.461 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000252/0.9925, allocations: 84.02 kB / 0.6999 GB, free: 9.418 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5713/1.564, allocations: 140.2 MB / 0.8368 GB, free: 51.29 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.022e-06/1.564, allocations: 0 / 0.8368 GB, free: 51.29 MB / 442.7 MB Notification: Performance of Transformations before backend: time 8.773e-05/1.564, allocations: 23.94 kB / 0.8368 GB, free: 51.26 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.002754/1.567, allocations: 1.029 MB / 0.8379 GB, free: 50.19 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.403e-05/1.567, allocations: 8.031 kB / 0.8379 GB, free: 50.18 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002086/1.567, allocations: 94.5 kB / 0.8379 GB, free: 50.08 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004262/1.567, allocations: 91.05 kB / 0.838 GB, free: 49.99 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001258/1.569, allocations: 0.5755 MB / 0.8386 GB, free: 49.37 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.484e-05/1.569, allocations: 40.98 kB / 0.8386 GB, free: 49.33 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001161/1.569, allocations: 44 kB / 0.8387 GB, free: 49.29 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001172/1.57, allocations: 0.7264 MB / 0.8394 GB, free: 48.53 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.842e-05/1.57, allocations: 0 / 0.8394 GB, free: 48.53 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.65e-05/1.57, allocations: 24 kB / 0.8394 GB, free: 48.5 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.307e-05/1.57, allocations: 44.91 kB / 0.8395 GB, free: 48.46 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009884/1.571, allocations: 0.6715 MB / 0.8401 GB, free: 47.79 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003822/1.575, allocations: 2.864 MB / 0.8429 GB, free: 44.74 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000605/1.576, allocations: 464.5 kB / 0.8433 GB, free: 44.27 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000311/1.576, allocations: 250.1 kB / 0.8436 GB, free: 44.03 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002195/1.576, allocations: 341.3 kB / 0.8439 GB, free: 43.62 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.024e-05/1.576, allocations: 38.98 kB / 0.844 GB, free: 43.57 MB / 442.7 MB Notification: Performance of pre-optimization done (n=48): time 2.985e-06/1.576, allocations: 8 kB / 0.844 GB, free: 43.57 MB / 442.7 MB Notification: Performance of matching and sorting (n=58): time 0.003908/1.58, allocations: 1.82 MB / 0.8457 GB, free: 41.69 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.954e-05/1.58, allocations: 85.67 kB / 0.8458 GB, free: 41.59 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006665/1.581, allocations: 0.5501 MB / 0.8464 GB, free: 41.03 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 6.467e-05/1.581, allocations: 37.7 kB / 0.8464 GB, free: 40.99 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002019/1.581, allocations: 324.5 kB / 0.8467 GB, free: 40.66 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001547/1.581, allocations: 201 kB / 0.8469 GB, free: 40.46 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.667e-05/1.581, allocations: 20 kB / 0.8469 GB, free: 40.45 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001177/1.582, allocations: 386.7 kB / 0.8473 GB, free: 40.06 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004015/1.582, allocations: 273.5 kB / 0.8475 GB, free: 39.79 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004577/1.582, allocations: 443 kB / 0.848 GB, free: 39.29 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004448/1.583, allocations: 341.9 kB / 0.8483 GB, free: 38.96 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.919e-06/1.583, allocations: 4 kB / 0.8483 GB, free: 38.96 MB / 442.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001276/1.584, allocations: 0.9102 MB / 0.8492 GB, free: 38.04 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003436/1.584, allocations: 1.745 MB / 0.8509 GB, free: 36.16 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.171e-05/1.585, allocations: 4 kB / 0.8509 GB, free: 36.15 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001892/1.586, allocations: 356.4 kB / 0.8512 GB, free: 35.8 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005429/1.587, allocations: 143.8 kB / 0.8514 GB, free: 35.66 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007277/1.588, allocations: 0.8138 MB / 0.8522 GB, free: 34.82 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006193/1.588, allocations: 47.91 kB / 0.8522 GB, free: 34.77 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.176e-05/1.588, allocations: 32.08 kB / 0.8522 GB, free: 34.74 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.09e-05/1.588, allocations: 7.938 kB / 0.8522 GB, free: 34.73 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001094/1.59, allocations: 0.7762 MB / 0.853 GB, free: 33.95 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.487e-06/1.59, allocations: 4.594 kB / 0.853 GB, free: 33.95 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001325/1.591, allocations: 232.5 kB / 0.8532 GB, free: 33.72 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005308/1.591, allocations: 151.8 kB / 0.8534 GB, free: 33.57 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000486/1.592, allocations: 0.7123 MB / 0.8541 GB, free: 32.83 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005483/1.593, allocations: 43.92 kB / 0.8541 GB, free: 32.79 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.197e-05/1.593, allocations: 27.98 kB / 0.8541 GB, free: 32.76 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[1]) * Number of discrete 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 {2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0001766/1.593, allocations: 156.8 kB / 0.8543 GB, free: 32.6 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001375/1.593, allocations: 71.16 kB / 0.8544 GB, free: 32.53 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001374/1.594, allocations: 0.8282 MB / 0.8552 GB, free: 31.7 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.314e-06/1.594, allocations: 8 kB / 0.8552 GB, free: 31.7 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.731e-06/1.594, allocations: 0 / 0.8552 GB, free: 31.7 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.894e-06/1.594, allocations: 3.984 kB / 0.8552 GB, free: 31.69 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002487/1.597, allocations: 1.645 MB / 0.8568 GB, free: 29.98 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.953e-06/1.597, allocations: 4 kB / 0.8568 GB, free: 29.97 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004693/1.597, allocations: 111.9 kB / 0.8569 GB, free: 29.86 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001448/1.599, allocations: 332.5 kB / 0.8572 GB, free: 29.54 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.878e-05/1.599, allocations: 19.98 kB / 0.8572 GB, free: 29.52 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006382/1.6, allocations: 0.7943 MB / 0.858 GB, free: 28.7 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/1.6, allocations: 7.969 kB / 0.858 GB, free: 28.69 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001597/1.601, allocations: 1.236 MB / 0.8592 GB, free: 27.41 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002839/1.601, allocations: 148.2 kB / 0.8594 GB, free: 27.25 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001477/1.602, allocations: 19.98 kB / 0.8594 GB, free: 27.23 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000557/1.602, allocations: 47.86 kB / 0.8594 GB, free: 27.18 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001209/1.602, allocations: 60.41 kB / 0.8595 GB, free: 27.12 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.435e-05/1.602, allocations: 27.92 kB / 0.8595 GB, free: 27.09 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0005518/1.603, allocations: 431.2 kB / 0.8599 GB, free: 26.67 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.5e-07/1.603, allocations: 0 / 0.8599 GB, free: 26.67 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001902/1.605, allocations: 0.5893 MB / 0.8605 GB, free: 26.08 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank2.aboveLevel[1]) * Number of discrete states: 2 (tank2.aboveLevel[1],tank1.aboveLevel[1]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 53 * 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 {2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.003223/1.608, allocations: 2.421 MB / 0.8629 GB, free: 23.63 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002002/1.61, allocations: 1.13 MB / 0.864 GB, free: 22.5 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.272e-06/1.61, allocations: 1.625 kB / 0.864 GB, free: 22.5 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005736/1.611, allocations: 374.8 kB / 0.8643 GB, free: 22.13 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00151/1.612, allocations: 321.8 kB / 0.8646 GB, free: 21.82 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003264/1.615, allocations: 1.519 MB / 0.8661 GB, free: 20.25 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004141/1.616, allocations: 0.9879 MB / 0.8671 GB, free: 19.24 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001137/1.617, allocations: 319.9 kB / 0.8674 GB, free: 18.93 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003678/1.617, allocations: 243.3 kB / 0.8676 GB, free: 18.69 MB / 442.7 MB Notification: Performance of SimCode: time 1.252e-06/1.617, allocations: 0 / 0.8676 GB, free: 18.69 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3232/1.941, allocations: 28.06 MB / 0.895 GB, free: 92.99 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001924/1.941, allocations: 188.5 kB / 0.8952 GB, free: 92.77 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.849/4.79, allocations: 0 / 0.8952 GB, free: 92.77 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Fluid_Examples_AST_BatchPlant_Test_TwoTanks_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Fluid_Examples_AST_BatchPlant_Test_TwoTanks.fmu > Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks_res.mat does not exist to compare? outputFormat=mat