Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.conf.json 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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) 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_4.0.0_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_4.0.0_Modelica.Fluid.Examples.HeatingSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001255/0.001255, allocations: 178.6 kB / 17.04 MB, free: 5.109 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.161/1.161, allocations: 223.3 MB / 241 MB, free: 10.07 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007383/0.0007382, allocations: 96.67 kB / 292.2 MB, free: 10.67 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002336/0.0002337, allocations: 8 kB / 351.8 MB, free: 15.08 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1855/0.1858, allocations: 50.41 MB / 402.2 MB, free: 32.53 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.06834/0.2541, allocations: 86.5 MB / 488.7 MB, free: 9.82 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.02838/0.2826, allocations: 20.57 MB / 0.4973 GB, free: 5.207 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002554/0.2851, allocations: 107.1 kB / 0.4974 GB, free: 5.102 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002557/0.2877, allocations: 0.7725 MB / 0.4982 GB, free: 4.324 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008234/0.296, allocations: 3.433 MB / 0.5015 GB, free: 0.875 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.1854/0.4814, allocations: 4.459 MB / 0.5059 GB, free: 8.117 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.008576/0.49, allocations: 8.704 MB / 0.5144 GB, free: 8.113 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002648/0.4927, allocations: 1.513 MB / 0.5159 GB, free: 7.98 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1466/0.6393, allocations: 125.9 MB / 0.6388 GB, free: 4.812 MB / 474.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2466/0.886, allocations: 55.02 MB / 0.6925 GB, free: 134.8 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 0.0006603/0.8867, allocations: 122.6 kB / 0.6926 GB, free: 134.8 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0109/0.8976, allocations: 7.96 MB / 0.7004 GB, free: 134.7 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 0.001062/0.8987, allocations: 0.9596 MB / 0.7014 GB, free: 134.7 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 0.0008739/0.8996, allocations: 0.5286 MB / 0.7019 GB, free: 134.7 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.003977/0.9036, allocations: 3.85 MB / 0.7056 GB, free: 134.1 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 4.057e-06/0.9036, allocations: 0 / 0.7056 GB, free: 134.1 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.275e-06/0.9036, allocations: 0 / 0.7056 GB, free: 134.1 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 3.931e-05/0.9037, allocations: 2.625 kB / 0.7056 GB, free: 134.1 MB / 0.4948 GB 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.006053/0.9097, allocations: 3.026 MB / 0.7086 GB, free: 131.6 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.855e-05/0.9098, allocations: 8.031 kB / 0.7086 GB, free: 131.6 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007338/0.9105, allocations: 304.6 kB / 0.7089 GB, free: 131.3 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001972/0.9125, allocations: 1.525 MB / 0.7104 GB, free: 130.1 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001412/0.9126, allocations: 215.1 kB / 0.7106 GB, free: 130 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002619/0.9129, allocations: 210.9 kB / 0.7108 GB, free: 129.8 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00395/0.9169, allocations: 3.28 MB / 0.714 GB, free: 127.4 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.138e-05/0.9169, allocations: 6.719 kB / 0.714 GB, free: 127.4 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002018/0.9171, allocations: 79.08 kB / 0.7141 GB, free: 127.4 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002311/0.9174, allocations: 252.8 kB / 0.7143 GB, free: 127.2 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003882/0.9213, allocations: 3.107 MB / 0.7173 GB, free: 125.1 MB / 0.4948 GB 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.01352/0.9348, allocations: 13.8 MB / 0.7308 GB, free: 113 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003114/0.9379, allocations: 2.22 MB / 0.733 GB, free: 111.6 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001612/0.9395, allocations: 1.352 MB / 0.7343 GB, free: 110.7 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006183/0.9457, allocations: 5.87 MB / 0.74 GB, free: 105.5 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.246e-05/0.9458, allocations: 56.75 kB / 0.7401 GB, free: 105.5 MB / 0.4948 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006288/0.9464, allocations: 178.9 kB / 0.7403 GB, free: 105.3 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=171): time 2.925e-06/0.9464, allocations: 0 / 0.7403 GB, free: 105.3 MB / 0.4948 GB Notification: Performance of matching and sorting (n=197): time 0.01822/0.9647, allocations: 9.291 MB / 0.7493 GB, free: 98.32 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.531e-05/0.9647, allocations: 73.36 kB / 0.7494 GB, free: 98.23 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001831/0.9666, allocations: 1.833 MB / 0.7512 GB, free: 96.82 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0001393/0.9667, allocations: 63.02 kB / 0.7513 GB, free: 96.78 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004835/0.9672, allocations: 1.064 MB / 0.7523 GB, free: 96.12 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003581/0.9676, allocations: 0.6714 MB / 0.753 GB, free: 95.54 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001268/0.9677, allocations: 48.5 kB / 0.753 GB, free: 95.54 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 9.225e-05/0.9678, allocations: 400.6 kB / 0.7534 GB, free: 95.18 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001503/0.9693, allocations: 1.19 MB / 0.7545 GB, free: 94.39 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001715/0.971, allocations: 1.781 MB / 0.7563 GB, free: 92.83 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001756/0.9728, allocations: 1.449 MB / 0.7577 GB, free: 91.93 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.883e-06/0.9728, allocations: 4 kB / 0.7577 GB, free: 91.92 MB / 0.4948 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.00539/0.9782, allocations: 4.214 MB / 0.7618 GB, free: 89.1 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002035/0.9784, allocations: 0.6071 MB / 0.7624 GB, free: 88.32 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.936e-05/0.9784, allocations: 20 kB / 0.7624 GB, free: 88.3 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01193/0.9904, allocations: 3.668 MB / 0.766 GB, free: 85.05 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001099/0.9915, allocations: 329.5 kB / 0.7663 GB, free: 84.77 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004959/0.9965, allocations: 3.942 MB / 0.7702 GB, free: 81.97 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002042/0.9985, allocations: 187.1 kB / 0.7704 GB, free: 81.82 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001919/0.9987, allocations: 118.2 kB / 0.7705 GB, free: 81.73 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 9.307e-06/0.9988, allocations: 6.5 kB / 0.7705 GB, free: 81.72 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004885/1.004, allocations: 3.793 MB / 0.7742 GB, free: 79.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.174e-05/1.004, allocations: 20 kB / 0.7742 GB, free: 79.28 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008349/1.012, allocations: 2.839 MB / 0.777 GB, free: 76.81 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001326/1.013, allocations: 375.4 kB / 0.7773 GB, free: 76.48 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004026/1.017, allocations: 3.46 MB / 0.7807 GB, free: 73.99 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001897/1.019, allocations: 191.5 kB / 0.7809 GB, free: 73.84 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000182/1.02, allocations: 108.5 kB / 0.781 GB, free: 73.75 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 78 * 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 (175): * Single equations (assignments): 174 * 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.001066/1.021, allocations: 0.7009 MB / 0.7817 GB, free: 73.27 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002848/1.021, allocations: 229.3 kB / 0.7819 GB, free: 73.05 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005994/1.027, allocations: 3.967 MB / 0.7858 GB, free: 70.32 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.844e-05/1.027, allocations: 24 kB / 0.7858 GB, free: 70.29 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.638e-06/1.027, allocations: 4 kB / 0.7858 GB, free: 70.29 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004451/1.031, allocations: 3.378 MB / 0.7891 GB, free: 67.82 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008218/1.04, allocations: 6.305 MB / 0.7953 GB, free: 61.94 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.343e-06/1.04, allocations: 0 / 0.7953 GB, free: 61.94 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001227/1.041, allocations: 314.8 kB / 0.7956 GB, free: 61.64 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003822/1.045, allocations: 1.237 MB / 0.7968 GB, free: 60.39 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001596/1.045, allocations: 75.94 kB / 0.7968 GB, free: 60.32 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006433/1.051, allocations: 10.44 MB / 0.807 GB, free: 49.21 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.504e-06/1.051, allocations: 0 / 0.807 GB, free: 49.21 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006772/1.058, allocations: 5.194 MB / 0.8121 GB, free: 43.99 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001084/1.059, allocations: 0.5993 MB / 0.8127 GB, free: 43.37 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004541/1.06, allocations: 59.94 kB / 0.8127 GB, free: 43.31 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001574/1.061, allocations: 147.6 kB / 0.8129 GB, free: 43.17 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003058/1.062, allocations: 178.8 kB / 0.8131 GB, free: 42.99 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001693/1.062, allocations: 71.97 kB / 0.8131 GB, free: 42.92 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.001518/1.063, allocations: 1.245 MB / 0.8143 GB, free: 41.66 MB / 0.4948 GB Notification: Performance of sort global known variables: time 2.31e-07/1.063, allocations: 0 / 0.8143 GB, free: 41.66 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.00406/1.067, allocations: 1.741 MB / 0.816 GB, free: 39.91 MB / 0.4948 GB 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 (182): * Single equations (assignments): 168 * 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%) 2,(1,100.0%) 6} * Non-linear torn systems: 3 {1 9,2 8,6 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.002062/1.069, allocations: 0.9692 MB / 0.817 GB, free: 39.02 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.008247/1.078, allocations: 4.968 MB / 0.8218 GB, free: 34.16 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 4.749e-06/1.078, allocations: 0 / 0.8218 GB, free: 34.16 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.003222/1.081, allocations: 2.245 MB / 0.824 GB, free: 31.89 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004236/1.085, allocations: 0.9886 MB / 0.825 GB, free: 30.91 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008101/1.093, allocations: 6.684 MB / 0.8315 GB, free: 24.25 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001162/1.095, allocations: 1.852 MB / 0.8333 GB, free: 22.36 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006323/1.095, allocations: 203.4 kB / 0.8335 GB, free: 22.16 MB / 0.4948 GB Notification: Performance of SimCode: time 6.51e-07/1.095, allocations: 0 / 0.8335 GB, free: 22.16 MB / 0.4948 GB Notification: Performance of Templates: time 0.2208/1.316, allocations: 88.44 MB / 0.9199 GB, free: 158.5 MB / 0.4948 GB make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.makefile (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.pipe 2>&1)