Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_Buildings.DHC.Loads.HotWater.Examples.HeaterAndFixtureDirectHeatExchangerWithElectricHeat.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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) 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(Buildings.DHC.Loads.HotWater.Examples.HeaterAndFixtureDirectHeatExchangerWithElectricHeat,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.DHC.Loads.HotWater.Examples.HeaterAndFixtureDirectHeatExchangerWithElectricHeat") translateModel(Buildings.DHC.Loads.HotWater.Examples.HeaterAndFixtureDirectHeatExchangerWithElectricHeat,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.DHC.Loads.HotWater.Examples.HeaterAndFixtureDirectHeatExchangerWithElectricHeat") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001617/0.001617, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.002148/0.002148, allocations: 190.8 kB / 16.25 MB, free: 6.629 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.465/1.465, allocations: 222.9 MB / 239.9 MB, free: 4.512 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.867/2.867, allocations: 472.6 MB / 0.7448 GB, free: 4.875 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001272/0.001273, allocations: 64.72 kB / 0.9115 GB, free: 33.52 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3707/0.372, allocations: 159.9 MB / 1.068 GB, free: 10.8 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.DHC.Loads.HotWater.Examples.HeaterAndFixtureDirectHeatExchangerWithElectricHeat): time 0.8838/1.256, allocations: 215.4 MB / 1.278 GB, free: 19.06 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.05878/1.315, allocations: 39.25 MB / 1.316 GB, free: 18.41 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.01153/1.326, allocations: 204.7 kB / 1.317 GB, free: 18.41 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.008949/1.335, allocations: 2.261 MB / 1.319 GB, free: 18.36 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.02185/1.357, allocations: 5.885 MB / 1.325 GB, free: 18.11 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.01568/1.373, allocations: 4.726 MB / 1.329 GB, free: 17.98 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.02231/1.395, allocations: 13.26 MB / 1.342 GB, free: 12.56 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01384/1.409, allocations: 4.984 MB / 1.347 GB, free: 10.12 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.016/1.425, allocations: 6.035 MB / 1.353 GB, free: 7.332 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007613/1.433, allocations: 3.743 MB / 1.357 GB, free: 5.844 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.002625/1.435, allocations: 0.5316 MB / 1.357 GB, free: 5.844 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01058/1.446, allocations: 3.038 MB / 1.36 GB, free: 4.875 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.002482/1.448, allocations: 1.203 MB / 1.361 GB, free: 4.066 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.006998/1.456, allocations: 2.882 MB / 1.364 GB, free: 2.219 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.01789/1.473, allocations: 8.671 MB / 1.372 GB, free: 13.6 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 7.223e-06/1.473, allocations: 4 kB / 1.372 GB, free: 13.6 MB / 1.014 GB Notification: Performance of FrontEnd: time 2.114e-06/1.473, allocations: 0 / 1.372 GB, free: 13.6 MB / 1.014 GB Notification: Performance of Transformations before backend: time 0.0003503/1.474, allocations: 0 / 1.372 GB, free: 13.6 MB / 1.014 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.0171/1.491, allocations: 5.489 MB / 1.378 GB, free: 9.707 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.836e-05/1.491, allocations: 11.19 kB / 1.378 GB, free: 9.707 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007503/1.499, allocations: 1.12 MB / 1.379 GB, free: 9.184 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01485/1.513, allocations: 4.211 MB / 1.383 GB, free: 6.031 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001486/1.515, allocations: 475 kB / 1.384 GB, free: 5.828 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001272/1.516, allocations: 325.9 kB / 1.384 GB, free: 5.723 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01195/1.528, allocations: 3.906 MB / 1.388 GB, free: 3.258 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001478/1.528, allocations: 6.625 kB / 1.388 GB, free: 3.254 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008264/1.529, allocations: 143.2 kB / 1.388 GB, free: 3.145 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.733e-05/1.529, allocations: 83.59 kB / 1.388 GB, free: 3.145 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009361/1.539, allocations: 3.308 MB / 1.391 GB, free: 1.477 MB / 1.014 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.03319/1.572, allocations: 20.93 MB / 1.412 GB, free: 12.7 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006484/1.579, allocations: 1.956 MB / 1.413 GB, free: 10.74 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0025/1.581, allocations: 0.984 MB / 1.414 GB, free: 9.758 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002805/1.584, allocations: 3.189 MB / 1.418 GB, free: 5.879 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003397/1.587, allocations: 1.155 MB / 1.419 GB, free: 4.699 MB / 1.045 GB Notification: Performance of pre-optimization done (n=158): time 5.651e-06/1.587, allocations: 8 kB / 1.419 GB, free: 4.691 MB / 1.045 GB Notification: Performance of matching and sorting (n=158): time 0.009615/1.597, allocations: 2.97 MB / 1.422 GB, free: 1.715 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001532/1.597, allocations: 197.2 kB / 1.422 GB, free: 1.48 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01043/1.608, allocations: 3.955 MB / 1.426 GB, free: 13.53 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 0.0006414/1.608, allocations: 61.7 kB / 1.426 GB, free: 13.46 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.002758/1.611, allocations: 2.076 MB / 1.428 GB, free: 11.38 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 0.001113/1.612, allocations: 0.5504 MB / 1.428 GB, free: 10.83 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001398/1.614, allocations: 455.3 kB / 1.429 GB, free: 10.38 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001058/1.614, allocations: 305.1 kB / 1.429 GB, free: 10.07 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002765/1.617, allocations: 0.9658 MB / 1.43 GB, free: 9.098 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003393/1.62, allocations: 1.747 MB / 1.432 GB, free: 7 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005568/1.626, allocations: 2.58 MB / 1.434 GB, free: 4.129 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.269e-05/1.626, allocations: 4 kB / 1.434 GB, free: 4.125 MB / 1.061 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.008586/1.634, allocations: 3.061 MB / 1.437 GB, free: 1.051 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 3.876e-05/1.634, allocations: 16 kB / 1.437 GB, free: 1.035 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.72e-05/1.634, allocations: 24.84 kB / 1.437 GB, free: 1.012 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.539e-05/1.634, allocations: 32 kB / 1.437 GB, free: 0.9805 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002501/1.637, allocations: 0.6006 MB / 1.438 GB, free: 388 kB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.718e-05/1.637, allocations: 47.84 kB / 1.438 GB, free: 340 kB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004828/1.642, allocations: 0.6021 MB / 1.438 GB, free: 15.73 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004062/1.642, allocations: 123.9 kB / 1.439 GB, free: 15.61 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.004319/1.647, allocations: 1.636 MB / 1.44 GB, free: 13.96 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003338/1.65, allocations: 1.72 MB / 1.442 GB, free: 11.89 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.005537/1.655, allocations: 2.537 MB / 1.444 GB, free: 9.062 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.802e-05/1.655, allocations: 8 kB / 1.444 GB, free: 9.055 MB / 1.076 GB Notification: Performance of matching and sorting (n=270) (initialization_lambda0): time 0.008583/1.664, allocations: 3.008 MB / 1.447 GB, free: 6.035 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 3.2e-05/1.664, allocations: 20.03 kB / 1.447 GB, free: 6.016 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.138e-05/1.664, allocations: 20 kB / 1.447 GB, free: 5.996 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.188e-05/1.664, allocations: 35.94 kB / 1.447 GB, free: 5.961 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002454/1.667, allocations: 0.5849 MB / 1.448 GB, free: 5.375 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.759e-05/1.667, allocations: 43.86 kB / 1.448 GB, free: 5.332 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004895/1.672, allocations: 486 kB / 1.448 GB, free: 4.855 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004365/1.672, allocations: 116 kB / 1.448 GB, free: 4.742 MB / 1.076 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 95 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,$PRE.sch.nextTimeEvent,$whenCondition1,theMixValNoEle.conPID.con1.y,theMixVal.conPID.con1.y,sch.nextTimeEventScaled,$PRE.sch.nextTimeEventScaled,sch.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (270): * Single equations (assignments): 270 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008468/1.673, allocations: 336.2 kB / 1.449 GB, free: 4.406 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001755/1.675, allocations: 430.7 kB / 1.449 GB, free: 3.98 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008509/1.683, allocations: 3.447 MB / 1.453 GB, free: 0.5898 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.372e-05/1.683, allocations: 23.98 kB / 1.453 GB, free: 0.5664 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.256e-05/1.683, allocations: 4 kB / 1.453 GB, free: 0.5625 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00496/1.688, allocations: 2.354 MB / 1.455 GB, free: 14.12 MB / 1.092 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01665/1.705, allocations: 6.623 MB / 1.461 GB, free: 7.453 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-05/1.705, allocations: 0 / 1.461 GB, free: 7.453 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001998/1.707, allocations: 399.8 kB / 1.462 GB, free: 7.062 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.178e-05/1.707, allocations: 8 kB / 1.462 GB, free: 7.055 MB / 1.092 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002237/1.707, allocations: 55.97 kB / 1.462 GB, free: 7 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.877e-05/1.707, allocations: 8 kB / 1.462 GB, free: 6.992 MB / 1.092 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.769e-06/1.707, allocations: 7.938 kB / 1.462 GB, free: 6.984 MB / 1.092 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00974/1.717, allocations: 4.222 MB / 1.466 GB, free: 2.715 MB / 1.092 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00279/1.72, allocations: 0.8581 MB / 1.467 GB, free: 1.832 MB / 1.092 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001431/1.721, allocations: 43.91 kB / 1.467 GB, free: 1.789 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004153/1.726, allocations: 335.4 kB / 1.467 GB, free: 1.461 MB / 1.092 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002649/1.726, allocations: 121.9 kB / 1.467 GB, free: 1.344 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003174/1.726, allocations: 95.86 kB / 1.467 GB, free: 1.25 MB / 1.092 GB Notification: Performance of sorting global known variables: time 0.006526/1.733, allocations: 2.728 MB / 1.47 GB, free: 14.53 MB / 1.107 GB Notification: Performance of sort global known variables: time 3.71e-07/1.733, allocations: 0 / 1.47 GB, free: 14.53 MB / 1.107 GB Notification: Performance of remove unused functions: time 0.009238/1.742, allocations: 2.077 MB / 1.472 GB, free: 12.45 MB / 1.107 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 12 (theMixVal.conPID.I.y,theMixVal.jun.vol.dynBal.U,theMixVal.eneMetReq.EInt,theMixVal.eneMetAct.EInt,gen.senTemHot.T,gen.senTemHexOut.T,genNoEle.senTemHot.T,genNoEle.senTemHexOut.T,theMixValNoEle.conPID.I.y,theMixValNoEle.jun.vol.dynBal.U,theMixValNoEle.eneMetReq.EInt,theMixValNoEle.eneMetAct.EInt) * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,sch.nextTimeEvent,sch.nextTimeEventScaled) * Number of discrete states: 2 (sch.nextTimeEvent,sch.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (191): * Single equations (assignments): 169 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 20 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00351/1.746, allocations: 1.37 MB / 1.473 GB, free: 11.36 MB / 1.107 GB Notification: Performance of simCode: created initialization part: time 0.01276/1.758, allocations: 4.035 MB / 1.477 GB, free: 7.336 MB / 1.107 GB Notification: Performance of simCode: created event and clocks part: time 1.423e-05/1.758, allocations: 6.5 kB / 1.477 GB, free: 7.332 MB / 1.107 GB Notification: Performance of simCode: created simulation system equations: time 0.003104/1.762, allocations: 1.176 MB / 1.478 GB, free: 6.152 MB / 1.107 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01293/1.775, allocations: 2.095 MB / 1.481 GB, free: 4.129 MB / 1.107 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0187/1.793, allocations: 9.228 MB / 1.49 GB, free: 10.88 MB / 1.123 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003238/1.797, allocations: 2.288 MB / 1.492 GB, free: 8.555 MB / 1.123 GB Notification: Performance of simCode: alias equations: time 0.006505/1.803, allocations: 1.028 MB / 1.493 GB, free: 7.617 MB / 1.123 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001547/1.805, allocations: 359.2 kB / 1.493 GB, free: 7.266 MB / 1.123 GB Notification: Performance of SimCode: time 7.92e-07/1.805, allocations: 0 / 1.493 GB, free: 7.266 MB / 1.123 GB Notification: Performance of Templates: time 0.1448/1.949, allocations: 83.95 MB / 1.575 GB, free: 4.418 MB / 1.201 GB make -j1 -f Buildings_1.6_Buildings.DHC.Loads.HotWater.Examples.HeaterAndFixtureDirectHeatExchangerWithElectricHeat.makefile (rm -f Buildings_1.6_Buildings.DHC.Loads.HotWater.Examples.HeaterAndFixtureDirectHeatExchangerWithElectricHeat.pipe ; mkfifo Buildings_1.6_Buildings.DHC.Loads.HotWater.Examples.HeaterAndFixtureDirectHeatExchangerWithElectricHeat.pipe ; head -c 1048576 < Buildings_1.6_Buildings.DHC.Loads.HotWater.Examples.HeaterAndFixtureDirectHeatExchangerWithElectricHeat.pipe >> ../files/Buildings_1.6_Buildings.DHC.Loads.HotWater.Examples.HeaterAndFixtureDirectHeatExchangerWithElectricHeat.sim & ./Buildings_1.6_Buildings.DHC.Loads.HotWater.Examples.HeaterAndFixtureDirectHeatExchangerWithElectricHeat -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.DHC.Loads.HotWater.Examples.HeaterAndFixtureDirectHeatExchangerWithElectricHeat.pipe 2>&1)