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.00209/0.00209, allocations: 181.9 kB / 8.367 MB, free: 0.7109 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.078/2.078, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001168/0.001168, allocations: 94.55 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.15e-05/2.156e-05, allocations: 4 kB / 314.8 MB, free: 9.168 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3875/0.3875, allocations: 47.56 MB / 362.3 MB, free: 45.85 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.399/9.787, allocations: 3.153 GB / 3.507 GB, free: 54.19 MB / 427.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003448/9.787, allocations: 79.72 kB / 3.507 GB, free: 54.16 MB / 427.1 MB Notification: Performance of FrontEnd - DAE generated: time 14.17/23.95, allocations: 3.067 GB / 6.574 GB, free: 32.43 MB / 459.1 MB Notification: Performance of FrontEnd: time 1.904e-06/23.95, allocations: 0 / 6.574 GB, free: 32.43 MB / 459.1 MB Notification: Performance of Transformations before backend: time 0.0003341/23.96, allocations: 71.12 kB / 6.574 GB, free: 32.43 MB / 459.1 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.01759/23.97, allocations: 3.587 MB / 6.577 GB, free: 30.67 MB / 459.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.858e-05/23.97, allocations: 10.19 kB / 6.577 GB, free: 30.67 MB / 459.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002418/23.98, allocations: 313.6 kB / 6.578 GB, free: 30.53 MB / 459.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00868/23.98, allocations: 2.011 MB / 6.58 GB, free: 30.07 MB / 459.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002585/23.98, allocations: 152.5 kB / 6.58 GB, free: 30 MB / 459.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009523/23.99, allocations: 118 kB / 6.58 GB, free: 30 MB / 459.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008882/23.99, allocations: 2.854 MB / 6.583 GB, free: 29.98 MB / 459.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01051/24, allocations: 3.024 MB / 6.586 GB, free: 29.5 MB / 459.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.596e-05/24, allocations: 8.969 kB / 6.586 GB, free: 29.5 MB / 459.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000396/24.01, allocations: 4.438 kB / 6.586 GB, free: 29.5 MB / 459.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004128/24.01, allocations: 206.2 kB / 6.586 GB, free: 29.5 MB / 459.1 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.02986/24.04, allocations: 11.94 MB / 6.598 GB, free: 24.59 MB / 459.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006177/24.04, allocations: 2.164 MB / 6.6 GB, free: 24.45 MB / 459.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00329/24.05, allocations: 1.307 MB / 6.601 GB, free: 24.43 MB / 459.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01561/24.06, allocations: 5.857 MB / 6.607 GB, free: 21.62 MB / 459.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.962e-05/24.06, allocations: 60.86 kB / 6.607 GB, free: 21.58 MB / 459.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001444/24.06, allocations: 122.4 kB / 6.607 GB, free: 21.51 MB / 459.1 MB Notification: Performance of pre-optimization done (n=172): time 5.991e-06/24.06, allocations: 0 / 6.607 GB, free: 21.51 MB / 459.1 MB Notification: Performance of matching and sorting (n=198): time 0.04117/24.1, allocations: 8.569 MB / 6.615 GB, free: 20.62 MB / 459.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.97e-05/24.1, allocations: 129.5 kB / 6.615 GB, free: 20.49 MB / 459.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002621/24.11, allocations: 1.202 MB / 6.616 GB, free: 20.32 MB / 459.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006178/24.11, allocations: 25.7 kB / 6.616 GB, free: 20.29 MB / 459.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007032/24.11, allocations: 1.008 MB / 6.617 GB, free: 19.74 MB / 459.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000818/24.11, allocations: 0.6514 MB / 6.618 GB, free: 19.31 MB / 459.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002224/24.11, allocations: 0 / 6.618 GB, free: 19.31 MB / 459.1 MB Notification: Performance of setup shared object (initialization): time 0.0001545/24.11, allocations: 401.7 kB / 6.619 GB, free: 19 MB / 459.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002596/24.11, allocations: 1.155 MB / 6.62 GB, free: 18.99 MB / 459.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00305/24.11, allocations: 1.662 MB / 6.621 GB, free: 18.44 MB / 459.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02498/24.14, allocations: 3.799 MB / 6.625 GB, free: 18.42 MB / 459.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.534e-05/24.14, allocations: 3.938 kB / 6.625 GB, free: 18.42 MB / 459.1 MB Notification: Performance of matching and sorting (n=293) (initialization): time 0.03162/24.17, allocations: 6.213 MB / 6.631 GB, free: 18.28 MB / 459.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.001172/24.17, allocations: 5.659 MB / 6.637 GB, free: 12.39 MB / 459.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.957e-05/24.17, allocations: 16.28 kB / 6.637 GB, free: 12.39 MB / 459.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01513/24.19, allocations: 2.582 MB / 6.639 GB, free: 12.34 MB / 459.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002575/24.19, allocations: 324.6 kB / 6.639 GB, free: 12.34 MB / 459.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01312/24.2, allocations: 4.548 MB / 6.644 GB, free: 11.73 MB / 459.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003936/24.21, allocations: 148 kB / 6.644 GB, free: 11.72 MB / 459.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003519/24.21, allocations: 112.4 kB / 6.644 GB, free: 11.72 MB / 459.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.523e-05/24.21, allocations: 3.312 kB / 6.644 GB, free: 11.72 MB / 459.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03678/24.24, allocations: 5.727 MB / 6.65 GB, free: 11.66 MB / 459.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.081e-05/24.24, allocations: 17.16 kB / 6.65 GB, free: 11.66 MB / 459.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01556/24.26, allocations: 2.177 MB / 6.652 GB, free: 11.61 MB / 459.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003099/24.26, allocations: 371 kB / 6.652 GB, free: 11.61 MB / 459.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01051/24.27, allocations: 3.811 MB / 6.656 GB, free: 27.02 MB / 475.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005169/24.28, allocations: 147 kB / 6.656 GB, free: 27 MB / 475.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001174/24.28, allocations: 110.2 kB / 6.656 GB, free: 27 MB / 475.1 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.001616/24.28, allocations: 144.8 kB / 6.656 GB, free: 26.89 MB / 475.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001111/24.28, allocations: 204.5 kB / 6.656 GB, free: 26.79 MB / 475.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0254/24.31, allocations: 4.078 MB / 6.66 GB, free: 26.55 MB / 475.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.053e-05/24.31, allocations: 24.53 kB / 6.66 GB, free: 26.55 MB / 475.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.787e-05/24.31, allocations: 5.812 kB / 6.66 GB, free: 26.55 MB / 475.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02017/24.33, allocations: 3.55 MB / 6.664 GB, free: 26.08 MB / 475.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02534/24.35, allocations: 6.243 MB / 6.67 GB, free: 25.64 MB / 475.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.654e-05/24.35, allocations: 0 / 6.67 GB, free: 25.64 MB / 475.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002966/24.36, allocations: 321.8 kB / 6.67 GB, free: 25.64 MB / 475.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005134/24.36, allocations: 1.014 MB / 6.671 GB, free: 25.57 MB / 475.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005653/24.36, allocations: 48.22 kB / 6.671 GB, free: 25.57 MB / 475.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01494/24.38, allocations: 10.35 MB / 6.682 GB, free: 17.95 MB / 475.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.162e-06/24.38, allocations: 3.594 kB / 6.682 GB, free: 17.95 MB / 475.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01725/24.4, allocations: 5.285 MB / 6.687 GB, free: 17.03 MB / 475.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002536/24.4, allocations: 0.591 MB / 6.687 GB, free: 16.69 MB / 475.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008659/24.4, allocations: 23.53 kB / 6.687 GB, free: 16.68 MB / 475.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003207/24.4, allocations: 115.8 kB / 6.687 GB, free: 16.67 MB / 475.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005767/24.4, allocations: 167.4 kB / 6.688 GB, free: 16.64 MB / 475.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003118/24.4, allocations: 85.14 kB / 6.688 GB, free: 16.62 MB / 475.1 MB Notification: Performance of sorting global known variables: time 0.001863/24.41, allocations: 0.883 MB / 6.688 GB, free: 16.25 MB / 475.1 MB Notification: Performance of sort global known variables: time 6.71e-07/24.41, allocations: 0 / 6.688 GB, free: 16.25 MB / 475.1 MB Notification: Performance of remove unused functions: time 0.01068/24.42, allocations: 1.804 MB / 6.69 GB, free: 15.95 MB / 475.1 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,5 17} Notification: Performance of Backend phase and start with SimCode phase: time 0.005813/24.42, allocations: 1.34 MB / 6.692 GB, free: 15.56 MB / 475.1 MB Notification: Performance of simCode: created initialization part: time 0.01656/24.44, allocations: 4.687 MB / 6.696 GB, free: 14.09 MB / 475.1 MB Notification: Performance of simCode: created event and clocks part: time 8.446e-06/24.44, allocations: 0 / 6.696 GB, free: 14.09 MB / 475.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006598/24.45, allocations: 2.127 MB / 6.698 GB, free: 13.06 MB / 475.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007854/24.45, allocations: 0.8138 MB / 6.699 GB, free: 12.9 MB / 475.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01405/24.47, allocations: 4.578 MB / 6.703 GB, free: 11.34 MB / 475.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002322/24.47, allocations: 1.901 MB / 6.705 GB, free: 10.5 MB / 475.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001395/24.47, allocations: 194.9 kB / 6.706 GB, free: 10.48 MB / 475.1 MB Notification: Performance of SimCode: time 1.142e-06/24.47, allocations: 0 / 6.706 GB, free: 10.48 MB / 475.1 MB Notification: Performance of Templates: time 0.5596/25.03, allocations: 85.65 MB / 6.789 GB, free: 37.93 MB / 475.1 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)