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.001046/0.001046, allocations: 180.5 kB / 17.41 MB, free: 4.406 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.283/1.283, allocations: 205.4 MB / 223.6 MB, free: 9.031 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.0007725/0.0007726, allocations: 92.98 kB / 271.9 MB, free: 8.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002872/0.0002872, allocations: 8 kB / 328.1 MB, free: 15.95 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2806/0.2809, allocations: 47.57 MB / 375.7 MB, free: 45.45 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.186/6.467, allocations: 3.155 GB / 3.522 GB, free: 41.15 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002684/6.467, allocations: 87.89 kB / 3.522 GB, free: 41.06 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.448/13.91, allocations: 2.311 GB / 5.833 GB, free: 47.78 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.074e-06/13.91, allocations: 2.625 kB / 5.833 GB, free: 47.78 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0002911/13.92, allocations: 66.03 kB / 5.833 GB, free: 47.77 MB / 474.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.01418/13.93, allocations: 3.88 MB / 5.837 GB, free: 45.81 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.267e-05/13.93, allocations: 7.219 kB / 5.837 GB, free: 45.81 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002056/13.93, allocations: 313 kB / 5.837 GB, free: 45.67 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006424/13.94, allocations: 2.168 MB / 5.839 GB, free: 45.14 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002597/13.94, allocations: 220.5 kB / 5.839 GB, free: 45.07 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001065/13.94, allocations: 198.8 kB / 5.84 GB, free: 45.07 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007906/13.95, allocations: 3.369 MB / 5.843 GB, free: 44.59 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001118/13.95, allocations: 15.41 kB / 5.843 GB, free: 44.58 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006092/13.95, allocations: 84.23 kB / 5.843 GB, free: 44.58 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002291/13.95, allocations: 203 kB / 5.843 GB, free: 44.58 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00539/13.95, allocations: 3.101 MB / 5.846 GB, free: 44.56 MB / 474.7 MB Warning: The model contains alias variables with redundant start and/or conflicting 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.01664/13.97, allocations: 12.29 MB / 5.858 GB, free: 39.57 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00332/13.97, allocations: 2.255 MB / 5.86 GB, free: 39.41 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001918/13.98, allocations: 1.371 MB / 5.862 GB, free: 39.4 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008241/13.98, allocations: 5.816 MB / 5.868 GB, free: 36.57 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.055e-05/13.98, allocations: 57.19 kB / 5.868 GB, free: 36.52 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009961/13.98, allocations: 185.4 kB / 5.868 GB, free: 36.43 MB / 474.7 MB Notification: Performance of pre-optimization done (n=172): time 4.208e-06/13.98, allocations: 3.688 kB / 5.868 GB, free: 36.43 MB / 474.7 MB Notification: Performance of matching and sorting (n=198): time 0.02174/14.01, allocations: 9.14 MB / 5.877 GB, free: 35.24 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.124e-05/14.01, allocations: 128.8 kB / 5.877 GB, free: 35.11 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003383/14.01, allocations: 1.873 MB / 5.879 GB, free: 34.88 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004752/14.01, allocations: 62.61 kB / 5.879 GB, free: 34.84 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007508/14.01, allocations: 1.043 MB / 5.88 GB, free: 34.43 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008198/14.01, allocations: 0.6805 MB / 5.88 GB, free: 34 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003221/14.01, allocations: 50.09 kB / 5.88 GB, free: 34 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001686/14.01, allocations: 394 kB / 5.881 GB, free: 33.69 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002205/14.02, allocations: 1.221 MB / 5.882 GB, free: 33.56 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002382/14.02, allocations: 1.748 MB / 5.884 GB, free: 32.53 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004399/14.02, allocations: 3.037 MB / 5.887 GB, free: 30.98 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.102e-05/14.02, allocations: 6.969 kB / 5.887 GB, free: 30.98 MB / 474.7 MB Notification: Performance of matching and sorting (n=293) (initialization): time 0.007673/14.03, allocations: 4.225 MB / 5.891 GB, free: 29.46 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003235/14.03, allocations: 0.5104 MB / 5.891 GB, free: 28.81 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.147e-05/14.03, allocations: 14.78 kB / 5.891 GB, free: 28.81 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01367/14.04, allocations: 3.68 MB / 5.895 GB, free: 28.36 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001417/14.05, allocations: 318.8 kB / 5.895 GB, free: 28.35 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007399/14.05, allocations: 3.98 MB / 5.899 GB, free: 26.6 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002707/14.06, allocations: 196.9 kB / 5.899 GB, free: 26.55 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004375/14.06, allocations: 113.6 kB / 5.899 GB, free: 26.53 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.33e-05/14.06, allocations: 4.406 kB / 5.899 GB, free: 26.53 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006522/14.06, allocations: 3.779 MB / 5.903 GB, free: 24.77 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.403e-05/14.06, allocations: 12 kB / 5.903 GB, free: 24.76 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00932/14.07, allocations: 2.912 MB / 5.906 GB, free: 22.54 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001622/14.07, allocations: 364.9 kB / 5.906 GB, free: 22.24 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005765/14.08, allocations: 3.454 MB / 5.91 GB, free: 19.25 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002604/14.08, allocations: 195.8 kB / 5.91 GB, free: 19.11 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005638/14.08, allocations: 111 kB / 5.91 GB, free: 19.01 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 () * Number of clocked 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.002009/14.08, allocations: 0.6952 MB / 5.911 GB, free: 18.38 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000732/14.09, allocations: 229.1 kB / 5.911 GB, free: 18.15 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008364/14.09, allocations: 3.972 MB / 5.915 GB, free: 14.89 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.433e-05/14.09, allocations: 31.36 kB / 5.915 GB, free: 14.87 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.638e-05/14.09, allocations: 4 kB / 5.915 GB, free: 14.86 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005514/14.1, allocations: 3.384 MB / 5.918 GB, free: 11.87 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01182/14.11, allocations: 6.369 MB / 5.924 GB, free: 6.742 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.009e-05/14.11, allocations: 0 / 5.924 GB, free: 6.742 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001356/14.11, allocations: 327.2 kB / 5.925 GB, free: 6.469 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00417/14.12, allocations: 1.243 MB / 5.926 GB, free: 5.566 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003619/14.12, allocations: 75.05 kB / 5.926 GB, free: 5.508 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008854/14.13, allocations: 10.46 MB / 5.936 GB, free: 10.95 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.415e-06/14.13, allocations: 3.938 kB / 5.936 GB, free: 10.95 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01176/14.14, allocations: 5.232 MB / 5.941 GB, free: 6.43 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00214/14.14, allocations: 0.6096 MB / 5.942 GB, free: 5.887 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009912/14.14, allocations: 58.66 kB / 5.942 GB, free: 5.832 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002307/14.14, allocations: 154.3 kB / 5.942 GB, free: 5.723 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005198/14.14, allocations: 177.7 kB / 5.942 GB, free: 5.613 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000337/14.14, allocations: 81.03 kB / 5.942 GB, free: 5.547 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002848/14.15, allocations: 1.28 MB / 5.943 GB, free: 4.461 MB / 490.7 MB Notification: Performance of sort global known variables: time 2.21e-07/14.15, allocations: 0 / 5.943 GB, free: 4.461 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.008932/14.16, allocations: 1.891 MB / 5.945 GB, free: 2.602 MB / 490.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 () * Number of clocked 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.004504/14.16, allocations: 1.297 MB / 5.947 GB, free: 1.574 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.2606/14.42, allocations: 5.247 MB / 5.952 GB, free: 58.13 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.115e-05/14.42, allocations: 0 / 5.952 GB, free: 58.13 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004054/14.43, allocations: 2.25 MB / 5.954 GB, free: 57.57 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005281/14.43, allocations: 0.9686 MB / 5.955 GB, free: 57.55 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01026/14.44, allocations: 6.687 MB / 5.961 GB, free: 55.29 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001291/14.44, allocations: 1.848 MB / 5.963 GB, free: 54.54 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001053/14.44, allocations: 206.9 kB / 5.963 GB, free: 54.53 MB / 490.7 MB Notification: Performance of SimCode: time 1.012e-06/14.44, allocations: 0 / 5.963 GB, free: 54.53 MB / 490.7 MB Notification: Performance of Templates: time 0.1202/14.56, allocations: 89.91 MB / 6.051 GB, free: 48.46 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)