Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_Modelica.Fluid.Examples.HeatingSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001542/0.001542, allocations: 182.4 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.023/2.023, allocations: 205.2 MB / 219.4 MB, free: 14.21 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001086/0.001086, allocations: 86.69 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.103e-05/3.119e-05, allocations: 4 kB / 321.5 MB, free: 17.85 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09371/0.09376, allocations: 47.57 MB / 369.1 MB, free: 2.215 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.542/9.636, allocations: 3.154 GB / 3.514 GB, free: 86.77 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002677/9.636, allocations: 83.19 kB / 3.515 GB, free: 86.73 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 13.97/23.6, allocations: 3.097 GB / 6.612 GB, free: 27.55 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.194e-06/23.6, allocations: 0 / 6.612 GB, free: 27.55 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003521/23.6, allocations: 67.45 kB / 6.612 GB, free: 27.49 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.01722/23.62, allocations: 3.592 MB / 6.616 GB, free: 24.43 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.782e-05/23.62, allocations: 8.031 kB / 6.616 GB, free: 24.43 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002381/23.62, allocations: 317.7 kB / 6.616 GB, free: 24.12 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008293/23.63, allocations: 2.01 MB / 6.618 GB, free: 22.88 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002995/23.63, allocations: 230 kB / 6.618 GB, free: 22.71 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001024/23.63, allocations: 202.4 kB / 6.618 GB, free: 22.58 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009168/23.64, allocations: 3.299 MB / 6.621 GB, free: 19.98 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.291e-05/23.64, allocations: 4 kB / 6.621 GB, free: 19.98 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004768/23.64, allocations: 89.22 kB / 6.622 GB, free: 19.9 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003748/23.64, allocations: 204 kB / 6.622 GB, free: 19.73 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008952/23.65, allocations: 3.015 MB / 6.625 GB, free: 17.05 MB / 458.7 MB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03282/23.69, allocations: 12.42 MB / 6.637 GB, free: 6.184 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006539/23.69, allocations: 2.204 MB / 6.639 GB, free: 4.164 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00359/23.7, allocations: 1.343 MB / 6.64 GB, free: 2.902 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01767/23.71, allocations: 5.987 MB / 6.646 GB, free: 12.47 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.927e-05/23.71, allocations: 60.56 kB / 6.646 GB, free: 12.41 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003061/23.72, allocations: 190 kB / 6.646 GB, free: 12.22 MB / 474.7 MB Notification: Performance of pre-optimization done (n=172): time 1.221e-05/23.72, allocations: 3.938 kB / 6.646 GB, free: 12.21 MB / 474.7 MB Notification: Performance of matching and sorting (n=198): time 0.03346/23.75, allocations: 7.249 MB / 6.653 GB, free: 4.926 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.994e-05/23.75, allocations: 120.8 kB / 6.654 GB, free: 4.781 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004201/23.75, allocations: 1.66 MB / 6.655 GB, free: 3.078 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006584/23.75, allocations: 61.7 kB / 6.655 GB, free: 3.012 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001087/23.76, allocations: 0.9639 MB / 6.656 GB, free: 2.043 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001285/23.76, allocations: 0.6825 MB / 6.657 GB, free: 1.367 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002969/23.76, allocations: 48 kB / 6.657 GB, free: 1.32 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002629/23.76, allocations: 403.3 kB / 6.657 GB, free: 0.918 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.3641/24.12, allocations: 1.182 MB / 6.658 GB, free: 39 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004666/24.13, allocations: 1.695 MB / 6.66 GB, free: 38.45 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00488/24.13, allocations: 1.436 MB / 6.662 GB, free: 38.43 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.646e-05/24.13, allocations: 6.922 kB / 6.662 GB, free: 38.43 MB / 474.7 MB Notification: Performance of matching and sorting (n=293) (initialization): time 0.01449/24.15, allocations: 4.007 MB / 6.665 GB, free: 38.34 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001287/24.15, allocations: 5.663 MB / 6.671 GB, free: 32.45 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.195e-05/24.15, allocations: 17.17 kB / 6.671 GB, free: 32.44 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02468/24.17, allocations: 3.561 MB / 6.674 GB, free: 32.4 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002634/24.18, allocations: 325.2 kB / 6.675 GB, free: 32.4 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01261/24.19, allocations: 3.938 MB / 6.679 GB, free: 31.85 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004641/24.19, allocations: 187 kB / 6.679 GB, free: 31.85 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008777/24.19, allocations: 114.8 kB / 6.679 GB, free: 31.85 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.94e-05/24.19, allocations: 4.438 kB / 6.679 GB, free: 31.85 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01214/24.21, allocations: 3.701 MB / 6.683 GB, free: 31.79 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.728e-05/24.21, allocations: 15.06 kB / 6.683 GB, free: 31.79 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01669/24.22, allocations: 2.582 MB / 6.685 GB, free: 31.75 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003162/24.23, allocations: 358.3 kB / 6.685 GB, free: 31.75 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00861/24.23, allocations: 3.418 MB / 6.689 GB, free: 31.21 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003499/24.24, allocations: 192.9 kB / 6.689 GB, free: 31.21 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005714/24.24, allocations: 105.9 kB / 6.689 GB, free: 31.21 MB / 474.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 (169): * Single equations (assignments): 168 * 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.000897/24.24, allocations: 229.4 kB / 6.689 GB, free: 31.1 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008176/24.24, allocations: 232.4 kB / 6.689 GB, free: 31.1 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01258/24.25, allocations: 3.881 MB / 6.693 GB, free: 30.92 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.633e-05/24.25, allocations: 26.2 kB / 6.693 GB, free: 30.92 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.831e-05/24.25, allocations: 3.125 kB / 6.693 GB, free: 30.92 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009597/24.26, allocations: 3.283 MB / 6.696 GB, free: 30.46 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01998/24.28, allocations: 6.327 MB / 6.703 GB, free: 30 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.202e-05/24.28, allocations: 3.953 kB / 6.703 GB, free: 30 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003136/24.29, allocations: 327 kB / 6.703 GB, free: 30 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007516/24.29, allocations: 1.189 MB / 6.704 GB, free: 29.93 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006957/24.29, allocations: 77 kB / 6.704 GB, free: 29.93 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01198/24.31, allocations: 10.4 MB / 6.714 GB, free: 22.07 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/24.31, allocations: 7.328 kB / 6.714 GB, free: 22.07 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01537/24.32, allocations: 5.121 MB / 6.719 GB, free: 21.66 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002721/24.32, allocations: 0.644 MB / 6.72 GB, free: 21.44 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001023/24.33, allocations: 57.86 kB / 6.72 GB, free: 21.44 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003748/24.33, allocations: 156.1 kB / 6.72 GB, free: 21.44 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000866/24.33, allocations: 168 kB / 6.72 GB, free: 21.43 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000388/24.33, allocations: 80.77 kB / 6.72 GB, free: 21.43 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.003124/24.33, allocations: 1.271 MB / 6.722 GB, free: 21.27 MB / 474.7 MB Notification: Performance of sort global known variables: time 7.32e-07/24.33, allocations: 0 / 6.722 GB, free: 21.27 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.009552/24.34, allocations: 1.94 MB / 6.724 GB, free: 21.27 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 (183): * Single equations (assignments): 169 * 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,6 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.005718/24.35, allocations: 1.363 MB / 6.725 GB, free: 21.14 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01818/24.37, allocations: 4.867 MB / 6.73 GB, free: 21.04 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.174e-05/24.37, allocations: 0 / 6.73 GB, free: 21.04 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006991/24.37, allocations: 2.206 MB / 6.732 GB, free: 20.47 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008359/24.38, allocations: 0.9606 MB / 6.733 GB, free: 20.42 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0146/24.4, allocations: 4.747 MB / 6.737 GB, free: 19.52 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002239/24.4, allocations: 1.902 MB / 6.739 GB, free: 18.77 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001522/24.4, allocations: 204.6 kB / 6.739 GB, free: 18.76 MB / 474.7 MB Notification: Performance of SimCode: time 1.523e-06/24.4, allocations: 0 / 6.739 GB, free: 18.76 MB / 474.7 MB Notification: Performance of Templates: time 0.1574/24.56, allocations: 87.9 MB / 6.825 GB, free: 10.77 MB / 490.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.HeatingSystem.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.HeatingSystem.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Fluid.Examples.HeatingSystem.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Fluid.Examples.HeatingSystem.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.HeatingSystem.sim & ./Modelica_3.2.3_cpp_Modelica.Fluid.Examples.HeatingSystem --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.HeatingSystem.pipe 2>&1)