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.001545/0.001545, allocations: 114.5 kB / 17.73 MB, free: 5.328 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.001316/0.001316, allocations: 187 kB / 18.66 MB, free: 4.406 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.601/1.601, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001499/0.001499, allocations: 51.92 kB / 328.5 MB, free: 3.312 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1242/0.1257, allocations: 46.62 MB / 375.1 MB, free: 4.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.3198/0.4455, allocations: 90.12 MB / 465.3 MB, free: 5.426 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03631/0.4818, allocations: 21.3 MB / 486.6 MB, free: 68 kB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003582/0.4855, allocations: 87.48 kB / 486.6 MB, free: 15.98 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003804/0.4893, allocations: 0.9395 MB / 487.6 MB, free: 15.04 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01306/0.5024, allocations: 3.721 MB / 491.3 MB, free: 11.3 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01753/0.52, allocations: 5.618 MB / 496.9 MB, free: 5.668 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01251/0.5325, allocations: 7.042 MB / 0.4921 GB, free: 14.61 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00498/0.5376, allocations: 1.837 MB / 0.4939 GB, free: 12.75 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.4678/1.005, allocations: 74.92 MB / 0.5671 GB, free: 55.54 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.06464/1.07, allocations: 31.91 MB / 0.5983 GB, free: 45.82 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001219/1.071, allocations: 249 kB / 0.5985 GB, free: 45.82 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01348/1.085, allocations: 6.09 MB / 0.6045 GB, free: 44.31 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002268/1.087, allocations: 1.09 MB / 0.6055 GB, free: 43.96 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003712/1.091, allocations: 1.499 MB / 0.607 GB, free: 43.35 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01079/1.102, allocations: 5.518 MB / 0.6124 GB, free: 39.31 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.77e-06/1.102, allocations: 0 / 0.6124 GB, free: 39.31 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.004e-06/1.102, allocations: 0 / 0.6124 GB, free: 39.31 MB / 478.1 MB Notification: Performance of Transformations before backend: time 6.995e-05/1.102, allocations: 0 / 0.6124 GB, free: 39.31 MB / 478.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.008306/1.11, allocations: 3.496 MB / 0.6158 GB, free: 36.23 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.421e-05/1.11, allocations: 12.03 kB / 0.6158 GB, free: 36.22 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008841/1.111, allocations: 307.9 kB / 0.6161 GB, free: 35.92 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002787/1.114, allocations: 1.676 MB / 0.6177 GB, free: 34.58 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001852/1.114, allocations: 219.8 kB / 0.6179 GB, free: 34.42 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003412/1.114, allocations: 204.4 kB / 0.6181 GB, free: 34.29 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00482/1.119, allocations: 3.292 MB / 0.6213 GB, free: 31.87 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.89e-05/1.119, allocations: 7.188 kB / 0.6214 GB, free: 31.86 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002059/1.119, allocations: 88.98 kB / 0.6214 GB, free: 31.84 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002318/1.12, allocations: 252.2 kB / 0.6217 GB, free: 31.62 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004452/1.124, allocations: 3.107 MB / 0.6247 GB, free: 29.56 MB / 478.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.01609/1.14, allocations: 13.78 MB / 0.6382 GB, free: 17.46 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003536/1.144, allocations: 2.219 MB / 0.6403 GB, free: 15.68 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001728/1.146, allocations: 1.372 MB / 0.6417 GB, free: 14.31 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006856/1.152, allocations: 5.857 MB / 0.6474 GB, free: 7.98 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.49e-05/1.153, allocations: 52.56 kB / 0.6474 GB, free: 7.922 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006884/1.153, allocations: 173.1 kB / 0.6476 GB, free: 7.754 MB / 478.1 MB Notification: Performance of pre-optimization done (n=171): time 4.889e-06/1.153, allocations: 3.938 kB / 0.6476 GB, free: 7.75 MB / 478.1 MB Notification: Performance of matching and sorting (n=197): time 0.01948/1.173, allocations: 9.152 MB / 0.6566 GB, free: 14.53 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.317e-05/1.173, allocations: 69.41 kB / 0.6566 GB, free: 14.45 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002743/1.176, allocations: 1.841 MB / 0.6584 GB, free: 12.57 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003062/1.176, allocations: 61.7 kB / 0.6585 GB, free: 12.5 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007682/1.177, allocations: 1.062 MB / 0.6595 GB, free: 11.43 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006383/1.177, allocations: 0.6807 MB / 0.6602 GB, free: 10.76 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007113/1.178, allocations: 462.5 kB / 0.6606 GB, free: 10.3 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001094/1.178, allocations: 305.1 kB / 0.6609 GB, free: 10 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001945/1.18, allocations: 1.234 MB / 0.6621 GB, free: 8.758 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002628/1.183, allocations: 1.806 MB / 0.6639 GB, free: 6.711 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005044/1.188, allocations: 3.156 MB / 0.667 GB, free: 3.391 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-05/1.188, allocations: 8 kB / 0.667 GB, free: 3.383 MB / 494.1 MB Notification: Performance of matching and sorting (n=299) (initialization): time 0.007408/1.195, allocations: 4.285 MB / 0.6712 GB, free: 15.19 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.987e-05/1.195, allocations: 12 kB / 0.6712 GB, free: 15.18 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.892e-05/1.195, allocations: 20 kB / 0.6712 GB, free: 15.16 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01388/1.209, allocations: 3.639 MB / 0.6747 GB, free: 11.52 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001413/1.211, allocations: 333.4 kB / 0.6751 GB, free: 11.22 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008524/1.219, allocations: 3.952 MB / 0.6789 GB, free: 7.281 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002537/1.222, allocations: 92.09 kB / 0.679 GB, free: 7.191 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004377/1.222, allocations: 116 kB / 0.6791 GB, free: 7.078 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.003688/1.226, allocations: 1.672 MB / 0.6807 GB, free: 5.398 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002807/1.229, allocations: 1.758 MB / 0.6825 GB, free: 3.398 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004966/1.234, allocations: 3.043 MB / 0.6854 GB, free: 184 kB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.37e-05/1.234, allocations: 4 kB / 0.6854 GB, free: 180 kB / 0.4981 GB Notification: Performance of matching and sorting (n=299) (initialization_lambda0): time 0.007376/1.241, allocations: 4.028 MB / 0.6894 GB, free: 12.24 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.756e-05/1.241, allocations: 16 kB / 0.6894 GB, free: 12.23 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.835e-05/1.241, allocations: 16 kB / 0.6894 GB, free: 12.21 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01036/1.252, allocations: 2.753 MB / 0.6921 GB, free: 9.469 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001748/1.253, allocations: 373.5 kB / 0.6924 GB, free: 9.129 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005996/1.259, allocations: 3.466 MB / 0.6958 GB, free: 5.66 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001952/1.261, allocations: 97.44 kB / 0.6959 GB, free: 5.566 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002907/1.262, allocations: 116 kB / 0.696 GB, free: 5.453 MB / 0.5137 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.0006661/1.262, allocations: 313 kB / 0.6963 GB, free: 5.164 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006642/1.263, allocations: 229.3 kB / 0.6965 GB, free: 4.938 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007981/1.271, allocations: 3.949 MB / 0.7004 GB, free: 0.9922 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-05/1.271, allocations: 20 kB / 0.7004 GB, free: 0.9727 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.85e-05/1.271, allocations: 4 kB / 0.7004 GB, free: 0.9688 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00599/1.277, allocations: 3.374 MB / 0.7037 GB, free: 13.52 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01159/1.289, allocations: 6.298 MB / 0.7099 GB, free: 7.195 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.035e-05/1.289, allocations: 0 / 0.7099 GB, free: 7.195 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001488/1.29, allocations: 320.5 kB / 0.7102 GB, free: 6.898 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004085/1.294, allocations: 1.156 MB / 0.7113 GB, free: 5.723 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003044/1.295, allocations: 75.89 kB / 0.7114 GB, free: 5.648 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01028/1.305, allocations: 11.06 MB / 0.7222 GB, free: 9.871 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.719e-06/1.305, allocations: 3.984 kB / 0.7222 GB, free: 9.867 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009715/1.315, allocations: 5.182 MB / 0.7272 GB, free: 4.664 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0018/1.316, allocations: 0.5955 MB / 0.7278 GB, free: 4.047 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006362/1.317, allocations: 60.3 kB / 0.7279 GB, free: 3.988 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001636/1.319, allocations: 67.95 kB / 0.7279 GB, free: 3.922 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004278/1.319, allocations: 169.7 kB / 0.7281 GB, free: 3.754 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000231/1.319, allocations: 79.95 kB / 0.7282 GB, free: 3.676 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.002251/1.322, allocations: 1.268 MB / 0.7294 GB, free: 2.387 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.6e-07/1.322, allocations: 0 / 0.7294 GB, free: 2.387 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.006691/1.328, allocations: 1.722 MB / 0.7311 GB, free: 0.6641 MB / 0.545 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.003196/1.332, allocations: 1.007 MB / 0.7321 GB, free: 15.73 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01214/1.344, allocations: 5.121 MB / 0.7371 GB, free: 10.71 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 8.216e-06/1.344, allocations: 0 / 0.7371 GB, free: 10.71 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.004621/1.348, allocations: 2.249 MB / 0.7393 GB, free: 8.441 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006732/1.355, allocations: 1.043 MB / 0.7403 GB, free: 7.402 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01134/1.367, allocations: 5.646 MB / 0.7458 GB, free: 1.746 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002016/1.369, allocations: 1.871 MB / 0.7476 GB, free: 15.84 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.003855/1.373, allocations: 0.9519 MB / 0.7486 GB, free: 14.88 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009959/1.374, allocations: 191.4 kB / 0.7488 GB, free: 14.7 MB / 0.5762 GB Notification: Performance of SimCode: time 1.243e-06/1.374, allocations: 4 kB / 0.7488 GB, free: 14.69 MB / 0.5762 GB Notification: Performance of Templates: time 0.3683/1.742, allocations: 77.36 MB / 0.8243 GB, free: 223.9 MB / 0.5762 GB make -j1 -f Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem.makefile (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)