Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.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.TanksWithEmptyingPipe2,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2,fileNamePrefix="Modelica_3_2_3_cpp_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 3.2.3+maint.om/package.mo): time 0.001661/0.001661, allocations: 185.5 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.005/2.005, allocations: 205.4 MB / 222.5 MB, free: 9.137 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.001187/0.001186, allocations: 91.23 kB / 270.9 MB, free: 8.387 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004395/0.0004398, allocations: 12 kB / 327.1 MB, free: 124 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3513/0.3518, allocations: 47.58 MB / 374.6 MB, free: 45.45 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.031/1.382, allocations: 326.8 MB / 0.685 GB, free: 105.3 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003298/1.383, allocations: 91.12 kB / 0.6851 GB, free: 105.3 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.727/3.11, allocations: 326.1 MB / 1.004 GB, free: 51.01 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.895e-06/3.11, allocations: 0 / 1.004 GB, free: 51.01 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002375/3.111, allocations: 49.98 kB / 1.004 GB, free: 51.01 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: 315 * Number of variables: 315 Notification: Performance of Generate backend data structure: time 0.00983/3.12, allocations: 2.252 MB / 1.006 GB, free: 50.07 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.03e-05/3.121, allocations: 10.03 kB / 1.006 GB, free: 50.07 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009974/3.122, allocations: 192.4 kB / 1.006 GB, free: 50.02 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001176/3.123, allocations: 201.5 kB / 1.006 GB, free: 49.93 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004699/3.127, allocations: 1.195 MB / 1.007 GB, free: 49.6 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001631/3.128, allocations: 100.8 kB / 1.007 GB, free: 49.59 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000521/3.128, allocations: 121.1 kB / 1.008 GB, free: 49.59 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005505/3.134, allocations: 1.956 MB / 1.01 GB, free: 49.3 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.546e-05/3.134, allocations: 7.344 kB / 1.01 GB, free: 49.3 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002908/3.134, allocations: 48.61 kB / 1.01 GB, free: 49.3 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000242/3.134, allocations: 117 kB / 1.01 GB, free: 49.3 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005843/3.14, allocations: 1.959 MB / 1.012 GB, free: 49.28 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02019/3.16, allocations: 7.675 MB / 1.019 GB, free: 45.87 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003585/3.164, allocations: 1.168 MB / 1.02 GB, free: 45.84 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009335/3.174, allocations: 3.434 MB / 1.024 GB, free: 44.27 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.458e-05/3.174, allocations: 50.45 kB / 1.024 GB, free: 44.22 MB / 426.7 MB Notification: Performance of pre-optimization done (n=119): time 4.539e-06/3.174, allocations: 2.156 kB / 1.024 GB, free: 44.22 MB / 426.7 MB Notification: Performance of matching and sorting (n=134): time 0.0225/3.196, allocations: 5.423 MB / 1.029 GB, free: 43.18 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.042e-05/3.196, allocations: 167.5 kB / 1.029 GB, free: 42.99 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002679/3.199, allocations: 1.257 MB / 1.03 GB, free: 42.82 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005179/3.2, allocations: 60.55 kB / 1.03 GB, free: 42.79 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005807/3.2, allocations: 0.6685 MB / 1.031 GB, free: 42.45 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007185/3.201, allocations: 467.8 kB / 1.031 GB, free: 42.16 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002201/3.201, allocations: 33.44 kB / 1.032 GB, free: 42.16 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001428/3.201, allocations: 379.9 kB / 1.032 GB, free: 41.85 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00227/3.204, allocations: 0.7558 MB / 1.033 GB, free: 41.84 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002666/3.206, allocations: 1.158 MB / 1.034 GB, free: 41.41 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002564/3.209, allocations: 0.8625 MB / 1.035 GB, free: 41.39 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.637e-05/3.209, allocations: 5.562 kB / 1.035 GB, free: 41.39 MB / 426.7 MB Notification: Performance of matching and sorting (n=221) (initialization): time 0.007112/3.216, allocations: 2.294 MB / 1.037 GB, free: 41.25 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001066/3.217, allocations: 4.28 MB / 1.041 GB, free: 36.8 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.395e-05/3.217, allocations: 11.53 kB / 1.041 GB, free: 36.8 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009628/3.227, allocations: 0.9561 MB / 1.042 GB, free: 36.77 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002915/3.23, allocations: 340.4 kB / 1.042 GB, free: 36.77 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003806/3.234, allocations: 2.911 MB / 1.045 GB, free: 34.68 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003227/3.237, allocations: 134.6 kB / 1.045 GB, free: 34.67 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00058/3.238, allocations: 77.83 kB / 1.045 GB, free: 34.67 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.495e-05/3.238, allocations: 3.875 kB / 1.045 GB, free: 34.67 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006534/3.244, allocations: 2.104 MB / 1.047 GB, free: 34.59 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.98e-05/3.244, allocations: 11.25 kB / 1.047 GB, free: 34.59 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007338/3.252, allocations: 0.6662 MB / 1.048 GB, free: 34.56 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00293/3.255, allocations: 359.2 kB / 1.048 GB, free: 34.56 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002673/3.257, allocations: 2.617 MB / 1.051 GB, free: 32.48 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002299/3.26, allocations: 130.8 kB / 1.051 GB, free: 32.48 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002469/3.26, allocations: 88.02 kB / 1.051 GB, free: 32.48 MB / 426.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.001371/3.261, allocations: 0.5068 MB / 1.052 GB, free: 32.28 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005437/3.262, allocations: 174.2 kB / 1.052 GB, free: 32.2 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007426/3.269, allocations: 2.355 MB / 1.054 GB, free: 32.02 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.606e-05/3.269, allocations: 16.16 kB / 1.054 GB, free: 32.02 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.184e-05/3.27, allocations: 2.969 kB / 1.054 GB, free: 32.02 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.91e-05/3.27, allocations: 7.781 kB / 1.054 GB, free: 32.02 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01111/3.281, allocations: 4.02 MB / 1.058 GB, free: 31.56 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.266e-05/3.281, allocations: 0 / 1.058 GB, free: 31.56 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001982/3.283, allocations: 244.3 kB / 1.058 GB, free: 31.56 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006635/3.289, allocations: 0.8892 MB / 1.059 GB, free: 31.53 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004131/3.29, allocations: 50.94 kB / 1.059 GB, free: 31.52 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003062/3.293, allocations: 2.837 MB / 1.062 GB, free: 29.44 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.052e-06/3.293, allocations: 3.312 kB / 1.062 GB, free: 29.44 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00837/3.301, allocations: 3.248 MB / 1.065 GB, free: 28.94 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001004/3.302, allocations: 284.8 kB / 1.065 GB, free: 28.75 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004911/3.303, allocations: 33.94 kB / 1.065 GB, free: 28.75 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002006/3.305, allocations: 108.6 kB / 1.066 GB, free: 28.74 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004126/3.305, allocations: 148 kB / 1.066 GB, free: 28.74 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000207/3.306, allocations: 62.22 kB / 1.066 GB, free: 28.74 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001984/3.308, allocations: 0.9758 MB / 1.067 GB, free: 28.63 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.683e-06/3.308, allocations: 3.062 kB / 1.067 GB, free: 28.63 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005872/3.313, allocations: 1.389 MB / 1.068 GB, free: 28.42 MB / 426.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.01261/3.326, allocations: 5.324 MB / 1.073 GB, free: 26.2 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.009563/3.336, allocations: 3.026 MB / 1.076 GB, free: 25.3 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.505e-05/3.336, allocations: 3.344 kB / 1.076 GB, free: 25.3 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003277/3.339, allocations: 1.066 MB / 1.077 GB, free: 24.97 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006225/3.345, allocations: 0.7403 MB / 1.078 GB, free: 24.82 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01631/3.362, allocations: 12.97 MB / 1.091 GB, free: 30.08 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001235/3.363, allocations: 1.427 MB / 1.092 GB, free: 29.3 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001767/3.365, allocations: 0.6684 MB / 1.093 GB, free: 28.82 MB / 442.7 MB Notification: Performance of SimCode: time 1.052e-06/3.365, allocations: 4 kB / 1.093 GB, free: 28.81 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.267/7.632, allocations: 66.88 MB / 1.158 GB, free: 63.53 MB / 442.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe2_fmu --startTime=0 --stopTime=120 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe2.fmu > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2_res.mat does not exist to compare? outputFormat=mat