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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001175/0.001175, allocations: 92.8 kB / 16.93 MB, free: 5.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001193/0.001193, allocations: 178.9 kB / 17.82 MB, free: 5.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.678/1.678, allocations: 205.4 MB / 224 MB, free: 13.16 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005057/0.0005059, allocations: 12 kB / 280.7 MB, free: 3.766 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1144/0.1149, allocations: 47.58 MB / 328.3 MB, free: 4.113 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.2593/0.3742, allocations: 67.56 MB / 395.9 MB, free: 10.66 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02958/0.4038, allocations: 20.65 MB / 416.5 MB, free: 8.59 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004096/0.408, allocations: 106.8 kB / 416.6 MB, free: 8.531 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003274/0.4113, allocations: 0.9152 MB / 417.5 MB, free: 8.117 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008702/0.42, allocations: 2.707 MB / 420.3 MB, free: 6.754 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01383/0.4339, allocations: 5.414 MB / 425.7 MB, free: 3.195 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006854/0.4407, allocations: 3.878 MB / 429.5 MB, free: 0.6914 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002538/0.4433, allocations: 1.527 MB / 431.1 MB, free: 15.7 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.4295/0.8728, allocations: 123.8 MB / 0.5419 GB, free: 106.5 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.07152/0.9444, allocations: 53.31 MB / 0.5939 GB, free: 62.32 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001126/0.9456, allocations: 124 kB / 0.5941 GB, free: 62.2 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01661/0.9622, allocations: 7.995 MB / 0.6019 GB, free: 55.2 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002047/0.9643, allocations: 0.8742 MB / 0.6027 GB, free: 54.61 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001291/0.9656, allocations: 0.5288 MB / 0.6032 GB, free: 54.3 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00657/0.9722, allocations: 3.824 MB / 0.607 GB, free: 51.01 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.755e-06/0.9722, allocations: 4 kB / 0.607 GB, free: 51 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.9722, allocations: 0 / 0.607 GB, free: 51 MB / 430.1 MB Notification: Performance of Transformations before backend: time 5.251e-05/0.9723, allocations: 0 / 0.607 GB, free: 51 MB / 430.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.006682/0.979, allocations: 3.008 MB / 0.6099 GB, free: 48.18 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.535e-05/0.979, allocations: 12.03 kB / 0.6099 GB, free: 48.17 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009877/0.98, allocations: 304.6 kB / 0.6102 GB, free: 47.87 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002585/0.9826, allocations: 1.518 MB / 0.6117 GB, free: 46.69 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001463/0.9828, allocations: 219.1 kB / 0.6119 GB, free: 46.54 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003013/0.9831, allocations: 203.1 kB / 0.6121 GB, free: 46.4 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004266/0.9874, allocations: 3.267 MB / 0.6153 GB, free: 44.01 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.852e-05/0.9874, allocations: 12.5 kB / 0.6153 GB, free: 44 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002172/0.9876, allocations: 80.91 kB / 0.6154 GB, free: 43.98 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002612/0.9879, allocations: 252.1 kB / 0.6156 GB, free: 43.77 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004263/0.9922, allocations: 3.101 MB / 0.6186 GB, free: 41.7 MB / 430.1 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.01584/1.008, allocations: 13.93 MB / 0.6322 GB, free: 29.54 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003353/1.011, allocations: 2.225 MB / 0.6344 GB, free: 28.11 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008656/1.02, allocations: 5.928 MB / 0.6402 GB, free: 22.87 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.13e-05/1.02, allocations: 58.14 kB / 0.6403 GB, free: 22.82 MB / 430.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007781/1.021, allocations: 189.8 kB / 0.6404 GB, free: 22.66 MB / 430.1 MB Notification: Performance of pre-optimization done (n=173): time 3.567e-06/1.021, allocations: 0 / 0.6404 GB, free: 22.66 MB / 430.1 MB Notification: Performance of matching and sorting (n=199): time 0.02039/1.041, allocations: 9.302 MB / 0.6495 GB, free: 15.67 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.891e-05/1.041, allocations: 73.41 kB / 0.6496 GB, free: 15.59 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002157/1.044, allocations: 1.82 MB / 0.6514 GB, free: 14.14 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002402/1.044, allocations: 61.7 kB / 0.6514 GB, free: 14.07 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005436/1.044, allocations: 1.054 MB / 0.6525 GB, free: 13.01 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004933/1.045, allocations: 0.6866 MB / 0.6531 GB, free: 12.33 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001338/1.045, allocations: 44 kB / 0.6532 GB, free: 12.29 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001074/1.045, allocations: 410.6 kB / 0.6536 GB, free: 11.88 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001629/1.047, allocations: 1.205 MB / 0.6547 GB, free: 10.67 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001795/1.049, allocations: 1.779 MB / 0.6565 GB, free: 8.66 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001801/1.05, allocations: 1.457 MB / 0.6579 GB, free: 7.219 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.977e-06/1.05, allocations: 4 kB / 0.6579 GB, free: 7.215 MB / 430.1 MB Notification: Performance of matching and sorting (n=300) (initialization): time 0.005868/1.056, allocations: 4.259 MB / 0.6621 GB, free: 3.043 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.002571/1.059, allocations: 6.971 MB / 0.6689 GB, free: 11.52 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.546e-05/1.059, allocations: 16 kB / 0.6689 GB, free: 11.51 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01393/1.073, allocations: 3.64 MB / 0.6724 GB, free: 7.859 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001374/1.074, allocations: 324.4 kB / 0.6728 GB, free: 7.566 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006527/1.081, allocations: 4.019 MB / 0.6767 GB, free: 3.535 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002429/1.083, allocations: 195.6 kB / 0.6769 GB, free: 3.344 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002401/1.084, allocations: 116 kB / 0.677 GB, free: 3.23 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.309e-05/1.084, allocations: 4 kB / 0.677 GB, free: 3.227 MB / 446.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006307/1.09, allocations: 3.835 MB / 0.6807 GB, free: 15.5 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.396e-05/1.09, allocations: 16 kB / 0.6807 GB, free: 15.48 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009854/1.1, allocations: 2.882 MB / 0.6836 GB, free: 12.61 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001794/1.102, allocations: 367 kB / 0.6839 GB, free: 12.27 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00576/1.107, allocations: 3.534 MB / 0.6874 GB, free: 8.738 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002511/1.11, allocations: 187.8 kB / 0.6875 GB, free: 8.555 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003027/1.11, allocations: 113.1 kB / 0.6876 GB, free: 8.445 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 77 * 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 (174): * Single equations (assignments): 173 * 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 {19 108} Notification: Performance of prepare postOptimizeDAE: time 0.001567/1.112, allocations: 0.7057 MB / 0.6883 GB, free: 7.754 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005974/1.113, allocations: 221.3 kB / 0.6885 GB, free: 7.535 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007817/1.12, allocations: 3.998 MB / 0.6925 GB, free: 3.539 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.868e-05/1.12, allocations: 20 kB / 0.6925 GB, free: 3.52 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.498e-05/1.12, allocations: 8 kB / 0.6925 GB, free: 3.512 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005745/1.126, allocations: 3.392 MB / 0.6958 GB, free: 40 kB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01268/1.139, allocations: 6.384 MB / 0.702 GB, free: 9.637 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-05/1.139, allocations: 7.938 kB / 0.702 GB, free: 9.629 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001551/1.141, allocations: 318.4 kB / 0.7023 GB, free: 9.332 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00478/1.145, allocations: 1.262 MB / 0.7036 GB, free: 8.051 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003924/1.146, allocations: 75.94 kB / 0.7036 GB, free: 7.977 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1904/1.336, allocations: 10.57 MB / 0.714 GB, free: 199 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/1.336, allocations: 0 / 0.714 GB, free: 199 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009669/1.346, allocations: 5.242 MB / 0.7191 GB, free: 198.4 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001589/1.348, allocations: 0.6331 MB / 0.7197 GB, free: 198.2 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004176/1.348, allocations: 54 kB / 0.7198 GB, free: 198.2 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001492/1.35, allocations: 150.5 kB / 0.7199 GB, free: 198.1 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000407/1.35, allocations: 167.8 kB / 0.7201 GB, free: 198.1 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002008/1.35, allocations: 83.23 kB / 0.7201 GB, free: 198.1 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001824/1.352, allocations: 1.214 MB / 0.7213 GB, free: 197.6 MB / 478.1 MB Notification: Performance of sort global known variables: time 3.61e-07/1.352, allocations: 0 / 0.7213 GB, free: 197.6 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004908/1.357, allocations: 1.737 MB / 0.723 GB, free: 197.5 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (tank.level,tank.medium.T,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%) 2,(1,100.0%) 6,(1,100.0%) 2} * Non-linear torn systems: 3 {1 9,2 8,6 17} Notification: Performance of Backend phase and start with SimCode phase: time 0.002069/1.359, allocations: 0.9791 MB / 0.724 GB, free: 197.4 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.009405/1.368, allocations: 5.033 MB / 0.7289 GB, free: 195.8 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.108e-05/1.368, allocations: 0 / 0.7289 GB, free: 195.8 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004452/1.373, allocations: 2.255 MB / 0.7311 GB, free: 194.7 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004269/1.377, allocations: 0.9291 MB / 0.732 GB, free: 194.5 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01055/1.388, allocations: 6.667 MB / 0.7385 GB, free: 190.8 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001171/1.389, allocations: 1.918 MB / 0.7404 GB, free: 189 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003067/1.392, allocations: 0.9508 MB / 0.7413 GB, free: 188.1 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005023/1.393, allocations: 195.3 kB / 0.7415 GB, free: 187.9 MB / 478.1 MB Notification: Performance of SimCode: time 1.433e-06/1.393, allocations: 0 / 0.7415 GB, free: 187.9 MB / 478.1 MB Notification: Performance of Templates: time 0.0829/1.476, allocations: 69.22 MB / 0.8091 GB, free: 118.6 MB / 478.1 MB make -j1 -f Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: