Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks") [: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 3.2.2+maint.om/package.mo): time 0.001097/0.001097, allocations: 194.9 kB / 8.138 MB, free: 2.191 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.147/1.147, allocations: 194.2 MB / 202.8 MB, free: 8.707 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001813/0.001813, allocations: 118.6 kB / 247.8 MB, free: 6.344 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 6.362e-06/6.452e-06, allocations: 0 / 297.6 MB, free: 7.98 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07724/0.07727, allocations: 44.48 MB / 342.1 MB, free: 11.39 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5406/0.6179, allocations: 316.4 MB / 0.643 GB, free: 10.25 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002485/0.6182, allocations: 83.27 kB / 0.6431 GB, free: 10.21 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.437/1.055, allocations: 135.6 MB / 0.7755 GB, free: 28.59 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.929e-05/1.055, allocations: 24.06 kB / 0.7756 GB, free: 28.57 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.002206/1.057, allocations: 1.028 MB / 0.7766 GB, free: 27.5 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.564e-05/1.058, allocations: 8.031 kB / 0.7766 GB, free: 27.49 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003742/1.058, allocations: 91.05 kB / 0.7767 GB, free: 27.4 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001095/1.059, allocations: 0.5791 MB / 0.7772 GB, free: 26.79 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.85e-05/1.059, allocations: 20 kB / 0.7772 GB, free: 26.77 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.075e-05/1.059, allocations: 35.84 kB / 0.7773 GB, free: 26.74 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009302/1.06, allocations: 0.6189 MB / 0.7779 GB, free: 26.12 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009418/1.061, allocations: 0.6699 MB / 0.7785 GB, free: 25.41 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.904e-05/1.061, allocations: 0 / 0.7785 GB, free: 25.41 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.619e-05/1.061, allocations: 0 / 0.7785 GB, free: 25.41 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.455e-05/1.061, allocations: 44.97 kB / 0.7786 GB, free: 25.37 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003777/1.065, allocations: 2.735 MB / 0.7812 GB, free: 22.49 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004552/1.065, allocations: 382.2 kB / 0.7816 GB, free: 22.11 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002923/1.066, allocations: 246.1 kB / 0.7818 GB, free: 21.87 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00021/1.066, allocations: 336.9 kB / 0.7822 GB, free: 21.46 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.284e-05/1.066, allocations: 50.7 kB / 0.7822 GB, free: 21.41 MB / 394.7 MB Notification: Performance of pre-optimization done (n=48): time 1.974e-06/1.066, allocations: 0 / 0.7822 GB, free: 21.41 MB / 394.7 MB Notification: Performance of matching and sorting (n=58): time 0.005301/1.071, allocations: 1.867 MB / 0.784 GB, free: 19.49 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.281e-05/1.071, allocations: 81.61 kB / 0.7841 GB, free: 19.39 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004644/1.072, allocations: 446.1 kB / 0.7845 GB, free: 18.95 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.315e-05/1.072, allocations: 29.7 kB / 0.7846 GB, free: 18.92 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001109/1.072, allocations: 263.9 kB / 0.7848 GB, free: 18.66 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001354/1.072, allocations: 197 kB / 0.785 GB, free: 18.46 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.811e-05/1.072, allocations: 0 / 0.785 GB, free: 18.46 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 7.535e-05/1.072, allocations: 378.8 kB / 0.7854 GB, free: 18.08 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003748/1.073, allocations: 277.5 kB / 0.7856 GB, free: 17.81 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004208/1.073, allocations: 437.3 kB / 0.7861 GB, free: 17.32 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00402/1.077, allocations: 0.8929 MB / 0.7869 GB, free: 16.43 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.468e-06/1.077, allocations: 4 kB / 0.7869 GB, free: 16.42 MB / 394.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.00475/1.082, allocations: 1.432 MB / 0.7883 GB, free: 14.98 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002525/1.082, allocations: 1.745 MB / 0.79 GB, free: 13.09 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.689e-06/1.082, allocations: 7.938 kB / 0.79 GB, free: 13.09 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005018/1.083, allocations: 164.7 kB / 0.7902 GB, free: 12.92 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006065/1.083, allocations: 155.7 kB / 0.7903 GB, free: 12.77 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001597/1.085, allocations: 0.9815 MB / 0.7913 GB, free: 11.76 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005945/1.086, allocations: 35.94 kB / 0.7913 GB, free: 11.73 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.069e-05/1.086, allocations: 28 kB / 0.7914 GB, free: 11.7 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.582e-06/1.086, allocations: 4 kB / 0.7914 GB, free: 11.7 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004491/1.09, allocations: 1.267 MB / 0.7926 GB, free: 10.43 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.985e-06/1.09, allocations: 4 kB / 0.7926 GB, free: 10.42 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003824/1.091, allocations: 105.3 kB / 0.7927 GB, free: 10.32 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006057/1.091, allocations: 163.8 kB / 0.7929 GB, free: 10.16 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001164/1.092, allocations: 0.8253 MB / 0.7937 GB, free: 9.305 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005393/1.093, allocations: 36.03 kB / 0.7937 GB, free: 9.27 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.396e-05/1.093, allocations: 24.06 kB / 0.7937 GB, free: 9.246 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 82 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0001659/1.093, allocations: 152.3 kB / 0.7939 GB, free: 9.09 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001203/1.093, allocations: 67.19 kB / 0.7939 GB, free: 9.023 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001917/1.095, allocations: 0.8503 MB / 0.7948 GB, free: 8.172 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.133e-06/1.095, allocations: 8 kB / 0.7948 GB, free: 8.164 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.03e-06/1.095, allocations: 0 / 0.7948 GB, free: 8.164 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.316e-06/1.095, allocations: 3.984 kB / 0.7948 GB, free: 8.16 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002818/1.098, allocations: 1.592 MB / 0.7963 GB, free: 6.52 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.317e-06/1.098, allocations: 4 kB / 0.7963 GB, free: 6.516 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005329/1.099, allocations: 107.9 kB / 0.7964 GB, free: 6.41 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004889/1.099, allocations: 176.9 kB / 0.7966 GB, free: 6.234 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.817e-05/1.099, allocations: 12 kB / 0.7966 GB, free: 6.223 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001093/1.1, allocations: 0.8879 MB / 0.7975 GB, free: 5.309 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/1.1, allocations: 0 / 0.7975 GB, free: 5.309 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002095/1.102, allocations: 1.296 MB / 0.7988 GB, free: 3.977 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001386/1.103, allocations: 140.3 kB / 0.7989 GB, free: 3.82 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001279/1.103, allocations: 4 kB / 0.7989 GB, free: 3.816 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005068/1.103, allocations: 35.88 kB / 0.7989 GB, free: 3.781 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.505e-05/1.103, allocations: 44.58 kB / 0.799 GB, free: 3.738 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.761e-05/1.103, allocations: 27.98 kB / 0.799 GB, free: 3.711 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0003249/1.104, allocations: 342.9 kB / 0.7993 GB, free: 3.379 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001562/1.105, allocations: 0.5502 MB / 0.7999 GB, free: 2.828 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank2.aboveLevel[1]) * Number of discrete states: 2 (tank2.aboveLevel[1],tank1.aboveLevel[1]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 53 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.001279/1.107, allocations: 0.5899 MB / 0.8004 GB, free: 2.262 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001706/1.108, allocations: 1.097 MB / 0.8015 GB, free: 1.172 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/1.108, allocations: 0 / 0.8015 GB, free: 1.172 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000525/1.109, allocations: 370.7 kB / 0.8019 GB, free: 0.8086 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001311/1.11, allocations: 279.9 kB / 0.8021 GB, free: 0.543 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1165/1.227, allocations: 1.182 MB / 0.8033 GB, free: 110.7 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005534/1.227, allocations: 1.057 MB / 0.8043 GB, free: 110 MB / 394.7 MB Notification: Performance of SimCode: time 8.42e-07/1.227, allocations: 3.938 kB / 0.8043 GB, free: 110 MB / 394.7 MB Notification: Performance of Templates: time 0.02979/1.257, allocations: 21.4 MB / 0.8252 GB, free: 109.7 MB / 394.7 MB make -j1 -f Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.makefile (rm -f Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; mkfifo Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe >> ../files/Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.sim & ./Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe 2>&1)