Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.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.TanksWithEmptyingPipe1,fileNamePrefix="Modelica_3_2_3_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1,fileNamePrefix="Modelica_3_2_3_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe1",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.001121/0.001122, allocations: 180.8 kB / 17.01 MB, free: 5.125 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.421/1.421, allocations: 205.4 MB / 223.1 MB, free: 9.117 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.000912/0.000912, allocations: 94.89 kB / 271.5 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002864/0.0002865, allocations: 4 kB / 328.3 MB, free: 15.44 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2431/0.2435, allocations: 47.57 MB / 375.9 MB, free: 45.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6699/0.9134, allocations: 324.2 MB / 0.6837 GB, free: 140.9 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000271/0.9138, allocations: 92.45 kB / 0.6838 GB, free: 140.8 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7897/1.703, allocations: 283.1 MB / 0.9603 GB, free: 22.85 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.064e-06/1.704, allocations: 0 / 0.9603 GB, free: 22.85 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001855/1.704, allocations: 43.92 kB / 0.9603 GB, free: 22.81 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: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.007188/1.711, allocations: 1.956 MB / 0.9622 GB, free: 20.8 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.877e-05/1.711, allocations: 8.031 kB / 0.9622 GB, free: 20.79 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007896/1.712, allocations: 164.3 kB / 0.9624 GB, free: 20.62 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001074/1.713, allocations: 170.2 kB / 0.9625 GB, free: 20.45 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002926/1.716, allocations: 1.05 MB / 0.9636 GB, free: 19.36 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.731e-05/1.716, allocations: 73.97 kB / 0.9636 GB, free: 19.29 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000372/1.716, allocations: 95.98 kB / 0.9637 GB, free: 19.2 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003038/1.719, allocations: 1.629 MB / 0.9653 GB, free: 17.48 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.054e-05/1.719, allocations: 7.938 kB / 0.9653 GB, free: 17.47 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000211/1.72, allocations: 43.97 kB / 0.9654 GB, free: 17.43 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001455/1.72, allocations: 101.9 kB / 0.9655 GB, free: 17.32 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002816/1.723, allocations: 1.616 MB / 0.967 GB, free: 15.71 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009882/1.732, allocations: 6.537 MB / 0.9734 GB, free: 8.812 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001304/1.734, allocations: 0.9153 MB / 0.9743 GB, free: 7.891 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003652/1.738, allocations: 2.832 MB / 0.9771 GB, free: 4.809 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.852e-05/1.738, allocations: 43.22 kB / 0.9771 GB, free: 4.754 MB / 426.7 MB Notification: Performance of pre-optimization done (n=80): time 2.825e-06/1.738, allocations: 0 / 0.9771 GB, free: 4.754 MB / 426.7 MB Notification: Performance of matching and sorting (n=90): time 0.008201/1.746, allocations: 3.725 MB / 0.9808 GB, free: 0.918 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.616e-05/1.746, allocations: 192.9 kB / 0.9809 GB, free: 0.6875 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2702/2.016, allocations: 1.146 MB / 0.9821 GB, free: 56.04 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003867/2.017, allocations: 50.8 kB / 0.9821 GB, free: 56.01 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007289/2.017, allocations: 0.6374 MB / 0.9827 GB, free: 55.92 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004756/2.018, allocations: 315.6 kB / 0.983 GB, free: 55.78 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001151/2.018, allocations: 30.28 kB / 0.9831 GB, free: 55.78 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.934e-05/2.018, allocations: 366.7 kB / 0.9834 GB, free: 55.48 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008912/2.019, allocations: 0.5544 MB / 0.9839 GB, free: 55.48 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009498/2.02, allocations: 0.9564 MB / 0.9849 GB, free: 55.03 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009324/2.021, allocations: 0.6703 MB / 0.9855 GB, free: 55.03 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.033e-06/2.021, allocations: 2.875 kB / 0.9855 GB, free: 55.03 MB / 426.7 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.002784/2.024, allocations: 1.833 MB / 0.9873 GB, free: 54.89 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009373/2.025, allocations: 4.396 MB / 0.9916 GB, free: 50.36 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.811e-05/2.025, allocations: 10.81 kB / 0.9916 GB, free: 50.36 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003658/2.028, allocations: 0.6619 MB / 0.9923 GB, free: 50.34 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001055/2.029, allocations: 274.6 kB / 0.9925 GB, free: 50.34 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001625/2.031, allocations: 2.167 MB / 0.9947 GB, free: 48.77 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001448/2.032, allocations: 100.7 kB / 0.9948 GB, free: 48.77 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001229/2.033, allocations: 65.72 kB / 0.9948 GB, free: 48.77 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.114e-05/2.033, allocations: 5.469 kB / 0.9948 GB, free: 48.77 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002476/2.035, allocations: 1.63 MB / 0.9964 GB, free: 48.73 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.719e-05/2.035, allocations: 10.88 kB / 0.9964 GB, free: 48.73 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002996/2.038, allocations: 0.5089 MB / 0.9969 GB, free: 48.7 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001097/2.039, allocations: 289.6 kB / 0.9972 GB, free: 48.7 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001301/2.041, allocations: 2.007 MB / 0.9992 GB, free: 47.14 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001392/2.042, allocations: 103.2 kB / 0.9993 GB, free: 47.14 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001229/2.042, allocations: 66.34 kB / 0.9993 GB, free: 47.14 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[2],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[2],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[2],tank1.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 (163): * Single equations (assignments): 160 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 3,2 7,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0008586/2.043, allocations: 471.2 kB / 0.9998 GB, free: 46.95 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002307/2.043, allocations: 145.4 kB / 0.9999 GB, free: 46.88 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002653/2.046, allocations: 1.517 MB / 1.001 GB, free: 46.75 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.367e-06/2.046, allocations: 10.12 kB / 1.001 GB, free: 46.75 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.743e-06/2.046, allocations: 3.875 kB / 1.001 GB, free: 46.75 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.127e-05/2.046, allocations: 5.859 kB / 1.001 GB, free: 46.75 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004228/2.05, allocations: 2.827 MB / 1.004 GB, free: 46.35 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.682e-06/2.05, allocations: 0 / 1.004 GB, free: 46.35 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006662/2.051, allocations: 155.4 kB / 1.004 GB, free: 46.35 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002626/2.053, allocations: 0.6178 MB / 1.005 GB, free: 46.32 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.735e-05/2.054, allocations: 28.36 kB / 1.005 GB, free: 46.32 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001329/2.055, allocations: 2.117 MB / 1.007 GB, free: 44.76 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/2.055, allocations: 1.719 kB / 1.007 GB, free: 44.76 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002978/2.058, allocations: 2.138 MB / 1.009 GB, free: 44.38 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005924/2.059, allocations: 247.1 kB / 1.009 GB, free: 44.21 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002102/2.059, allocations: 24.94 kB / 1.009 GB, free: 44.21 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000944/2.06, allocations: 83.61 kB / 1.009 GB, free: 44.2 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002232/2.06, allocations: 94.94 kB / 1.01 GB, free: 44.2 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.405e-05/2.06, allocations: 44.42 kB / 1.01 GB, free: 44.2 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001088/2.061, allocations: 0.8913 MB / 1.01 GB, free: 44.09 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.4e-07/2.061, allocations: 2.094 kB / 1.01 GB, free: 44.09 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003592/2.065, allocations: 1.22 MB / 1.012 GB, free: 44.09 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Number of discrete states: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 81 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 12,1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.006402/2.071, allocations: 3.973 MB / 1.016 GB, free: 42.92 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004457/2.076, allocations: 2.189 MB / 1.018 GB, free: 42.88 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.814e-06/2.076, allocations: 8.156 kB / 1.018 GB, free: 42.88 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001454/2.077, allocations: 0.6979 MB / 1.018 GB, free: 42.88 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00282/2.08, allocations: 0.5658 MB / 1.019 GB, free: 42.88 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009383/2.089, allocations: 11.97 MB / 1.031 GB, free: 33.45 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00071/2.09, allocations: 1.287 MB / 1.032 GB, free: 32.73 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002256/2.092, allocations: 0.5558 MB / 1.032 GB, free: 32.71 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007239/2.093, allocations: 0.5265 MB / 1.033 GB, free: 32.71 MB / 426.7 MB Notification: Performance of SimCode: time 1.272e-06/2.093, allocations: 2.406 kB / 1.033 GB, free: 32.71 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07782/2.171, allocations: 51.99 MB / 1.084 GB, free: 29.56 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001816/2.171, allocations: 273.1 kB / 1.084 GB, free: 29.2 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.91/6.081, allocations: 0 / 1.084 GB, free: 29.2 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe1_fmu --startTime=0 --stopTime=120 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe1.fmu > Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1_res.mat does not exist to compare? outputFormat=mat