Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem.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: translateModel(Modelica.Fluid.Examples.HeatingSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heater.mediums.1..h|heater.mediums.1..p|pipe.mediums.1..h|pipe.mediums.1..p|pipe.mediums.2..h|pipe.mediums.2..p|radiator.mediums.1..h|radiator.mediums.1..p|tank.level|tank.medium.h",fileNamePrefix="Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem") translateModel(Modelica.Fluid.Examples.HeatingSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heater.mediums.1..h|heater.mediums.1..p|pipe.mediums.1..h|pipe.mediums.1..p|pipe.mediums.2..h|pipe.mediums.2..p|radiator.mediums.1..h|radiator.mediums.1..p|tank.level|tank.medium.h",fileNamePrefix="Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem") [: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.3+maint.om/package.mo): time 0.001615/0.001619, allocations: 180 kB / 8.479 MB, free: 1.891 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.493/1.493, allocations: 205.2 MB / 214.1 MB, free: 5.09 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009053/0.0009055, allocations: 75.75 kB / 262.1 MB, free: 5.141 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.403e-06/7.433e-06, allocations: 4 kB / 315 MB, free: 41.5 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08778/0.0878, allocations: 47.58 MB / 362.5 MB, free: 9.961 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.14/7.228, allocations: 3.153 GB / 3.507 GB, free: 78.24 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002334/7.228, allocations: 75.95 kB / 3.507 GB, free: 78.17 MB / 426.7 MB Notification: Performance of FrontEnd: time 8.965/16.19, allocations: 3.089 GB / 6.596 GB, free: 30.57 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002235/16.19, allocations: 67.38 kB / 6.596 GB, free: 30.55 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 538 * Number of variables: 538 Notification: Performance of Generate backend data structure: time 0.01504/16.21, allocations: 3.606 MB / 6.6 GB, free: 28.79 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.295e-05/16.21, allocations: 7.25 kB / 6.6 GB, free: 28.79 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002029/16.21, allocations: 309.4 kB / 6.6 GB, free: 28.65 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005515/16.22, allocations: 2.034 MB / 6.602 GB, free: 28.19 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001681/16.22, allocations: 149.4 kB / 6.602 GB, free: 28.12 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005774/16.22, allocations: 118.1 kB / 6.603 GB, free: 28.12 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005097/16.22, allocations: 2.943 MB / 6.605 GB, free: 28.11 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004616/16.23, allocations: 3.093 MB / 6.608 GB, free: 27.62 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.503e-05/16.23, allocations: 6.906 kB / 6.608 GB, free: 27.62 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000254/16.23, allocations: 9.078 kB / 6.608 GB, free: 27.62 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001835/16.23, allocations: 217.3 kB / 6.609 GB, free: 27.62 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01894/16.25, allocations: 12.06 MB / 6.62 GB, free: 22.7 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001926/16.25, allocations: 1.36 MB / 6.622 GB, free: 22.68 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001711/16.25, allocations: 1.357 MB / 6.623 GB, free: 22.66 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008277/16.26, allocations: 5.999 MB / 6.629 GB, free: 19.73 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.589e-05/16.26, allocations: 56.16 kB / 6.629 GB, free: 19.69 MB / 458.7 MB Notification: Performance of pre-optimization done (n=173): time 3.686e-06/16.26, allocations: 1.75 kB / 6.629 GB, free: 19.69 MB / 458.7 MB Notification: Performance of matching and sorting (n=199): time 0.02821/16.29, allocations: 8.83 MB / 6.638 GB, free: 18.77 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.093e-05/16.29, allocations: 127.8 kB / 6.638 GB, free: 18.64 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002952/16.29, allocations: 1.213 MB / 6.639 GB, free: 18.47 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005954/16.29, allocations: 25.7 kB / 6.639 GB, free: 18.44 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007081/16.29, allocations: 0.7991 MB / 6.64 GB, free: 17.96 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001178/16.29, allocations: 0.6591 MB / 6.64 GB, free: 17.53 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003731/16.29, allocations: 2.156 kB / 6.64 GB, free: 17.53 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002051/16.29, allocations: 396.8 kB / 6.641 GB, free: 17.22 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002055/16.29, allocations: 1.217 MB / 6.642 GB, free: 17.21 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002/16.3, allocations: 1.715 MB / 6.644 GB, free: 16.66 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01548/16.31, allocations: 3.935 MB / 6.647 GB, free: 16.64 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.553e-05/16.31, allocations: 8.906 kB / 6.647 GB, free: 16.64 MB / 458.7 MB Notification: Performance of matching and sorting (n=294) (initialization): time 0.02297/16.34, allocations: 6.545 MB / 6.654 GB, free: 16.45 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001277/16.34, allocations: 5.771 MB / 6.66 GB, free: 10.57 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.982e-05/16.34, allocations: 15.38 kB / 6.66 GB, free: 10.57 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009012/16.35, allocations: 2.62 MB / 6.662 GB, free: 10.53 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001496/16.35, allocations: 318.8 kB / 6.662 GB, free: 10.53 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009465/16.36, allocations: 4.755 MB / 6.667 GB, free: 9.926 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003105/16.36, allocations: 141.9 kB / 6.667 GB, free: 9.91 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005541/16.36, allocations: 112.3 kB / 6.667 GB, free: 9.91 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.431e-05/16.36, allocations: 9.969 kB / 6.667 GB, free: 9.91 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02018/16.38, allocations: 5.947 MB / 6.673 GB, free: 9.859 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.706e-05/16.38, allocations: 14.25 kB / 6.673 GB, free: 9.859 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008274/16.39, allocations: 2.313 MB / 6.675 GB, free: 9.824 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001847/16.39, allocations: 365.9 kB / 6.676 GB, free: 9.824 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006996/16.4, allocations: 4.027 MB / 6.68 GB, free: 9.238 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002743/16.4, allocations: 132.9 kB / 6.68 GB, free: 9.223 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00049/16.4, allocations: 112.8 kB / 6.68 GB, free: 9.223 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 65 * Number of states: 0 () * Number of discrete variables: 4 (tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (170): * Single equations (assignments): 169 * 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 {18 107} Notification: Performance of prepare postOptimizeDAE: time 0.0008899/16.4, allocations: 157.9 kB / 6.68 GB, free: 9.102 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008185/16.4, allocations: 200.4 kB / 6.68 GB, free: 9 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01113/16.41, allocations: 4.386 MB / 6.684 GB, free: 8.738 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.822e-05/16.41, allocations: 26.14 kB / 6.685 GB, free: 8.738 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.844e-05/16.41, allocations: 6 kB / 6.685 GB, free: 8.738 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008316/16.42, allocations: 3.664 MB / 6.688 GB, free: 8.281 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01573/16.44, allocations: 6.434 MB / 6.694 GB, free: 7.852 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.858e-06/16.44, allocations: 7.781 kB / 6.694 GB, free: 7.848 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001588/16.44, allocations: 321.3 kB / 6.695 GB, free: 7.848 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003251/16.44, allocations: 1.024 MB / 6.696 GB, free: 7.777 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002541/16.44, allocations: 51.69 kB / 6.696 GB, free: 7.777 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01066/16.45, allocations: 10.33 MB / 6.706 GB, free: 15.77 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.29e-06/16.45, allocations: 1.562 kB / 6.706 GB, free: 15.77 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01327/16.47, allocations: 5.536 MB / 6.711 GB, free: 13.84 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002251/16.47, allocations: 0.591 MB / 6.712 GB, free: 13.5 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009539/16.47, allocations: 20.05 kB / 6.712 GB, free: 13.5 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002373/16.47, allocations: 108.5 kB / 6.712 GB, free: 13.48 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003727/16.47, allocations: 147.5 kB / 6.712 GB, free: 13.46 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002877/16.47, allocations: 82.64 kB / 6.712 GB, free: 13.45 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.001703/16.48, allocations: 0.8896 MB / 6.713 GB, free: 13.08 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.008572/16.48, allocations: 1.804 MB / 6.715 GB, free: 12.78 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (tank.medium.T,tank.level,heater.mediums[1].p,heater.mediums[1].T,radiator.mediums[1].p,radiator.mediums[1].T,pipe.mediums[1].p,pipe.mediums[1].T,pipe.mediums[2].p,pipe.mediums[2].T) * Number of discrete variables: 4 (tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (184): * Single equations (assignments): 170 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 6,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 3 {1 9,2 8,5 17} Notification: Performance of Backend phase and start with SimCode phase: time 0.005019/16.49, allocations: 1.348 MB / 6.716 GB, free: 12.38 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01183/16.5, allocations: 4.923 MB / 6.721 GB, free: 10.88 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.046e-05/16.5, allocations: 1.438 kB / 6.721 GB, free: 10.88 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00526/16.51, allocations: 2.122 MB / 6.723 GB, free: 9.883 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005435/16.51, allocations: 0.7808 MB / 6.724 GB, free: 9.723 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01507/16.53, allocations: 4.741 MB / 6.728 GB, free: 8.273 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003278/16.53, allocations: 2.138 MB / 6.73 GB, free: 7.395 MB / 474.7 MB Notification: Performance of SimCode: time 1.232e-06/16.53, allocations: 4.281 kB / 6.73 GB, free: 7.395 MB / 474.7 MB Notification: Performance of Templates: time 0.3453/16.88, allocations: 75.29 MB / 6.804 GB, free: 70.36 MB / 474.7 MB make -j1 -f Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem.makefile (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem.sim & ./Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem.pipe 2>&1)