Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1,fileNamePrefix="Modelica_3_2_3_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1,fileNamePrefix="Modelica_3_2_3_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001135/0.001135, allocations: 172 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.527/1.527, allocations: 205.2 MB / 219.8 MB, free: 14.26 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009034/0.0009033, allocations: 74.72 kB / 268 MB, free: 14.1 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.597e-05/2.601e-05, allocations: 0 / 322.5 MB, free: 17.25 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09462/0.09466, allocations: 47.57 MB / 370.1 MB, free: 1.613 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7592/0.8539, allocations: 328.1 MB / 0.6819 GB, free: 12.4 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002716/0.8542, allocations: 86.33 kB / 0.6819 GB, free: 12.36 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5402/1.394, allocations: 166.4 MB / 0.8445 GB, free: 21.55 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.414e-06/1.394, allocations: 4 kB / 0.8445 GB, free: 21.54 MB / 426.7 MB Notification: Performance of Transformations before backend: time 5.713e-05/1.395, allocations: 19.94 kB / 0.8445 GB, free: 21.52 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.002133/1.397, allocations: 1.118 MB / 0.8456 GB, free: 20.36 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.157e-05/1.397, allocations: 8.031 kB / 0.8456 GB, free: 20.35 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001077/1.397, allocations: 102.5 kB / 0.8457 GB, free: 20.24 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003235/1.397, allocations: 98.92 kB / 0.8458 GB, free: 20.14 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001065/1.398, allocations: 0.6247 MB / 0.8464 GB, free: 19.47 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.854e-05/1.398, allocations: 45.31 kB / 0.8464 GB, free: 19.43 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.749e-05/1.398, allocations: 55.98 kB / 0.8465 GB, free: 19.38 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001144/1.4, allocations: 0.8814 MB / 0.8474 GB, free: 18.44 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.92e-05/1.4, allocations: 0 / 0.8474 GB, free: 18.44 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.026e-05/1.4, allocations: 24 kB / 0.8474 GB, free: 18.41 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.443e-05/1.4, allocations: 49.28 kB / 0.8474 GB, free: 18.36 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001006/1.401, allocations: 0.7742 MB / 0.8482 GB, free: 17.59 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004035/1.405, allocations: 3.791 MB / 0.8519 GB, free: 13.57 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006912/1.405, allocations: 0.5163 MB / 0.8524 GB, free: 13.05 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000312/1.406, allocations: 262.1 kB / 0.8526 GB, free: 12.79 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001707/1.408, allocations: 1.884 MB / 0.8545 GB, free: 10.7 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.155e-05/1.408, allocations: 42.56 kB / 0.8545 GB, free: 10.64 MB / 426.7 MB Notification: Performance of pre-optimization done (n=41): time 1.623e-06/1.408, allocations: 4 kB / 0.8545 GB, free: 10.64 MB / 426.7 MB Notification: Performance of matching and sorting (n=46): time 0.002307/1.41, allocations: 1.379 MB / 0.8559 GB, free: 9.199 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.163e-05/1.41, allocations: 132.5 kB / 0.856 GB, free: 9.039 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006482/1.411, allocations: 0.656 MB / 0.8566 GB, free: 8.375 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.608e-05/1.411, allocations: 37.7 kB / 0.8567 GB, free: 8.332 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001956/1.411, allocations: 395.1 kB / 0.8571 GB, free: 7.941 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.328e-05/1.411, allocations: 161.7 kB / 0.8572 GB, free: 7.781 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.568e-05/1.411, allocations: 20 kB / 0.8572 GB, free: 7.762 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.81e-05/1.411, allocations: 386.8 kB / 0.8576 GB, free: 7.375 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003399/1.411, allocations: 253.5 kB / 0.8578 GB, free: 7.129 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000422/1.412, allocations: 490.2 kB / 0.8583 GB, free: 6.543 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004085/1.412, allocations: 317.9 kB / 0.8586 GB, free: 6.234 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.557e-06/1.412, allocations: 4 kB / 0.8586 GB, free: 6.23 MB / 426.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001141/1.413, allocations: 0.8746 MB / 0.8595 GB, free: 5.34 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004328/1.414, allocations: 2.704 MB / 0.8621 GB, free: 2.426 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.038e-05/1.414, allocations: 8 kB / 0.8621 GB, free: 2.418 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009117/1.415, allocations: 161.5 kB / 0.8623 GB, free: 2.254 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008932/1.416, allocations: 191.7 kB / 0.8624 GB, free: 2.066 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008695/1.417, allocations: 1.808 MB / 0.8642 GB, free: 188 kB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006142/1.417, allocations: 60.03 kB / 0.8643 GB, free: 128 kB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.539e-05/1.417, allocations: 35.98 kB / 0.8643 GB, free: 92 kB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.14e-05/1.417, allocations: 11.84 kB / 0.8643 GB, free: 80 kB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.2446/1.662, allocations: 0.7693 MB / 0.8651 GB, free: 83.78 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.725e-05/1.662, allocations: 6.625 kB / 0.8651 GB, free: 83.78 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001108/1.663, allocations: 167.7 kB / 0.8652 GB, free: 83.76 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008463/1.664, allocations: 173.5 kB / 0.8654 GB, free: 83.76 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007645/1.665, allocations: 1.186 MB / 0.8666 GB, free: 82.73 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009242/1.666, allocations: 52.97 kB / 0.8666 GB, free: 82.73 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000137/1.666, allocations: 40.06 kB / 0.8666 GB, free: 82.73 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[2],tank1.ports_m_flow_out[2],tank1.ports_m_flow_out[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (88): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 2,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0003039/1.666, allocations: 158.9 kB / 0.8668 GB, free: 82.62 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002484/1.667, allocations: 80.41 kB / 0.8669 GB, free: 82.62 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001929/1.668, allocations: 0.8088 MB / 0.8677 GB, free: 82.55 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.63e-05/1.668, allocations: 7.188 kB / 0.8677 GB, free: 82.55 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.606e-06/1.669, allocations: 0.7969 kB / 0.8677 GB, free: 82.55 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.007e-05/1.669, allocations: 3.234 kB / 0.8677 GB, free: 82.55 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003197/1.672, allocations: 1.552 MB / 0.8692 GB, free: 82.21 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.561e-06/1.672, allocations: 1 kB / 0.8692 GB, free: 82.21 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000717/1.672, allocations: 142.4 kB / 0.8693 GB, free: 82.21 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006531/1.673, allocations: 127.1 kB / 0.8694 GB, free: 82.19 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.267e-05/1.673, allocations: 15.67 kB / 0.8695 GB, free: 82.19 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008501/1.674, allocations: 1.746 MB / 0.8712 GB, free: 80.57 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.567e-06/1.674, allocations: 6.125 kB / 0.8712 GB, free: 80.57 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001862/1.676, allocations: 1.116 MB / 0.8723 GB, free: 80.33 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003528/1.676, allocations: 172.6 kB / 0.8724 GB, free: 80.2 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001835/1.677, allocations: 16.23 kB / 0.8724 GB, free: 80.2 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005867/1.677, allocations: 35.14 kB / 0.8725 GB, free: 80.2 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001612/1.677, allocations: 53.09 kB / 0.8725 GB, free: 80.2 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.935e-05/1.677, allocations: 30.16 kB / 0.8726 GB, free: 80.2 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0008677/1.678, allocations: 0.5113 MB / 0.8731 GB, free: 80.09 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.41e-07/1.678, allocations: 0 / 0.8731 GB, free: 80.09 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002539/1.681, allocations: 0.6515 MB / 0.8737 GB, free: 80.09 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (tank1.medium.T,tank1.level) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Number of discrete states: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (57): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 2,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.003645/1.684, allocations: 2.446 MB / 0.8761 GB, free: 79.08 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00285/1.687, allocations: 1.159 MB / 0.8772 GB, free: 79.07 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.897e-06/1.687, allocations: 1.844 kB / 0.8772 GB, free: 79.07 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009597/1.688, allocations: 370.5 kB / 0.8776 GB, free: 79.06 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002099/1.69, allocations: 377.6 kB / 0.8779 GB, free: 79.05 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004371/1.695, allocations: 1.489 MB / 0.8794 GB, free: 78.71 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005326/1.695, allocations: 1.008 MB / 0.8804 GB, free: 78 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001676/1.697, allocations: 367.6 kB / 0.8807 GB, free: 77.99 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004292/1.697, allocations: 288.9 kB / 0.881 GB, free: 77.98 MB / 426.7 MB Notification: Performance of SimCode: time 8.12e-07/1.698, allocations: 1 kB / 0.881 GB, free: 77.98 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06077/1.758, allocations: 30.64 MB / 0.9109 GB, free: 76.72 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000155/1.758, allocations: 235 kB / 0.9111 GB, free: 76.41 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.923/4.682, allocations: 4 kB / 0.9111 GB, free: 76.41 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe1_fmu --startTime=0 --stopTime=35 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe1.fmu > Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1_res.mat does not exist to compare? outputFormat=mat