Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.Systems.DHW.Examples.DHWResistiveWaterHeater.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/BuildSysPro 3.6.0/package.mo", uses=false) Using package BuildSysPro with version 3.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/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(BuildSysPro.Systems.DHW.Examples.DHWResistiveWaterHeater,tolerance=1e-06,outputFormat="empty",numberOfIntervals=480,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.Systems.DHW.Examples.DHWResistiveWaterHeater") translateModel(BuildSysPro.Systems.DHW.Examples.DHWResistiveWaterHeater,tolerance=1e-06,outputFormat="empty",numberOfIntervals=480,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.Systems.DHW.Examples.DHWResistiveWaterHeater") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001468/0.001468, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001766/0.001766, allocations: 197.8 kB / 16.14 MB, free: 6.688 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.355/1.355, allocations: 222.9 MB / 239.8 MB, free: 4.621 MB / 190.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/Building/BuildingEnvelope/HeatTransfer/package.mo:2:1-40:17:writable] Warning: Soil_case_nappe was referenced in the package.order file, but was not found in package.mo, Soil_case_nappe/package.mo or Soil_case_nappe.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/package.mo): time 0.9881/0.9881, allocations: 143 MB / 433 MB, free: 11.55 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001347/0.001347, allocations: 67.91 kB / 0.5135 GB, free: 12.13 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1716/0.1729, allocations: 82.05 MB / 0.5936 GB, free: 10.05 MB / 0.4981 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/DymolaCommands master/package.mo:17:42-17:258:writable] Notification: This is an open source dummy package of a commercial library. If you want it to be supported, you will need to add an implemention on our github repository: https://github.com/Modelica-OpenVendorSpecificLibraries. Notification: Automatically loaded package DymolaCommands 0.0.0 due to uses annotation from Modelica_LinearSystems2. Notification: Automatically loaded package Modelica_LinearSystems2 2.4.1 due to usage. Notification: Performance of NFInst.instantiate(BuildSysPro.Systems.DHW.Examples.DHWResistiveWaterHeater): time 0.7796/0.9526, allocations: 75.56 MB / 0.6674 GB, free: 9.734 MB / 0.4982 GB Notification: Performance of NFInst.instExpressions: time 0.001592/0.9542, allocations: 0.8826 MB / 0.6682 GB, free: 9.027 MB / 0.4982 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002883/0.9545, allocations: 9.594 kB / 0.6683 GB, free: 9.023 MB / 0.4982 GB Notification: Performance of NFTyping.typeComponents: time 0.0002133/0.9547, allocations: 22.28 kB / 0.6683 GB, free: 9.004 MB / 0.4982 GB Notification: Performance of NFTyping.typeBindings: time 0.0003832/0.9551, allocations: 70.88 kB / 0.6683 GB, free: 8.945 MB / 0.4982 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004062/0.9556, allocations: 130.6 kB / 0.6685 GB, free: 8.848 MB / 0.4982 GB Notification: Performance of NFFlatten.flatten: time 0.0003587/0.9559, allocations: 292.2 kB / 0.6687 GB, free: 8.68 MB / 0.4982 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002175/0.9561, allocations: 109.6 kB / 0.6688 GB, free: 8.613 MB / 0.4982 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002463/0.9564, allocations: 109.2 kB / 0.669 GB, free: 8.551 MB / 0.4982 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001842/0.9566, allocations: 128.4 kB / 0.6691 GB, free: 8.461 MB / 0.4982 GB Notification: Performance of NFPackage.collectConstants: time 4.618e-05/0.9566, allocations: 16.34 kB / 0.6691 GB, free: 8.461 MB / 0.4982 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001807/0.9568, allocations: 56.19 kB / 0.6691 GB, free: 8.441 MB / 0.4982 GB Notification: Performance of NFScalarize.scalarize: time 0.0001207/0.957, allocations: 66.98 kB / 0.6692 GB, free: 8.391 MB / 0.4982 GB Notification: Performance of NFVerifyModel.verify: time 0.0001485/0.9571, allocations: 136.5 kB / 0.6693 GB, free: 8.297 MB / 0.4982 GB Notification: Performance of NFConvertDAE.convert: time 0.0003589/0.9575, allocations: 341.7 kB / 0.6697 GB, free: 8.051 MB / 0.4982 GB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.9575, allocations: 3.938 kB / 0.6697 GB, free: 8.047 MB / 0.4982 GB Notification: Performance of FrontEnd: time 8.82e-07/0.9575, allocations: 0 / 0.6697 GB, free: 8.047 MB / 0.4982 GB Notification: Performance of Transformations before backend: time 1.092e-05/0.9575, allocations: 1.188 kB / 0.6697 GB, free: 8.047 MB / 0.4982 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 58 * Number of variables: 58 Notification: Performance of Generate backend data structure: time 0.001111/0.9586, allocations: 0.6245 MB / 0.6703 GB, free: 7.488 MB / 0.4982 GB Notification: Performance of prepare preOptimizeDAE: time 3.696e-05/0.9587, allocations: 9.25 kB / 0.6703 GB, free: 7.488 MB / 0.4982 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001347/0.9588, allocations: 33.25 kB / 0.6703 GB, free: 7.473 MB / 0.4982 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002859/0.9591, allocations: 269.9 kB / 0.6706 GB, free: 7.203 MB / 0.4982 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.702e-05/0.9592, allocations: 22.94 kB / 0.6706 GB, free: 7.191 MB / 0.4982 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.98e-05/0.9592, allocations: 29.33 kB / 0.6706 GB, free: 7.18 MB / 0.4982 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005409/0.9598, allocations: 280.9 kB / 0.6709 GB, free: 6.988 MB / 0.4982 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.85e-05/0.9598, allocations: 1.156 kB / 0.6709 GB, free: 6.988 MB / 0.4982 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.523e-05/0.9598, allocations: 10.25 kB / 0.6709 GB, free: 6.98 MB / 0.4982 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.017e-06/0.9598, allocations: 5.281 kB / 0.6709 GB, free: 6.98 MB / 0.4982 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005048/0.9603, allocations: 182.4 kB / 0.6711 GB, free: 6.898 MB / 0.4982 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.001401/0.9617, allocations: 1.234 MB / 0.6723 GB, free: 5.723 MB / 0.4982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008036/0.9626, allocations: 263.8 kB / 0.6725 GB, free: 5.586 MB / 0.4982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002736/0.9629, allocations: 115.3 kB / 0.6727 GB, free: 5.527 MB / 0.4982 GB Notification: Performance of preOpt evalFunc (simulation): time 2.821e-05/0.9629, allocations: 1.875 kB / 0.6727 GB, free: 5.527 MB / 0.4982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003431/0.9632, allocations: 166.9 kB / 0.6728 GB, free: 5.41 MB / 0.4982 GB Notification: Performance of pre-optimization done (n=28): time 2.836e-06/0.9633, allocations: 5.25 kB / 0.6728 GB, free: 5.406 MB / 0.4982 GB Notification: Performance of matching and sorting (n=28): time 0.0008933/0.9642, allocations: 369.9 kB / 0.6732 GB, free: 5.223 MB / 0.4982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.552e-05/0.9642, allocations: 54.91 kB / 0.6732 GB, free: 5.16 MB / 0.4982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002043/0.9644, allocations: 232.4 kB / 0.6734 GB, free: 4.992 MB / 0.4982 GB Notification: Performance of collectPreVariables (initialization): time 2.729e-05/0.9644, allocations: 42.06 kB / 0.6735 GB, free: 4.949 MB / 0.4982 GB Notification: Performance of collectInitialEqns (initialization): time 7.644e-05/0.9645, allocations: 157.8 kB / 0.6736 GB, free: 4.805 MB / 0.4982 GB Notification: Performance of collectInitialBindings (initialization): time 5.23e-05/0.9646, allocations: 89.58 kB / 0.6737 GB, free: 4.727 MB / 0.4982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.566e-05/0.9647, allocations: 66.38 kB / 0.6738 GB, free: 4.68 MB / 0.4982 GB Notification: Performance of setup shared object (initialization): time 5.623e-05/0.9647, allocations: 336.3 kB / 0.6741 GB, free: 4.348 MB / 0.4982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002572/0.965, allocations: 113.2 kB / 0.6742 GB, free: 4.289 MB / 0.4982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002547/0.9653, allocations: 170.2 kB / 0.6744 GB, free: 4.156 MB / 0.4982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001228/0.9665, allocations: 487.1 kB / 0.6748 GB, free: 3.875 MB / 0.4982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.808e-06/0.9665, allocations: 1.188 kB / 0.6748 GB, free: 3.875 MB / 0.4982 GB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0006289/0.9672, allocations: 335.3 kB / 0.6752 GB, free: 3.703 MB / 0.4982 GB Notification: Performance of prepare postOptimizeDAE: time 1.709e-05/0.9672, allocations: 11.25 kB / 0.6752 GB, free: 3.699 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.145e-05/0.9672, allocations: 1.156 kB / 0.6752 GB, free: 3.699 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.618e-05/0.9672, allocations: 12.17 kB / 0.6752 GB, free: 3.691 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002607/0.9675, allocations: 58.03 kB / 0.6752 GB, free: 3.68 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.004e-05/0.9675, allocations: 11.28 kB / 0.6752 GB, free: 3.672 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002156/0.9677, allocations: 41.02 kB / 0.6753 GB, free: 3.645 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.36e-05/0.9678, allocations: 12.89 kB / 0.6753 GB, free: 3.641 MB / 0.4982 GB Warning: Assuming fixed start value for the following 2 variables: eCSisotherme.Cons:VARIABLE(flow=false fixed = true ) "Electric consumption in kWh" type: Real eCSisotherme.Hyst:DISCRETE(start = 0 fixed = true ) "Hysteresis" type: Integer Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 18 (debit.discretePart.sampleTrigger,debit.discretePart.ticks,$PRE.debit.discretePart.ticks,sampleClock.sampleTrigger,$whenCondition1,$whenCondition2,$PRE.eCSisotherme.Hyst,$PRE.debit.discretePart.seedState[3],$PRE.debit.discretePart.seedState[2],$PRE.debit.discretePart.seedState[1],debit.discretePart.y_sampled,debit.discretePart.noise,debit.discretePart.seedState[3],debit.discretePart.seedState[2],debit.discretePart.seedState[1],eCSisotherme.Hyst,debit.discretePart.cont,debit.cont) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (38): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0002054/0.968, allocations: 165.8 kB / 0.6755 GB, free: 3.488 MB / 0.4982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.195e-05/0.968, allocations: 29.8 kB / 0.6755 GB, free: 3.469 MB / 0.4982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006605/0.9687, allocations: 291 kB / 0.6758 GB, free: 3.309 MB / 0.4982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.969e-06/0.9687, allocations: 6.375 kB / 0.6758 GB, free: 3.305 MB / 0.4982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.9687, allocations: 0 / 0.6758 GB, free: 3.305 MB / 0.4982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.95e-06/0.9687, allocations: 9.172 kB / 0.6758 GB, free: 3.297 MB / 0.4982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001172/0.9699, allocations: 0.7292 MB / 0.6765 GB, free: 2.723 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.9699, allocations: 0 / 0.6765 GB, free: 2.723 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002492/0.9702, allocations: 48.8 kB / 0.6765 GB, free: 2.707 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.767e-06/0.9702, allocations: 6.031 kB / 0.6765 GB, free: 2.703 MB / 0.4982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.139e-05/0.9702, allocations: 6.281 kB / 0.6765 GB, free: 2.699 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.106e-06/0.9702, allocations: 2.125 kB / 0.6766 GB, free: 2.699 MB / 0.4982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.9702, allocations: 0 / 0.6766 GB, free: 2.699 MB / 0.4982 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008882/0.9711, allocations: 0.5097 MB / 0.677 GB, free: 2.363 MB / 0.4982 GB Notification: Performance of postOpt removeConstants (simulation): time 8.989e-05/0.9712, allocations: 123.3 kB / 0.6772 GB, free: 2.234 MB / 0.4982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.18e-05/0.9713, allocations: 8.656 kB / 0.6772 GB, free: 2.23 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002113/0.9715, allocations: 15.7 kB / 0.6772 GB, free: 2.223 MB / 0.4982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.956e-05/0.9716, allocations: 21.84 kB / 0.6772 GB, free: 2.211 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.359e-05/0.9716, allocations: 9.641 kB / 0.6772 GB, free: 2.207 MB / 0.4982 GB Notification: Performance of sorting global known variables: time 0.0001367/0.9717, allocations: 171.8 kB / 0.6774 GB, free: 2.086 MB / 0.4982 GB Notification: Performance of sort global known variables: time 1.2e-07/0.9717, allocations: 0 / 0.6774 GB, free: 2.086 MB / 0.4982 GB Notification: Performance of remove unused functions: time 0.0003889/0.9721, allocations: 72.94 kB / 0.6775 GB, free: 2.066 MB / 0.4982 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (eCSisotherme.PertekWh,eCSisotherme.EnergieCHkWh,eCSisotherme.Cons,eCSisotherme.Eau.T) * Number of discrete variables: 11 (debit.discretePart.sampleTrigger,sampleClock.sampleTrigger,$whenCondition2,$whenCondition1,eCSisotherme.Hyst,debit.discretePart.ticks,debit.discretePart.seedState[1],debit.discretePart.seedState[2],debit.discretePart.seedState[3],debit.discretePart.noise,debit.discretePart.y_sampled) * Number of discrete states: 5 (debit.discretePart.ticks,debit.discretePart.seedState[1],debit.discretePart.seedState[2],debit.discretePart.seedState[3],eCSisotherme.Hyst) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.000157/0.9723, allocations: 125.7 kB / 0.6776 GB, free: 1.961 MB / 0.4982 GB Notification: Performance of simCode: created initialization part: time 0.0006065/0.9729, allocations: 277.9 kB / 0.6778 GB, free: 1.828 MB / 0.4982 GB Notification: Performance of simCode: created event and clocks part: time 2.063e-06/0.9729, allocations: 448 / 0.6778 GB, free: 1.828 MB / 0.4982 GB Notification: Performance of simCode: created simulation system equations: time 0.0002977/0.9732, allocations: 128.6 kB / 0.678 GB, free: 1.773 MB / 0.4982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005303/0.9738, allocations: 66.5 kB / 0.678 GB, free: 1.742 MB / 0.4982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00132/0.9751, allocations: 0.7538 MB / 0.6788 GB, free: 1.199 MB / 0.4982 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002559/0.9754, allocations: 0.7657 MB / 0.6795 GB, free: 476 kB / 0.4982 GB Notification: Performance of simCode: alias equations: time 0.0001597/0.9755, allocations: 37.42 kB / 0.6795 GB, free: 456 kB / 0.4982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.039e-05/0.9756, allocations: 26.36 kB / 0.6796 GB, free: 444 kB / 0.4982 GB Notification: Performance of SimCode: time 2.2e-07/0.9756, allocations: 0 / 0.6796 GB, free: 444 kB / 0.4982 GB Notification: Performance of Templates: time 0.007993/0.9836, allocations: 3.307 MB / 0.6828 GB, free: 14.82 MB / 0.5138 GB make -j1 -f BuildSysPro_BuildSysPro.Systems.DHW.Examples.DHWResistiveWaterHeater.makefile (rm -f BuildSysPro_BuildSysPro.Systems.DHW.Examples.DHWResistiveWaterHeater.pipe ; mkfifo BuildSysPro_BuildSysPro.Systems.DHW.Examples.DHWResistiveWaterHeater.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.Systems.DHW.Examples.DHWResistiveWaterHeater.pipe >> ../files/BuildSysPro_BuildSysPro.Systems.DHW.Examples.DHWResistiveWaterHeater.sim & ./BuildSysPro_BuildSysPro.Systems.DHW.Examples.DHWResistiveWaterHeater -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildSysPro_BuildSysPro.Systems.DHW.Examples.DHWResistiveWaterHeater.pipe 2>&1)