Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.HeatingSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Fluid.Examples.HeatingSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001289/0.001289, allocations: 118.5 kB / 18.46 MB, free: 4.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001359/0.001359, allocations: 210 kB / 19.4 MB, free: 3.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.393/1.393, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001293/0.001293, allocations: 55.91 kB / 359.4 MB, free: 12.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3802/0.3815, allocations: 50.54 MB / 409.9 MB, free: 1.594 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.2234/0.6049, allocations: 90.41 MB / 0.4886 GB, free: 6.875 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.06164/0.6666, allocations: 21.35 MB / 0.5094 GB, free: 1.469 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0048/0.6715, allocations: 83.5 kB / 0.5095 GB, free: 1.387 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005652/0.6772, allocations: 0.9473 MB / 0.5105 GB, free: 444 kB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02174/0.699, allocations: 3.736 MB / 0.5141 GB, free: 12.68 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02555/0.7246, allocations: 5.676 MB / 0.5196 GB, free: 7.008 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.01816/0.7428, allocations: 7.073 MB / 0.5266 GB, free: 15.91 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006961/0.7498, allocations: 1.848 MB / 0.5284 GB, free: 14.04 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.7306/1.481, allocations: 75.01 MB / 0.6016 GB, free: 11.96 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1154/1.596, allocations: 31.94 MB / 0.6328 GB, free: 1.02 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001858/1.598, allocations: 248 kB / 0.633 GB, free: 0.7773 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02486/1.623, allocations: 6.12 MB / 0.639 GB, free: 11.99 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.003628/1.626, allocations: 1.085 MB / 0.6401 GB, free: 11.34 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.00539/1.632, allocations: 1.503 MB / 0.6416 GB, free: 10.48 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01963/1.652, allocations: 5.537 MB / 0.647 GB, free: 6.051 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 7.554e-06/1.652, allocations: 0 / 0.647 GB, free: 6.051 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.454e-06/1.652, allocations: 0 / 0.647 GB, free: 6.051 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 0.0001669/1.652, allocations: 0 / 0.647 GB, free: 6.051 MB / 0.4981 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.01791/1.67, allocations: 3.501 MB / 0.6504 GB, free: 2.551 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.994e-05/1.67, allocations: 8.031 kB / 0.6504 GB, free: 2.543 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002568/1.672, allocations: 312.5 kB / 0.6507 GB, free: 2.234 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007108/1.68, allocations: 1.675 MB / 0.6523 GB, free: 0.5938 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004244/1.68, allocations: 216 kB / 0.6525 GB, free: 392 kB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001137/1.681, allocations: 199.8 kB / 0.6527 GB, free: 204 kB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01311/1.694, allocations: 3.296 MB / 0.6559 GB, free: 12.82 MB / 0.5138 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001204/1.694, allocations: 0 / 0.6559 GB, free: 12.82 MB / 0.5138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006828/1.695, allocations: 82.16 kB / 0.656 GB, free: 12.75 MB / 0.5138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006613/1.696, allocations: 255.1 kB / 0.6563 GB, free: 12.51 MB / 0.5138 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01167/1.708, allocations: 3.113 MB / 0.6593 GB, free: 9.422 MB / 0.5138 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.04018/1.748, allocations: 13.77 MB / 0.6727 GB, free: 10.95 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009201/1.757, allocations: 2.225 MB / 0.6749 GB, free: 8.734 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004788/1.762, allocations: 1.365 MB / 0.6763 GB, free: 7.371 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01924/1.781, allocations: 5.87 MB / 0.682 GB, free: 1.027 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.38e-05/1.781, allocations: 48.56 kB / 0.682 GB, free: 0.9727 MB / 0.5294 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001536/1.783, allocations: 180.5 kB / 0.6822 GB, free: 0.7969 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=171): time 1.041e-05/1.783, allocations: 1.406 kB / 0.6822 GB, free: 0.7969 MB / 0.5294 GB Notification: Performance of matching and sorting (n=197): time 0.04717/1.83, allocations: 9.142 MB / 0.6911 GB, free: 7.59 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001214/1.83, allocations: 81.41 kB / 0.6912 GB, free: 7.5 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005854/1.836, allocations: 1.837 MB / 0.693 GB, free: 5.621 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0007477/1.837, allocations: 69.69 kB / 0.6931 GB, free: 5.547 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.001453/1.838, allocations: 1.051 MB / 0.6941 GB, free: 4.488 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.00167/1.84, allocations: 0.6811 MB / 0.6948 GB, free: 3.812 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002182/1.842, allocations: 460.3 kB / 0.6952 GB, free: 3.355 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.000162/1.842, allocations: 309.1 kB / 0.6955 GB, free: 3.051 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004465/1.847, allocations: 1.233 MB / 0.6967 GB, free: 1.809 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005379/1.852, allocations: 1.803 MB / 0.6985 GB, free: 15.77 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01038/1.863, allocations: 3.157 MB / 0.7015 GB, free: 12.44 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.771e-05/1.863, allocations: 4 kB / 0.7015 GB, free: 12.44 MB / 0.5606 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.01643/1.879, allocations: 4.3 MB / 0.7057 GB, free: 8.23 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 8.171e-05/1.879, allocations: 16 kB / 0.7058 GB, free: 8.215 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.928e-05/1.879, allocations: 23.56 kB / 0.7058 GB, free: 8.195 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02799/1.907, allocations: 3.633 MB / 0.7093 GB, free: 4.57 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002776/1.91, allocations: 331.5 kB / 0.7096 GB, free: 4.27 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01379/1.924, allocations: 3.949 MB / 0.7135 GB, free: 336 kB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003994/1.928, allocations: 95.89 kB / 0.7136 GB, free: 240 kB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006843/1.929, allocations: 116 kB / 0.7137 GB, free: 124 kB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00614/1.935, allocations: 1.672 MB / 0.7153 GB, free: 14.44 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00504/1.94, allocations: 1.751 MB / 0.7171 GB, free: 12.45 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.009463/1.95, allocations: 3.052 MB / 0.72 GB, free: 9.227 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.03e-05/1.95, allocations: 4 kB / 0.72 GB, free: 9.223 MB / 0.5763 GB Notification: Performance of matching and sorting (n=299) (initialization_lambda0): time 0.01472/1.964, allocations: 4.021 MB / 0.724 GB, free: 5.297 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 5.327e-05/1.965, allocations: 18.64 kB / 0.724 GB, free: 5.281 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.171e-05/1.965, allocations: 20 kB / 0.724 GB, free: 5.262 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01917/1.984, allocations: 2.738 MB / 0.7267 GB, free: 2.527 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003141/1.987, allocations: 379.5 kB / 0.727 GB, free: 2.18 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01132/1.998, allocations: 3.465 MB / 0.7304 GB, free: 14.72 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003871/2.002, allocations: 99.94 kB / 0.7305 GB, free: 14.62 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000647/2.003, allocations: 112 kB / 0.7306 GB, free: 14.52 MB / 0.5919 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.001226/2.004, allocations: 319.4 kB / 0.7309 GB, free: 14.22 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001174/2.005, allocations: 229.3 kB / 0.7311 GB, free: 13.99 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01575/2.021, allocations: 3.946 MB / 0.735 GB, free: 10.05 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.994e-05/2.021, allocations: 27.98 kB / 0.735 GB, free: 10.02 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.621e-05/2.021, allocations: 8 kB / 0.735 GB, free: 10.01 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01245/2.034, allocations: 3.366 MB / 0.7383 GB, free: 6.57 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02341/2.057, allocations: 6.296 MB / 0.7445 GB, free: 252 kB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.715e-05/2.057, allocations: 0 / 0.7445 GB, free: 252 kB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003163/2.061, allocations: 315.3 kB / 0.7448 GB, free: 15.95 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008119/2.069, allocations: 1.156 MB / 0.7459 GB, free: 14.78 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006117/2.069, allocations: 79.94 kB / 0.746 GB, free: 14.7 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01858/2.088, allocations: 11.06 MB / 0.7568 GB, free: 2.91 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.027e-05/2.088, allocations: 0 / 0.7568 GB, free: 2.91 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3948/2.483, allocations: 5.173 MB / 0.7618 GB, free: 282.5 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002674/2.486, allocations: 0.5978 MB / 0.7624 GB, free: 282.4 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001457/2.487, allocations: 55.05 kB / 0.7625 GB, free: 282.4 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00324/2.49, allocations: 75.31 kB / 0.7625 GB, free: 282.4 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009268/2.491, allocations: 167 kB / 0.7627 GB, free: 282.4 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00054/2.492, allocations: 81.12 kB / 0.7628 GB, free: 282.4 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.003672/2.495, allocations: 1.263 MB / 0.764 GB, free: 282.3 MB / 0.6075 GB Notification: Performance of sort global known variables: time 4.71e-07/2.496, allocations: 1.906 kB / 0.764 GB, free: 282.3 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.008815/2.504, allocations: 1.735 MB / 0.7657 GB, free: 282.2 MB / 0.6075 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.004376/2.509, allocations: 1.012 MB / 0.7667 GB, free: 282 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.01758/2.526, allocations: 5.104 MB / 0.7717 GB, free: 280.4 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.034e-05/2.526, allocations: 0 / 0.7717 GB, free: 280.4 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.006373/2.533, allocations: 2.247 MB / 0.7739 GB, free: 279.3 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008788/2.542, allocations: 1.067 MB / 0.7749 GB, free: 279 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0163/2.558, allocations: 5.728 MB / 0.7805 GB, free: 276.2 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002451/2.56, allocations: 1.856 MB / 0.7823 GB, free: 274.5 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00151/2.562, allocations: 203.4 kB / 0.7825 GB, free: 274.3 MB / 0.6075 GB Notification: Performance of SimCode: time 1.392e-06/2.562, allocations: 0 / 0.7825 GB, free: 274.3 MB / 0.6075 GB Notification: Performance of Templates: time 0.1419/2.704, allocations: 89.67 MB / 0.8701 GB, free: 184.6 MB / 0.6075 GB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.HeatingSystem.makefile (rm -f Modelica_trunk_Modelica.Fluid.Examples.HeatingSystem.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.HeatingSystem.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.HeatingSystem.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.HeatingSystem.sim & ./Modelica_trunk_Modelica.Fluid.Examples.HeatingSystem -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.HeatingSystem.pipe 2>&1)