Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.EmptyTanks.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.Tanks.EmptyTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.EmptyTanks") translateModel(Modelica.Fluid.Examples.Tanks.EmptyTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.EmptyTanks") [: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.001863/0.001863, allocations: 191.8 kB / 8.139 MB, free: 2.203 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.176/1.176, allocations: 194.2 MB / 202.8 MB, free: 8.734 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.001759/0.001759, allocations: 118.9 kB / 247.7 MB, free: 6.293 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 6.322e-06/6.512e-06, allocations: 0 / 297.6 MB, free: 7.984 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08371/0.08373, allocations: 44.5 MB / 342.1 MB, free: 11.38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5675/0.6512, allocations: 315.7 MB / 0.6423 GB, free: 10.92 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002292/0.6515, allocations: 79.48 kB / 0.6424 GB, free: 10.88 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.4561/1.108, allocations: 129.9 MB / 0.7692 GB, free: 35.22 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.63e-05/1.108, allocations: 16.44 kB / 0.7693 GB, free: 35.21 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: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.002772/1.11, allocations: 1.087 MB / 0.7703 GB, free: 34.08 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.665e-05/1.111, allocations: 8.031 kB / 0.7703 GB, free: 34.07 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004971/1.111, allocations: 94.97 kB / 0.7704 GB, free: 33.98 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001412/1.112, allocations: 0.6556 MB / 0.7711 GB, free: 33.29 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.45e-05/1.113, allocations: 84.72 kB / 0.7711 GB, free: 33.2 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001294/1.113, allocations: 28 kB / 0.7712 GB, free: 33.17 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001234/1.114, allocations: 0.7756 MB / 0.7719 GB, free: 32.39 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001249/1.115, allocations: 0.8283 MB / 0.7727 GB, free: 31.54 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.773e-05/1.115, allocations: 11.92 kB / 0.7727 GB, free: 31.53 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.006e-05/1.115, allocations: 0 / 0.7727 GB, free: 31.53 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.346e-05/1.115, allocations: 49.28 kB / 0.7728 GB, free: 31.48 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005386/1.121, allocations: 3.201 MB / 0.7759 GB, free: 28.17 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006387/1.121, allocations: 0.5067 MB / 0.7764 GB, free: 27.66 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004183/1.122, allocations: 358.2 kB / 0.7768 GB, free: 27.31 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002638/1.125, allocations: 2.039 MB / 0.7787 GB, free: 25.09 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.557e-05/1.125, allocations: 39.06 kB / 0.7788 GB, free: 25.05 MB / 394.7 MB Notification: Performance of pre-optimization done (n=56): time 2.425e-06/1.125, allocations: 0 / 0.7788 GB, free: 25.05 MB / 394.7 MB Notification: Performance of matching and sorting (n=66): time 0.007579/1.132, allocations: 2.579 MB / 0.7813 GB, free: 22.41 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.063e-05/1.132, allocations: 89.77 kB / 0.7814 GB, free: 22.31 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005596/1.133, allocations: 446.1 kB / 0.7818 GB, free: 21.86 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 7.689e-05/1.133, allocations: 29.7 kB / 0.7818 GB, free: 21.83 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001002/1.133, allocations: 268 kB / 0.7821 GB, free: 21.56 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001516/1.133, allocations: 224.7 kB / 0.7823 GB, free: 21.34 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.626e-05/1.133, allocations: 0 / 0.7823 GB, free: 21.34 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 8.158e-05/1.133, allocations: 376.2 kB / 0.7827 GB, free: 20.96 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004702/1.134, allocations: 349.4 kB / 0.783 GB, free: 20.62 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005333/1.134, allocations: 499 kB / 0.7835 GB, free: 20.08 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004589/1.139, allocations: 1.057 MB / 0.7845 GB, free: 19.02 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.013e-06/1.139, allocations: 3.938 kB / 0.7845 GB, free: 19.02 MB / 394.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.005888/1.145, allocations: 1.756 MB / 0.7862 GB, free: 17.25 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002308/1.145, allocations: 1.571 MB / 0.7878 GB, free: 15.55 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.205e-05/1.145, allocations: 7.906 kB / 0.7878 GB, free: 15.55 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008477/1.146, allocations: 369.6 kB / 0.7881 GB, free: 15.18 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007243/1.147, allocations: 159.8 kB / 0.7883 GB, free: 15.03 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002134/1.149, allocations: 1.274 MB / 0.7895 GB, free: 13.73 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008126/1.15, allocations: 27.97 kB / 0.7896 GB, free: 13.7 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.559e-05/1.15, allocations: 31.98 kB / 0.7896 GB, free: 13.67 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.066e-05/1.15, allocations: 8 kB / 0.7896 GB, free: 13.66 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004645/1.155, allocations: 1.371 MB / 0.7909 GB, free: 12.29 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.266e-05/1.155, allocations: 4.531 kB / 0.7909 GB, free: 12.29 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006261/1.155, allocations: 248.6 kB / 0.7912 GB, free: 12.04 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007219/1.156, allocations: 159.8 kB / 0.7913 GB, free: 11.88 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007298/1.157, allocations: 0.8606 MB / 0.7922 GB, free: 11 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007103/1.157, allocations: 27.92 kB / 0.7922 GB, free: 10.97 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.397e-05/1.157, allocations: 27.98 kB / 0.7922 GB, free: 10.94 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 4 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[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 {4 9} Notification: Performance of prepare postOptimizeDAE: time 0.0002617/1.158, allocations: 136.6 kB / 0.7923 GB, free: 10.8 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002211/1.158, allocations: 67.16 kB / 0.7924 GB, free: 10.73 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00327/1.161, allocations: 1.248 MB / 0.7936 GB, free: 9.477 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.576e-06/1.161, allocations: 8 kB / 0.7936 GB, free: 9.469 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.502e-06/1.161, allocations: 0 / 0.7936 GB, free: 9.469 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.917e-06/1.161, allocations: 7.891 kB / 0.7936 GB, free: 9.461 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004177/1.166, allocations: 2.086 MB / 0.7957 GB, free: 7.348 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.869e-06/1.166, allocations: 4 kB / 0.7957 GB, free: 7.344 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006266/1.166, allocations: 111.9 kB / 0.7958 GB, free: 7.234 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008069/1.167, allocations: 368.7 kB / 0.7961 GB, free: 6.871 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.508e-05/1.167, allocations: 11.98 kB / 0.7962 GB, free: 6.859 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001977/1.169, allocations: 1.26 MB / 0.7974 GB, free: 5.574 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/1.169, allocations: 0 / 0.7974 GB, free: 5.574 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003366/1.172, allocations: 1.758 MB / 0.7991 GB, free: 3.797 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004526/1.173, allocations: 236.1 kB / 0.7993 GB, free: 3.547 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001892/1.173, allocations: 4 kB / 0.7993 GB, free: 3.543 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007282/1.174, allocations: 31.97 kB / 0.7994 GB, free: 3.512 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001306/1.174, allocations: 56.56 kB / 0.7994 GB, free: 3.457 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.584e-05/1.174, allocations: 23.98 kB / 0.7994 GB, free: 3.434 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0004011/1.175, allocations: 350.9 kB / 0.7998 GB, free: 3.094 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001898/1.176, allocations: 0.5973 MB / 0.8004 GB, free: 2.496 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 4 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 57 * 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 {4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.001405/1.178, allocations: 0.5789 MB / 0.8009 GB, free: 1.938 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002353/1.18, allocations: 1.332 MB / 0.8022 GB, free: 0.6055 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.829e-06/1.18, allocations: 3.938 kB / 0.8022 GB, free: 0.6016 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008618/1.181, allocations: 450.1 kB / 0.8027 GB, free: 168 kB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.1225/1.304, allocations: 292 kB / 0.8029 GB, free: 114.4 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003112/1.307, allocations: 1.34 MB / 0.8042 GB, free: 114.2 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005995/1.307, allocations: 1.1 MB / 0.8053 GB, free: 113.5 MB / 394.7 MB Notification: Performance of SimCode: time 8.42e-07/1.307, allocations: 0 / 0.8053 GB, free: 113.5 MB / 394.7 MB Notification: Performance of Templates: time 0.03191/1.339, allocations: 23.52 MB / 0.8283 GB, free: 112.9 MB / 394.7 MB make -j1 -f Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.EmptyTanks.makefile (rm -f Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & ./Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.EmptyTanks -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1)