Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2") [: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.1+maint.om/package.mo): time 0.003472/0.003472, allocations: 173.6 kB / 7.443 MB, free: 2.312 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.324/1.324, allocations: 170.6 MB / 178.4 MB, free: 15.46 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001526/0.001526, allocations: 99.94 kB / 217.7 MB, free: 8.242 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 7.364e-06/7.394e-06, allocations: 0 / 261.7 MB, free: 26.67 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07908/0.07911, allocations: 38.77 MB / 300.5 MB, free: 3.906 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7922/0.8714, allocations: 316.2 MB / 0.6022 GB, free: 123.6 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000299/0.8718, allocations: 92.89 kB / 0.6023 GB, free: 123.5 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.069/1.94, allocations: 321.2 MB / 0.916 GB, free: 31.91 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002015/1.941, allocations: 45.06 kB / 0.916 GB, free: 31.9 MB / 346.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.007326/1.948, allocations: 2.052 MB / 0.918 GB, free: 30.95 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.864e-05/1.948, allocations: 10 kB / 0.9181 GB, free: 30.95 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001449/1.95, allocations: 200.9 kB / 0.9182 GB, free: 30.86 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004144/1.954, allocations: 1.256 MB / 0.9195 GB, free: 30.48 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001173/1.954, allocations: 44.88 kB / 0.9195 GB, free: 30.48 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006042/1.954, allocations: 69.97 kB / 0.9196 GB, free: 30.48 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003804/1.958, allocations: 1.8 MB / 0.9213 GB, free: 30.47 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002739/1.961, allocations: 1.782 MB / 0.9231 GB, free: 30.19 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.455e-05/1.961, allocations: 5.125 kB / 0.9231 GB, free: 30.19 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001594/1.961, allocations: 3.688 kB / 0.9231 GB, free: 30.19 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001062/1.961, allocations: 132.8 kB / 0.9232 GB, free: 30.18 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01106/1.972, allocations: 7.39 MB / 0.9304 GB, free: 26.75 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001212/1.974, allocations: 0.8873 MB / 0.9313 GB, free: 26.72 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001001/1.975, allocations: 0.7178 MB / 0.932 GB, free: 26.55 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004318/1.979, allocations: 3.274 MB / 0.9352 GB, free: 24.34 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.631e-05/1.979, allocations: 43.53 kB / 0.9352 GB, free: 24.29 MB / 346.7 MB Notification: Performance of pre-optimization done (n=119): time 3.316e-06/1.979, allocations: 3.844 kB / 0.9352 GB, free: 24.29 MB / 346.7 MB Notification: Performance of matching and sorting (n=134): time 0.01567/1.995, allocations: 4.828 MB / 0.94 GB, free: 22.68 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.365e-05/1.995, allocations: 175 kB / 0.9401 GB, free: 22.49 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001995/1.997, allocations: 0.9352 MB / 0.941 GB, free: 22.08 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002385/1.997, allocations: 32.02 kB / 0.9411 GB, free: 22.05 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000625/1.998, allocations: 0.5482 MB / 0.9416 GB, free: 21.64 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005558/1.998, allocations: 454.8 kB / 0.942 GB, free: 21.3 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.452e-05/1.998, allocations: 3.188 kB / 0.942 GB, free: 21.3 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001828/1.999, allocations: 378.5 kB / 0.9424 GB, free: 20.96 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001484/2, allocations: 0.7272 MB / 0.9431 GB, free: 20.69 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001591/2.002, allocations: 1.184 MB / 0.9443 GB, free: 19.87 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01279/2.015, allocations: 2.693 MB / 0.9469 GB, free: 19.39 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.713e-05/2.015, allocations: 6.531 kB / 0.9469 GB, free: 19.39 MB / 346.7 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.01745/2.032, allocations: 4.099 MB / 0.9509 GB, free: 18.39 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001287/2.033, allocations: 5.147 MB / 0.9559 GB, free: 12.94 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.842e-05/2.033, allocations: 13.28 kB / 0.9559 GB, free: 12.94 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001621/2.035, allocations: 466.1 kB / 0.9564 GB, free: 12.8 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001833/2.037, allocations: 355.3 kB / 0.9567 GB, free: 12.77 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005296/2.042, allocations: 3.394 MB / 0.96 GB, free: 9.836 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002075/2.044, allocations: 112.8 kB / 0.9602 GB, free: 9.758 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003571/2.045, allocations: 86.38 kB / 0.9602 GB, free: 9.68 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.171e-05/2.045, allocations: 6.938 kB / 0.9602 GB, free: 9.676 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01561/2.06, allocations: 3.722 MB / 0.9639 GB, free: 6.887 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.494e-05/2.061, allocations: 12 kB / 0.9639 GB, free: 6.875 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001303/2.062, allocations: 334 kB / 0.9642 GB, free: 6.609 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001837/2.064, allocations: 376.6 kB / 0.9646 GB, free: 6.289 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004538/2.068, allocations: 3.022 MB / 0.9675 GB, free: 19.41 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002226/2.071, allocations: 105 kB / 0.9676 GB, free: 19.33 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004632/2.071, allocations: 83.03 kB / 0.9677 GB, free: 19.25 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * 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 (207): * Single equations (assignments): 203 * 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.0009786/2.072, allocations: 161.6 kB / 0.9679 GB, free: 19.09 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005958/2.073, allocations: 158.1 kB / 0.968 GB, free: 18.94 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007253/2.08, allocations: 2.497 MB / 0.9704 GB, free: 16.9 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.102e-05/2.08, allocations: 20.61 kB / 0.9705 GB, free: 16.88 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.358e-05/2.08, allocations: 0 / 0.9705 GB, free: 16.88 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.88e-05/2.08, allocations: 12.3 kB / 0.9705 GB, free: 16.88 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0102/2.09, allocations: 3.908 MB / 0.9743 GB, free: 13.12 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.04e-05/2.09, allocations: 0 / 0.9743 GB, free: 13.12 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001216/2.091, allocations: 243.7 kB / 0.9745 GB, free: 12.88 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001489/2.093, allocations: 443.1 kB / 0.9749 GB, free: 12.44 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001472/2.093, allocations: 23.98 kB / 0.975 GB, free: 12.41 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004329/2.097, allocations: 3.106 MB / 0.978 GB, free: 9.211 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.652e-06/2.097, allocations: 4 kB / 0.978 GB, free: 9.207 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007599/2.105, allocations: 3.31 MB / 0.9812 GB, free: 5.828 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007758/2.106, allocations: 239.1 kB / 0.9815 GB, free: 5.574 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005643/2.106, allocations: 8 kB / 0.9815 GB, free: 5.566 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001612/2.108, allocations: 83.77 kB / 0.9816 GB, free: 5.484 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003622/2.108, allocations: 145 kB / 0.9817 GB, free: 5.344 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000213/2.109, allocations: 55.97 kB / 0.9817 GB, free: 5.289 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0017/2.11, allocations: 0.6999 MB / 0.9824 GB, free: 4.586 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.00655/2.117, allocations: 1.26 MB / 0.9837 GB, free: 3.328 MB / 362.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.004137/2.121, allocations: 1.191 MB / 0.9848 GB, free: 2.234 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.1908/2.312, allocations: 2.959 MB / 0.9877 GB, free: 73.7 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.22e-05/2.312, allocations: 0 / 0.9877 GB, free: 73.7 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001911/2.314, allocations: 1.05 MB / 0.9887 GB, free: 73.7 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003416/2.317, allocations: 0.5937 MB / 0.9893 GB, free: 73.7 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005741/2.323, allocations: 2.826 MB / 0.9921 GB, free: 73.14 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001337/2.325, allocations: 1.605 MB / 0.9936 GB, free: 72.41 MB / 362.7 MB Notification: Performance of SimCode: time 1.082e-06/2.325, allocations: 2.156 kB / 0.9936 GB, free: 72.41 MB / 362.7 MB Notification: Performance of Templates: time 0.08066/2.405, allocations: 50.98 MB / 1.043 GB, free: 69.66 MB / 362.7 MB make -j1 -f Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.makefile (rm -f Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe ; mkfifo Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe >> ../files/Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.sim & ./Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe 2>&1)