Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.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.TanksWithEmptyingPipe2,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001199/0.001198, allocations: 197.2 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.251/1.251, allocations: 227.2 MB / 245 MB, free: 7.609 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009424/0.0009423, allocations: 97.56 kB / 297.3 MB, free: 6.18 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002433/0.0002434, allocations: 4 kB / 358 MB, free: 9.43 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2265/0.2268, allocations: 51.48 MB / 409.5 MB, free: 26.69 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6902/0.917, allocations: 328.2 MB / 0.7204 GB, free: 140.7 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002401/0.9173, allocations: 91.95 kB / 0.7205 GB, free: 140.6 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.099/2.016, allocations: 331.3 MB / 1.044 GB, free: 52.37 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.533e-06/2.016, allocations: 2.344 kB / 1.044 GB, free: 52.37 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002358/2.017, allocations: 44.77 kB / 1.044 GB, free: 52.37 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: 315 * Number of variables: 315 Notification: Performance of Generate backend data structure: time 0.007583/2.024, allocations: 2.263 MB / 1.046 GB, free: 51.47 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.244e-05/2.024, allocations: 7.469 kB / 1.046 GB, free: 51.47 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008413/2.025, allocations: 191.3 kB / 1.046 GB, free: 51.43 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001193/2.026, allocations: 205.5 kB / 1.047 GB, free: 51.33 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003521/2.03, allocations: 1.192 MB / 1.048 GB, free: 51.03 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002153/2.03, allocations: 97.45 kB / 1.048 GB, free: 51.03 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005714/2.031, allocations: 127.8 kB / 1.048 GB, free: 51.02 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004328/2.035, allocations: 1.94 MB / 1.05 GB, free: 50.74 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.107e-05/2.035, allocations: 5.125 kB / 1.05 GB, free: 50.74 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002273/2.035, allocations: 58.91 kB / 1.05 GB, free: 50.74 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000137/2.035, allocations: 116.6 kB / 1.05 GB, free: 50.73 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00301/2.038, allocations: 1.956 MB / 1.052 GB, free: 50.72 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01081/2.049, allocations: 7.68 MB / 1.06 GB, free: 47.32 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001653/2.051, allocations: 1.166 MB / 1.061 GB, free: 47.29 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004698/2.056, allocations: 3.425 MB / 1.064 GB, free: 45.71 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.12e-05/2.056, allocations: 46.31 kB / 1.064 GB, free: 45.68 MB / 458.7 MB Notification: Performance of pre-optimization done (n=119): time 3.136e-06/2.056, allocations: 2.406 kB / 1.064 GB, free: 45.68 MB / 458.7 MB Notification: Performance of matching and sorting (n=134): time 0.0116/2.067, allocations: 5.431 MB / 1.069 GB, free: 44.63 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.346e-05/2.067, allocations: 169.3 kB / 1.07 GB, free: 44.44 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002021/2.069, allocations: 1.251 MB / 1.071 GB, free: 44.27 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001406/2.07, allocations: 59.39 kB / 1.071 GB, free: 44.24 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005397/2.07, allocations: 0.711 MB / 1.072 GB, free: 43.96 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003554/2.07, allocations: 462.1 kB / 1.072 GB, free: 43.68 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001104/2.071, allocations: 38.97 kB / 1.072 GB, free: 43.68 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001194/2.071, allocations: 372.6 kB / 1.072 GB, free: 43.38 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001124/2.072, allocations: 0.7528 MB / 1.073 GB, free: 43.37 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001375/2.073, allocations: 1.163 MB / 1.074 GB, free: 42.93 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001377/2.075, allocations: 0.8656 MB / 1.075 GB, free: 42.91 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.14e-05/2.075, allocations: 3.719 kB / 1.075 GB, free: 42.91 MB / 458.7 MB Notification: Performance of matching and sorting (n=221) (initialization): time 0.003821/2.078, allocations: 2.39 MB / 1.077 GB, free: 42.71 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009221/2.079, allocations: 4.344 MB / 1.082 GB, free: 38.27 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.637e-05/2.079, allocations: 13.97 kB / 1.082 GB, free: 38.27 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005291/2.085, allocations: 0.9489 MB / 1.083 GB, free: 38.23 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001494/2.086, allocations: 343.2 kB / 1.083 GB, free: 38.23 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002281/2.089, allocations: 2.903 MB / 1.086 GB, free: 36.15 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001888/2.09, allocations: 139.6 kB / 1.086 GB, free: 36.14 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002966/2.091, allocations: 84.14 kB / 1.086 GB, free: 36.14 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.252e-05/2.091, allocations: 3.812 kB / 1.086 GB, free: 36.14 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003596/2.094, allocations: 2.103 MB / 1.088 GB, free: 36.06 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.483e-05/2.094, allocations: 10.88 kB / 1.088 GB, free: 36.06 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004117/2.099, allocations: 0.6816 MB / 1.089 GB, free: 36.03 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001396/2.1, allocations: 355.1 kB / 1.089 GB, free: 36.03 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001704/2.102, allocations: 2.647 MB / 1.092 GB, free: 33.95 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001691/2.103, allocations: 136.2 kB / 1.092 GB, free: 33.94 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002583/2.104, allocations: 77.58 kB / 1.092 GB, free: 33.94 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * Number of states: 0 () * Number of discrete variables: 18 ($PRE.tank3.aboveLevel[1],tank3.aboveLevel[1],$PRE.tank3.aboveLevel[2],tank3.aboveLevel[2],$PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[2],$PRE.tank2.aboveLevel[3],tank2.aboveLevel[3],tank2.ports_m_flow_out[3],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[1],tank3.ports_m_flow_out[2],tank3.ports_m_flow_out[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (200): * Single equations (assignments): 196 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 2,2 7,2 7,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.001087/2.105, allocations: 0.5171 MB / 1.092 GB, free: 33.74 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005154/2.105, allocations: 171.5 kB / 1.092 GB, free: 33.66 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00455/2.11, allocations: 2.363 MB / 1.095 GB, free: 33.48 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.585e-05/2.11, allocations: 17.16 kB / 1.095 GB, free: 33.48 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.291e-05/2.11, allocations: 0 / 1.095 GB, free: 33.48 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.789e-05/2.11, allocations: 11.19 kB / 1.095 GB, free: 33.48 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006796/2.117, allocations: 4.017 MB / 1.099 GB, free: 33.03 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.706e-06/2.117, allocations: 3.625 kB / 1.099 GB, free: 33.03 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001022/2.118, allocations: 233.5 kB / 1.099 GB, free: 33.03 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003764/2.122, allocations: 0.8834 MB / 1.1 GB, free: 33 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001762/2.122, allocations: 44.89 kB / 1.1 GB, free: 33 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001978/2.124, allocations: 2.852 MB / 1.103 GB, free: 30.9 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.889e-06/2.124, allocations: 9.531 kB / 1.103 GB, free: 30.9 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004802/2.129, allocations: 3.251 MB / 1.106 GB, free: 30.4 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007243/2.129, allocations: 272.8 kB / 1.106 GB, free: 30.21 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004849/2.13, allocations: 38.59 kB / 1.106 GB, free: 30.21 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001474/2.131, allocations: 106.7 kB / 1.106 GB, free: 30.21 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002718/2.132, allocations: 154.9 kB / 1.106 GB, free: 30.2 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001652/2.132, allocations: 62.7 kB / 1.106 GB, free: 30.2 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001657/2.133, allocations: 0.9747 MB / 1.107 GB, free: 30.09 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.1e-07/2.133, allocations: 0 / 1.107 GB, free: 30.09 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.004959/2.138, allocations: 1.387 MB / 1.109 GB, free: 29.88 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (tank3.medium.T,tank3.level,tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 6 (tank3.aboveLevel[1],tank3.aboveLevel[2],tank1.aboveLevel[1],tank2.aboveLevel[1],tank2.aboveLevel[2],tank2.aboveLevel[3]) * Number of discrete states: 6 (tank3.aboveLevel[1],tank3.aboveLevel[2],tank1.aboveLevel[1],tank2.aboveLevel[1],tank2.aboveLevel[2],tank2.aboveLevel[3]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (133): * Single equations (assignments): 127 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,2 12,2 12,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.008414/2.147, allocations: 5.345 MB / 1.114 GB, free: 28.23 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005734/2.153, allocations: 3.023 MB / 1.117 GB, free: 28.18 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.387e-06/2.153, allocations: 3.719 kB / 1.117 GB, free: 28.18 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001885/2.154, allocations: 1.065 MB / 1.118 GB, free: 28.17 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004294/2.159, allocations: 0.7441 MB / 1.119 GB, free: 28.16 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01221/2.171, allocations: 12.92 MB / 1.131 GB, free: 34.24 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001216/2.172, allocations: 1.442 MB / 1.133 GB, free: 33.52 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.002924/2.175, allocations: 0.7131 MB / 1.133 GB, free: 33.47 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001118/2.176, allocations: 0.6584 MB / 1.134 GB, free: 33.46 MB / 474.7 MB Notification: Performance of SimCode: time 1.332e-06/2.176, allocations: 0 / 1.134 GB, free: 33.46 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1042/2.281, allocations: 64.12 MB / 1.197 GB, free: 7.848 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002599/2.281, allocations: 266.6 kB / 1.197 GB, free: 7.488 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.37/6.651, allocations: 0 / 1.197 GB, free: 7.488 MB / 474.7 MB (rm -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2_res.mat --tempDir=temp_Modelica_trunk_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe2_fmu --startTime=0 --stopTime=120 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe2.fmu > Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2_res.mat does not exist to compare? outputFormat=mat