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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00105/0.00105, allocations: 196 kB / 8.541 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.107/1.107, allocations: 225.5 MB / 234.4 MB, free: 3.43 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008851/0.0008852, allocations: 89.7 kB / 286.3 MB, free: 5.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09186/0.09277, allocations: 56.9 MB / 343.2 MB, free: 8.664 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08312/0.1759, allocations: 51.47 MB / 394.7 MB, free: 5.137 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.503/0.6789, allocations: 327.4 MB / 0.7052 GB, free: 29.52 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002022/0.6792, allocations: 93.69 kB / 0.7052 GB, free: 29.47 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: 315 * Number of variables: 315 Notification: Performance of Generate backend data structure: time 0.9455/1.625, allocations: 332.3 MB / 1.03 GB, free: 44.78 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.066e-05/1.625, allocations: 9.375 kB / 1.03 GB, free: 44.78 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009916/1.626, allocations: 205.8 kB / 1.03 GB, free: 44.68 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002633/1.628, allocations: 1.2 MB / 1.031 GB, free: 43.84 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.446e-05/1.628, allocations: 51.7 kB / 1.031 GB, free: 43.84 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002085/1.629, allocations: 69.88 kB / 1.031 GB, free: 43.83 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002497/1.631, allocations: 1.801 MB / 1.033 GB, free: 43.01 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002293/1.633, allocations: 1.798 MB / 1.035 GB, free: 41.93 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.038e-05/1.633, allocations: 3.938 kB / 1.035 GB, free: 41.93 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000147/1.634, allocations: 8.938 kB / 1.035 GB, free: 41.93 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.041e-05/1.634, allocations: 123.8 kB / 1.035 GB, free: 41.89 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00905/1.643, allocations: 7.404 MB / 1.042 GB, free: 36 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001069/1.644, allocations: 0.8978 MB / 1.043 GB, free: 35.59 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008609/1.645, allocations: 0.7265 MB / 1.044 GB, free: 35.24 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003954/1.649, allocations: 3.353 MB / 1.047 GB, free: 32.25 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.232e-05/1.649, allocations: 51.55 kB / 1.047 GB, free: 32.19 MB / 458.7 MB Notification: Performance of pre-optimization done (n=119): time 2.395e-06/1.649, allocations: 0 / 1.047 GB, free: 32.19 MB / 458.7 MB Notification: Performance of matching and sorting (n=134): time 0.01568/1.664, allocations: 4.866 MB / 1.052 GB, free: 27.3 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.493e-05/1.665, allocations: 171.5 kB / 1.052 GB, free: 27.1 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001239/1.666, allocations: 0.9522 MB / 1.053 GB, free: 26.14 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001677/1.666, allocations: 45.62 kB / 1.053 GB, free: 26.09 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002759/1.666, allocations: 0.5373 MB / 1.053 GB, free: 25.54 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003135/1.667, allocations: 449.4 kB / 1.054 GB, free: 25.1 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.383e-05/1.667, allocations: 3.531 kB / 1.054 GB, free: 25.1 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 8.358e-05/1.667, allocations: 373.9 kB / 1.054 GB, free: 24.73 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009593/1.668, allocations: 0.7341 MB / 1.055 GB, free: 23.99 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001072/1.669, allocations: 1.13 MB / 1.056 GB, free: 22.71 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006438/1.675, allocations: 1.845 MB / 1.058 GB, free: 20.9 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.041e-05/1.675, allocations: 4 kB / 1.058 GB, free: 20.89 MB / 458.7 MB Notification: Performance of matching and sorting (n=221) (initialization): time 0.008904/1.684, allocations: 3.242 MB / 1.061 GB, free: 17.64 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006633/1.685, allocations: 4.275 MB / 1.065 GB, free: 13.05 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.716e-05/1.685, allocations: 12 kB / 1.065 GB, free: 13.04 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00126/1.686, allocations: 467 kB / 1.066 GB, free: 12.57 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001324/1.688, allocations: 339.5 kB / 1.066 GB, free: 12.23 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004528/1.692, allocations: 3.396 MB / 1.069 GB, free: 8.73 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001732/1.694, allocations: 103.8 kB / 1.069 GB, free: 8.629 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001835/1.694, allocations: 79.97 kB / 1.069 GB, free: 8.551 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.025e-06/1.694, allocations: 4 kB / 1.069 GB, free: 8.547 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007808/1.702, allocations: 2.868 MB / 1.072 GB, free: 5.664 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.518e-05/1.702, allocations: 8 kB / 1.072 GB, free: 5.656 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001086/1.703, allocations: 351.2 kB / 1.073 GB, free: 5.305 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00129/1.704, allocations: 356.1 kB / 1.073 GB, free: 4.957 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003529/1.708, allocations: 3.042 MB / 1.076 GB, free: 1.812 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001702/1.71, allocations: 103.9 kB / 1.076 GB, free: 1.711 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002452/1.71, allocations: 75.97 kB / 1.076 GB, free: 1.637 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 () * 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.0005876/1.71, allocations: 167.1 kB / 1.076 GB, free: 1.469 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004391/1.711, allocations: 146.2 kB / 1.076 GB, free: 1.324 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005996/1.717, allocations: 2.508 MB / 1.079 GB, free: 14.84 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.813e-05/1.717, allocations: 16 kB / 1.079 GB, free: 14.82 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.022e-06/1.717, allocations: 0 / 1.079 GB, free: 14.82 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.551e-05/1.717, allocations: 7.969 kB / 1.079 GB, free: 14.82 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008255/1.725, allocations: 3.988 MB / 1.083 GB, free: 10.78 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.773e-06/1.725, allocations: 192 / 1.083 GB, free: 10.78 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00111/1.726, allocations: 243.7 kB / 1.083 GB, free: 10.54 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001392/1.728, allocations: 455.1 kB / 1.083 GB, free: 10.09 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001092/1.728, allocations: 19.98 kB / 1.083 GB, free: 10.07 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003752/1.732, allocations: 3.127 MB / 1.086 GB, free: 6.844 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.869e-06/1.732, allocations: 3.984 kB / 1.086 GB, free: 6.84 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006116/1.738, allocations: 3.34 MB / 1.09 GB, free: 3.438 MB / 474.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.1383/1.876, allocations: 4.828 MB / 1.094 GB, free: 108.2 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004046/1.877, allocations: 249.6 kB / 1.095 GB, free: 108.1 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002905/1.877, allocations: 12.27 kB / 1.095 GB, free: 108.1 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001107/1.878, allocations: 89.61 kB / 1.095 GB, free: 108.1 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002296/1.878, allocations: 136.8 kB / 1.095 GB, free: 108.1 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001446/1.878, allocations: 57.44 kB / 1.095 GB, free: 108.1 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.0007847/1.879, allocations: 0.7174 MB / 1.096 GB, free: 108 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.004719/1.884, allocations: 1.535 MB / 1.097 GB, free: 108 MB / 474.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]) * 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.002446/1.886, allocations: 1.214 MB / 1.098 GB, free: 107.9 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.004162/1.891, allocations: 2.963 MB / 1.101 GB, free: 107.8 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 4.028e-06/1.891, allocations: 2.406 kB / 1.101 GB, free: 107.8 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001493/1.892, allocations: 1.063 MB / 1.102 GB, free: 107.8 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002692/1.895, allocations: 0.6036 MB / 1.103 GB, free: 107.8 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004456/1.899, allocations: 2.799 MB / 1.106 GB, free: 107.2 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001149/1.9, allocations: 1.615 MB / 1.107 GB, free: 106.5 MB / 474.7 MB Notification: Performance of SimCode: time 4e-07/1.9, allocations: 0 / 1.107 GB, free: 106.5 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)