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.001601/0.0016, allocations: 108.4 kB / 17.73 MB, free: 5.188 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.001897/0.001897, allocations: 188.2 kB / 18.66 MB, free: 4.258 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.582/1.582, allocations: 205.1 MB / 224.5 MB, free: 12.21 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.00152/0.00152, allocations: 55.92 kB / 328.5 MB, free: 3.301 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1266/0.1281, allocations: 46.62 MB / 375.1 MB, free: 4.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.3779/0.5061, allocations: 90.12 MB / 465.3 MB, free: 5.41 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03779/0.5439, allocations: 21.3 MB / 486.6 MB, free: 52 kB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004047/0.548, allocations: 87.55 kB / 486.6 MB, free: 15.96 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003608/0.5517, allocations: 0.9434 MB / 487.6 MB, free: 15.01 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01373/0.5655, allocations: 3.717 MB / 491.3 MB, free: 11.28 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01651/0.582, allocations: 5.618 MB / 496.9 MB, free: 5.648 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01294/0.595, allocations: 7.038 MB / 0.4921 GB, free: 14.59 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004283/0.5993, allocations: 1.842 MB / 0.4939 GB, free: 12.73 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.598/1.197, allocations: 74.85 MB / 0.567 GB, free: 55.49 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.08789/1.285, allocations: 31.91 MB / 0.5982 GB, free: 45.78 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001948/1.287, allocations: 245 kB / 0.5984 GB, free: 45.78 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01971/1.307, allocations: 6.089 MB / 0.6044 GB, free: 44.31 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003119/1.31, allocations: 1.088 MB / 0.6054 GB, free: 43.95 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005201/1.315, allocations: 1.501 MB / 0.6069 GB, free: 43.36 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01479/1.33, allocations: 5.539 MB / 0.6123 GB, free: 39.07 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.23e-05/1.33, allocations: 8 kB / 0.6123 GB, free: 39.06 MB / 478.1 MB Notification: Performance of FrontEnd: time 3.747e-06/1.33, allocations: 0 / 0.6123 GB, free: 39.06 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.0002833/1.331, allocations: 0 / 0.6123 GB, free: 39.06 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.01341/1.344, allocations: 3.586 MB / 0.6158 GB, free: 35.85 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.339e-05/1.344, allocations: 8.031 kB / 0.6158 GB, free: 35.84 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002015/1.346, allocations: 322.2 kB / 0.6161 GB, free: 35.53 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004751/1.351, allocations: 1.697 MB / 0.6178 GB, free: 34.17 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002464/1.351, allocations: 214.7 kB / 0.618 GB, free: 34.01 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008442/1.352, allocations: 208.5 kB / 0.6182 GB, free: 33.88 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005723/1.358, allocations: 3.286 MB / 0.6214 GB, free: 31.46 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.237e-05/1.358, allocations: 9.5 kB / 0.6214 GB, free: 31.45 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002368/1.358, allocations: 80.34 kB / 0.6215 GB, free: 31.43 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002725/1.358, allocations: 257.6 kB / 0.6217 GB, free: 31.21 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004867/1.363, allocations: 3.106 MB / 0.6248 GB, free: 29.15 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.0178/1.381, allocations: 13.81 MB / 0.6383 GB, free: 17.05 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003793/1.385, allocations: 2.219 MB / 0.6404 GB, free: 15.34 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001785/1.387, allocations: 1.372 MB / 0.6418 GB, free: 13.97 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007346/1.394, allocations: 5.866 MB / 0.6475 GB, free: 7.629 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.847e-05/1.394, allocations: 48.56 kB / 0.6475 GB, free: 7.574 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008384/1.395, allocations: 189 kB / 0.6477 GB, free: 7.391 MB / 478.1 MB Notification: Performance of pre-optimization done (n=171): time 3.507e-06/1.395, allocations: 0 / 0.6477 GB, free: 7.391 MB / 478.1 MB Notification: Performance of matching and sorting (n=197): time 0.02048/1.415, allocations: 9.186 MB / 0.6567 GB, free: 14.14 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.584e-05/1.415, allocations: 77.41 kB / 0.6568 GB, free: 14.05 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003076/1.419, allocations: 1.841 MB / 0.6586 GB, free: 12.18 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002832/1.419, allocations: 61.7 kB / 0.6586 GB, free: 12.11 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009079/1.42, allocations: 1.087 MB / 0.6597 GB, free: 11.02 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007619/1.421, allocations: 0.7157 MB / 0.6604 GB, free: 10.31 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007845/1.421, allocations: 464.5 kB / 0.6608 GB, free: 9.852 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001539/1.422, allocations: 303.5 kB / 0.6611 GB, free: 9.555 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002116/1.424, allocations: 1.229 MB / 0.6623 GB, free: 8.316 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002437/1.426, allocations: 1.801 MB / 0.6641 GB, free: 6.273 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004734/1.431, allocations: 3.16 MB / 0.6672 GB, free: 2.949 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.969e-06/1.431, allocations: 4 kB / 0.6672 GB, free: 2.945 MB / 494.1 MB Notification: Performance of matching and sorting (n=299) (initialization): time 0.00832/1.439, allocations: 4.304 MB / 0.6714 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.727e-05/1.439, allocations: 12 kB / 0.6714 GB, free: 14.72 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.379e-05/1.439, allocations: 23.94 kB / 0.6714 GB, free: 14.7 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01408/1.453, allocations: 3.635 MB / 0.675 GB, free: 11.07 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001552/1.455, allocations: 328.4 kB / 0.6753 GB, free: 10.77 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007255/1.462, allocations: 3.956 MB / 0.6791 GB, free: 6.824 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002425/1.465, allocations: 96.69 kB / 0.6792 GB, free: 6.73 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002728/1.465, allocations: 120 kB / 0.6793 GB, free: 6.613 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.003404/1.468, allocations: 1.668 MB / 0.681 GB, free: 4.938 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002769/1.471, allocations: 1.758 MB / 0.6827 GB, free: 2.941 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004508/1.476, allocations: 3.043 MB / 0.6857 GB, free: 15.72 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.164e-05/1.476, allocations: 9.125 kB / 0.6857 GB, free: 15.71 MB / 0.5137 GB Notification: Performance of matching and sorting (n=299) (initialization_lambda0): time 0.007322/1.483, allocations: 4.037 MB / 0.6896 GB, free: 11.77 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.469e-05/1.483, allocations: 12 kB / 0.6896 GB, free: 11.76 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.693e-05/1.483, allocations: 19.94 kB / 0.6896 GB, free: 11.74 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009842/1.493, allocations: 2.75 MB / 0.6923 GB, free: 9.004 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001931/1.495, allocations: 379.7 kB / 0.6927 GB, free: 8.66 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006631/1.502, allocations: 3.467 MB / 0.6961 GB, free: 5.195 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002362/1.504, allocations: 87.95 kB / 0.6962 GB, free: 5.109 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004561/1.504, allocations: 120 kB / 0.6963 GB, free: 4.992 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.001524/1.506, allocations: 314.4 kB / 0.6966 GB, free: 4.703 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001463/1.508, allocations: 234.5 kB / 0.6968 GB, free: 4.473 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009383/1.517, allocations: 3.951 MB / 0.7006 GB, free: 0.5234 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.834e-05/1.517, allocations: 28 kB / 0.7007 GB, free: 0.4961 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.149e-05/1.517, allocations: 4 kB / 0.7007 GB, free: 0.4922 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006606/1.524, allocations: 3.372 MB / 0.704 GB, free: 13.04 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01399/1.538, allocations: 6.295 MB / 0.7101 GB, free: 6.73 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.12e-05/1.538, allocations: 0 / 0.7101 GB, free: 6.73 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00143/1.539, allocations: 320.7 kB / 0.7104 GB, free: 6.434 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004249/1.543, allocations: 1.153 MB / 0.7116 GB, free: 5.258 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002646/1.544, allocations: 75.89 kB / 0.7116 GB, free: 5.184 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01206/1.556, allocations: 11.08 MB / 0.7224 GB, free: 9.391 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/1.556, allocations: 192 / 0.7224 GB, free: 9.391 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01119/1.567, allocations: 5.19 MB / 0.7275 GB, free: 4.18 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001861/1.569, allocations: 0.62 MB / 0.7281 GB, free: 3.539 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007533/1.57, allocations: 59.97 kB / 0.7282 GB, free: 3.48 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001853/1.572, allocations: 75.89 kB / 0.7282 GB, free: 3.406 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004527/1.572, allocations: 161.8 kB / 0.7284 GB, free: 3.246 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000259/1.572, allocations: 83.95 kB / 0.7285 GB, free: 3.164 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.002675/1.575, allocations: 1.26 MB / 0.7297 GB, free: 1.887 MB / 0.545 GB Notification: Performance of sort global known variables: time 1e-07/1.575, allocations: 0 / 0.7297 GB, free: 1.887 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.006886/1.582, allocations: 1.747 MB / 0.7314 GB, free: 140 kB / 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.003467/1.585, allocations: 1.013 MB / 0.7324 GB, free: 15.19 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0145/1.6, allocations: 5.121 MB / 0.7374 GB, free: 10.18 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 9.488e-06/1.6, allocations: 0 / 0.7374 GB, free: 10.18 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.005195/1.605, allocations: 2.25 MB / 0.7396 GB, free: 7.906 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006449/1.612, allocations: 1.042 MB / 0.7406 GB, free: 6.863 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01255/1.624, allocations: 5.73 MB / 0.7462 GB, free: 1.125 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002565/1.627, allocations: 1.866 MB / 0.748 GB, free: 15.22 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.003882/1.631, allocations: 0.9633 MB / 0.749 GB, free: 14.26 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008989/1.632, allocations: 195.4 kB / 0.7492 GB, free: 14.07 MB / 0.5762 GB Notification: Performance of SimCode: time 8.72e-07/1.632, allocations: 0 / 0.7492 GB, free: 14.07 MB / 0.5762 GB Notification: Performance of Templates: time 0.3896/2.021, allocations: 75.83 MB / 0.8232 GB, free: 224.1 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)