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/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 4.0.0+maint.om/package.mo", uses=false) 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) 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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001137/0.001137, allocations: 115.7 kB / 17.74 MB, free: 5.297 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.001106/0.001106, allocations: 189.6 kB / 18.67 MB, free: 4.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.35/1.35, allocations: 222.9 MB / 242.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001072/0.001072, allocations: 47.92 kB / 352 MB, free: 3.266 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2461/0.2472, allocations: 49.44 MB / 401.4 MB, free: 8.738 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.08833/0.3355, allocations: 90.11 MB / 491.5 MB, free: 14.48 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03028/0.3658, allocations: 21.32 MB / 0.5008 GB, free: 9.102 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002609/0.3685, allocations: 87.44 kB / 0.5009 GB, free: 9.016 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002949/0.3715, allocations: 0.9395 MB / 0.5018 GB, free: 8.07 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009345/0.3809, allocations: 3.721 MB / 0.5054 GB, free: 4.332 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01264/0.3936, allocations: 5.66 MB / 0.511 GB, free: 14.68 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.009084/0.4027, allocations: 7.038 MB / 0.5178 GB, free: 7.617 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003246/0.406, allocations: 1.848 MB / 0.5196 GB, free: 5.742 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.4324/0.8384, allocations: 74.95 MB / 0.5928 GB, free: 7.512 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.07037/0.9088, allocations: 31.92 MB / 0.624 GB, free: 13.91 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001319/0.9102, allocations: 252 kB / 0.6242 GB, free: 13.67 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01531/0.9255, allocations: 6.095 MB / 0.6302 GB, free: 8.895 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002202/0.9278, allocations: 1.088 MB / 0.6313 GB, free: 8.242 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003181/0.931, allocations: 1.494 MB / 0.6327 GB, free: 7.465 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01138/0.9424, allocations: 5.526 MB / 0.6381 GB, free: 3.309 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.024e-06/0.9425, allocations: 0 / 0.6381 GB, free: 3.309 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.9425, allocations: 0 / 0.6381 GB, free: 3.309 MB / 494.1 MB Notification: Performance of Transformations before backend: time 0.0001271/0.9426, allocations: 0 / 0.6381 GB, free: 3.309 MB / 494.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.01022/0.9528, allocations: 3.494 MB / 0.6415 GB, free: 204 kB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.84e-05/0.9529, allocations: 19.11 kB / 0.6415 GB, free: 188 kB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001155/0.954, allocations: 310.1 kB / 0.6418 GB, free: 15.88 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003276/0.9574, allocations: 1.667 MB / 0.6435 GB, free: 14.55 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002177/0.9576, allocations: 219.8 kB / 0.6437 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003898/0.958, allocations: 194.2 kB / 0.6439 GB, free: 14.26 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005989/0.964, allocations: 3.314 MB / 0.6471 GB, free: 10.89 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.969e-05/0.9641, allocations: 7.562 kB / 0.6471 GB, free: 10.89 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002675/0.9644, allocations: 77.12 kB / 0.6472 GB, free: 10.82 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003241/0.9647, allocations: 251.8 kB / 0.6474 GB, free: 10.58 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005675/0.9704, allocations: 3.105 MB / 0.6504 GB, free: 7.496 MB / 0.4981 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.02122/0.9916, allocations: 13.79 MB / 0.6639 GB, free: 9.012 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004561/0.9963, allocations: 2.221 MB / 0.6661 GB, free: 6.805 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002506/0.9988, allocations: 1.367 MB / 0.6674 GB, free: 5.438 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01106/1.01, allocations: 5.863 MB / 0.6731 GB, free: 15.1 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.431e-05/1.01, allocations: 52.56 kB / 0.6732 GB, free: 15.04 MB / 0.5294 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001016/1.011, allocations: 173.9 kB / 0.6734 GB, free: 14.87 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=171): time 7.664e-06/1.011, allocations: 0 / 0.6734 GB, free: 14.87 MB / 0.5294 GB Notification: Performance of matching and sorting (n=197): time 0.02591/1.037, allocations: 9.149 MB / 0.6823 GB, free: 5.652 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.13e-05/1.037, allocations: 77.39 kB / 0.6824 GB, free: 5.566 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003287/1.04, allocations: 1.841 MB / 0.6842 GB, free: 3.684 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0005133/1.041, allocations: 61.7 kB / 0.6842 GB, free: 3.617 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009057/1.042, allocations: 1.061 MB / 0.6853 GB, free: 2.551 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001023/1.043, allocations: 0.6777 MB / 0.6859 GB, free: 1.879 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001352/1.044, allocations: 460.3 kB / 0.6864 GB, free: 1.422 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001106/1.044, allocations: 305.1 kB / 0.6866 GB, free: 1.121 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002406/1.047, allocations: 1.229 MB / 0.6878 GB, free: 15.88 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002888/1.05, allocations: 1.808 MB / 0.6896 GB, free: 13.84 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005295/1.055, allocations: 3.16 MB / 0.6927 GB, free: 10.51 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.213e-05/1.055, allocations: 8 kB / 0.6927 GB, free: 10.5 MB / 0.545 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.008697/1.064, allocations: 4.29 MB / 0.6969 GB, free: 6.305 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 3.839e-05/1.064, allocations: 12.97 kB / 0.6969 GB, free: 6.293 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.023e-05/1.064, allocations: 16 kB / 0.6969 GB, free: 6.277 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01479/1.079, allocations: 3.642 MB / 0.7005 GB, free: 2.645 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00137/1.08, allocations: 331.8 kB / 0.7008 GB, free: 2.344 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006941/1.087, allocations: 3.946 MB / 0.7047 GB, free: 14.41 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002313/1.089, allocations: 99.88 kB / 0.7047 GB, free: 14.31 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003976/1.09, allocations: 112 kB / 0.7049 GB, free: 14.2 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.003509/1.093, allocations: 1.672 MB / 0.7065 GB, free: 12.52 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0028/1.096, allocations: 1.756 MB / 0.7082 GB, free: 10.52 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.005153/1.101, allocations: 3.052 MB / 0.7112 GB, free: 7.297 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.06e-05/1.101, allocations: 8 kB / 0.7112 GB, free: 7.289 MB / 0.5606 GB Notification: Performance of matching and sorting (n=299) (initialization_lambda0): time 0.008406/1.11, allocations: 4.019 MB / 0.7151 GB, free: 3.363 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 3.327e-05/1.11, allocations: 12 kB / 0.7151 GB, free: 3.352 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.165e-05/1.11, allocations: 16 kB / 0.7151 GB, free: 3.336 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009942/1.12, allocations: 2.748 MB / 0.7178 GB, free: 0.5977 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001658/1.122, allocations: 376.9 kB / 0.7182 GB, free: 260 kB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006009/1.128, allocations: 3.471 MB / 0.7216 GB, free: 12.79 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002115/1.13, allocations: 95.94 kB / 0.7217 GB, free: 12.69 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003819/1.13, allocations: 112 kB / 0.7218 GB, free: 12.58 MB / 0.5762 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.inFlow[2],tank.inFlow[1],tank.regularFlow[2],tank.regularFlow[1]) * 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(18,107)} Notification: Performance of prepare postOptimizeDAE: time 0.0007245/1.131, allocations: 316.2 kB / 0.7221 GB, free: 12.29 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007049/1.132, allocations: 233.3 kB / 0.7223 GB, free: 12.06 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008301/1.14, allocations: 3.938 MB / 0.7261 GB, free: 8.117 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.818e-05/1.14, allocations: 27.98 kB / 0.7262 GB, free: 8.09 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.273e-05/1.14, allocations: 4 kB / 0.7262 GB, free: 8.086 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00649/1.147, allocations: 3.375 MB / 0.7295 GB, free: 4.633 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01234/1.159, allocations: 6.282 MB / 0.7356 GB, free: 14.33 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.307e-05/1.159, allocations: 3.938 kB / 0.7356 GB, free: 14.33 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001484/1.16, allocations: 315.8 kB / 0.7359 GB, free: 14.04 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004225/1.165, allocations: 1.167 MB / 0.737 GB, free: 12.85 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004273/1.165, allocations: 71.95 kB / 0.7371 GB, free: 12.78 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01011/1.175, allocations: 11.07 MB / 0.7479 GB, free: 0.9961 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/1.175, allocations: 0 / 0.7479 GB, free: 0.9961 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2167/1.392, allocations: 5.183 MB / 0.753 GB, free: 274 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001595/1.394, allocations: 0.5891 MB / 0.7536 GB, free: 273.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004613/1.394, allocations: 59.47 kB / 0.7536 GB, free: 273.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001504/1.396, allocations: 78.08 kB / 0.7537 GB, free: 273.7 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003695/1.396, allocations: 166 kB / 0.7539 GB, free: 273.7 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001709/1.396, allocations: 80.28 kB / 0.7539 GB, free: 273.7 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.001522/1.398, allocations: 1.258 MB / 0.7552 GB, free: 273.2 MB / 0.5919 GB Notification: Performance of sort global known variables: time 2.31e-07/1.398, allocations: 0 / 0.7552 GB, free: 273.2 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.004386/1.402, allocations: 1.735 MB / 0.7569 GB, free: 273.1 MB / 0.5919 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 (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,9), (2,8), (5,17)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002279/1.404, allocations: 0.9973 MB / 0.7578 GB, free: 273 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.009742/1.414, allocations: 5.113 MB / 0.7628 GB, free: 271.4 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.162e-05/1.414, allocations: 0 / 0.7628 GB, free: 271.4 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0037/1.418, allocations: 2.239 MB / 0.765 GB, free: 270.3 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004493/1.423, allocations: 1.055 MB / 0.766 GB, free: 269.6 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00879/1.431, allocations: 5.731 MB / 0.7716 GB, free: 264.6 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001041/1.432, allocations: 1.846 MB / 0.7734 GB, free: 262.7 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000856/1.433, allocations: 214.5 kB / 0.7736 GB, free: 262.5 MB / 0.5919 GB Notification: Performance of SimCode: time 9.22e-07/1.433, allocations: 0 / 0.7736 GB, free: 262.5 MB / 0.5919 GB Notification: Performance of Templates: time 0.07967/1.513, allocations: 89.03 MB / 0.8606 GB, free: 173.6 MB / 0.5919 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)