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: "" <> buildModelFMU(BuildSysPro.Systems.DHW.Examples.DHWResistiveWaterHeater,fileNamePrefix="BuildSysPro_BuildSysPro_Systems_DHW_Examples_DHWResistiveWaterHeater",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.Systems.DHW.Examples.DHWResistiveWaterHeater,fileNamePrefix="BuildSysPro_BuildSysPro_Systems_DHW_Examples_DHWResistiveWaterHeater",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001162/0.001162, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00116/0.00116, allocations: 193.1 kB / 16.53 MB, free: 6.664 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.177/1.177, allocations: 222.9 MB / 240.2 MB, free: 4.41 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.8467/0.8467, allocations: 143 MB / 433.4 MB, free: 11.48 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00109/0.00109, allocations: 63.89 kB / 0.5143 GB, free: 11.61 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.129/0.1301, allocations: 82.05 MB / 0.5944 GB, free: 9.531 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.6998/0.8299, allocations: 75.8 MB / 0.6684 GB, free: 9.844 MB / 0.4982 GB Notification: Performance of NFInst.instExpressions: time 0.001167/0.8311, allocations: 0.865 MB / 0.6692 GB, free: 9.148 MB / 0.4982 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001202/0.8312, allocations: 4.219 kB / 0.6693 GB, free: 9.148 MB / 0.4982 GB Notification: Performance of NFTyping.typeComponents: time 0.0001582/0.8314, allocations: 33.91 kB / 0.6693 GB, free: 9.117 MB / 0.4982 GB Notification: Performance of NFTyping.typeBindings: time 0.0002333/0.8316, allocations: 99.69 kB / 0.6694 GB, free: 9.031 MB / 0.4982 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002853/0.8319, allocations: 136.8 kB / 0.6695 GB, free: 8.93 MB / 0.4982 GB Notification: Performance of NFFlatten.flatten: time 0.0002179/0.8321, allocations: 315.7 kB / 0.6698 GB, free: 8.742 MB / 0.4982 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001634/0.8323, allocations: 121.1 kB / 0.6699 GB, free: 8.668 MB / 0.4982 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000132/0.8325, allocations: 118.5 kB / 0.67 GB, free: 8.598 MB / 0.4982 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001246/0.8326, allocations: 137.1 kB / 0.6702 GB, free: 8.5 MB / 0.4982 GB Notification: Performance of NFPackage.collectConstants: time 4.109e-05/0.8326, allocations: 28.09 kB / 0.6702 GB, free: 8.5 MB / 0.4982 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000129/0.8328, allocations: 73.55 kB / 0.6703 GB, free: 8.477 MB / 0.4982 GB Notification: Performance of NFScalarize.scalarize: time 8.313e-05/0.8329, allocations: 73.56 kB / 0.6703 GB, free: 8.418 MB / 0.4982 GB Notification: Performance of NFVerifyModel.verify: time 0.00011/0.833, allocations: 153.5 kB / 0.6705 GB, free: 8.309 MB / 0.4982 GB Notification: Performance of NFConvertDAE.convert: time 0.0002642/0.8332, allocations: 366.1 kB / 0.6708 GB, free: 8.043 MB / 0.4982 GB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.8333, allocations: 0 / 0.6708 GB, free: 8.043 MB / 0.4982 GB Notification: Performance of FrontEnd: time 1.122e-06/0.8333, allocations: 1.438 kB / 0.6708 GB, free: 8.043 MB / 0.4982 GB Notification: Performance of Transformations before backend: time 5.841e-06/0.8333, allocations: 4 kB / 0.6708 GB, free: 8.039 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.0008388/0.8341, allocations: 0.6011 MB / 0.6714 GB, free: 7.504 MB / 0.4982 GB Notification: Performance of prepare preOptimizeDAE: time 3.325e-05/0.8342, allocations: 9.406 kB / 0.6714 GB, free: 7.504 MB / 0.4982 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.569e-05/0.8342, allocations: 65.69 kB / 0.6715 GB, free: 7.438 MB / 0.4982 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.843e-05/0.8343, allocations: 34.28 kB / 0.6715 GB, free: 7.422 MB / 0.4982 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002247/0.8345, allocations: 277.2 kB / 0.6718 GB, free: 7.145 MB / 0.4982 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.425e-05/0.8346, allocations: 23.05 kB / 0.6718 GB, free: 7.133 MB / 0.4982 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.531e-05/0.8346, allocations: 29.48 kB / 0.6718 GB, free: 7.121 MB / 0.4982 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004551/0.8351, allocations: 277.5 kB / 0.6721 GB, free: 6.938 MB / 0.4982 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.374e-05/0.8351, allocations: 3.938 kB / 0.6721 GB, free: 6.934 MB / 0.4982 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.075e-05/0.8351, allocations: 18.38 kB / 0.6721 GB, free: 6.918 MB / 0.4982 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.464e-06/0.8351, allocations: 6.875 kB / 0.6721 GB, free: 6.918 MB / 0.4982 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004411/0.8356, allocations: 177.7 kB / 0.6723 GB, free: 6.84 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.001047/0.8366, allocations: 1.23 MB / 0.6735 GB, free: 5.668 MB / 0.4982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006852/0.8373, allocations: 270.9 kB / 0.6738 GB, free: 5.527 MB / 0.4982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002358/0.8376, allocations: 116.2 kB / 0.6739 GB, free: 5.469 MB / 0.4982 GB Notification: Performance of preOpt evalFunc (simulation): time 2.245e-05/0.8376, allocations: 5.625 kB / 0.6739 GB, free: 5.465 MB / 0.4982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003015/0.8379, allocations: 166.3 kB / 0.674 GB, free: 5.352 MB / 0.4982 GB Notification: Performance of pre-optimization done (n=28): time 1.623e-06/0.8379, allocations: 1.312 kB / 0.674 GB, free: 5.352 MB / 0.4982 GB Notification: Performance of matching and sorting (n=28): time 0.0007871/0.8387, allocations: 366.7 kB / 0.6744 GB, free: 5.168 MB / 0.4982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.432e-05/0.8388, allocations: 54.19 kB / 0.6744 GB, free: 5.105 MB / 0.4982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001718/0.8389, allocations: 232.9 kB / 0.6747 GB, free: 4.938 MB / 0.4982 GB Notification: Performance of collectPreVariables (initialization): time 2.203e-05/0.839, allocations: 42.03 kB / 0.6747 GB, free: 4.895 MB / 0.4982 GB Notification: Performance of collectInitialEqns (initialization): time 6.072e-05/0.839, allocations: 161.7 kB / 0.6749 GB, free: 4.746 MB / 0.4982 GB Notification: Performance of collectInitialBindings (initialization): time 4.331e-05/0.8391, allocations: 81.7 kB / 0.6749 GB, free: 4.676 MB / 0.4982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.187e-05/0.8392, allocations: 65.59 kB / 0.675 GB, free: 4.629 MB / 0.4982 GB Notification: Performance of setup shared object (initialization): time 4.613e-05/0.8392, allocations: 341.5 kB / 0.6753 GB, free: 4.293 MB / 0.4982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002299/0.8394, allocations: 112.7 kB / 0.6754 GB, free: 4.234 MB / 0.4982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002345/0.8397, allocations: 166 kB / 0.6756 GB, free: 4.105 MB / 0.4982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001087/0.8408, allocations: 495.3 kB / 0.6761 GB, free: 3.816 MB / 0.4982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.8408, allocations: 1.094 kB / 0.6761 GB, free: 3.816 MB / 0.4982 GB Notification: Performance of matching and sorting (n=41) (initialization): time 0.000559/0.8414, allocations: 339.9 kB / 0.6764 GB, free: 3.641 MB / 0.4982 GB Notification: Performance of prepare postOptimizeDAE: time 1.301e-05/0.8414, allocations: 9.562 kB / 0.6764 GB, free: 3.637 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.049e-05/0.8414, allocations: 6.234 kB / 0.6764 GB, free: 3.633 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.401e-05/0.8414, allocations: 8.312 kB / 0.6764 GB, free: 3.629 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002358/0.8416, allocations: 57.34 kB / 0.6765 GB, free: 3.617 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.975e-06/0.8417, allocations: 4.469 kB / 0.6765 GB, free: 3.617 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001576/0.8418, allocations: 38.8 kB / 0.6765 GB, free: 3.59 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.737e-05/0.8419, allocations: 8.594 kB / 0.6765 GB, free: 3.59 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.0001431/0.842, allocations: 166.4 kB / 0.6767 GB, free: 3.438 MB / 0.4982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.252e-05/0.842, allocations: 21.81 kB / 0.6767 GB, free: 3.426 MB / 0.4982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00058/0.8426, allocations: 300.7 kB / 0.677 GB, free: 3.254 MB / 0.4982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.817e-06/0.8426, allocations: 3.156 kB / 0.677 GB, free: 3.254 MB / 0.4982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.878e-06/0.8426, allocations: 0 / 0.677 GB, free: 3.254 MB / 0.4982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.45e-06/0.8427, allocations: 5.047 kB / 0.677 GB, free: 3.25 MB / 0.4982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009399/0.8436, allocations: 0.7407 MB / 0.6777 GB, free: 2.664 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.8436, allocations: 1.375 kB / 0.6777 GB, free: 2.664 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002139/0.8438, allocations: 48.91 kB / 0.6778 GB, free: 2.648 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.506e-06/0.8438, allocations: 5.359 kB / 0.6778 GB, free: 2.645 MB / 0.4982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.711e-05/0.8439, allocations: 2.781 kB / 0.6778 GB, free: 2.645 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.8439, allocations: 5.375 kB / 0.6778 GB, free: 2.641 MB / 0.4982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.8439, allocations: 0 / 0.6778 GB, free: 2.641 MB / 0.4982 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000814/0.8447, allocations: 0.4942 MB / 0.6783 GB, free: 2.32 MB / 0.4982 GB Notification: Performance of postOpt removeConstants (simulation): time 7.012e-05/0.8448, allocations: 130.2 kB / 0.6784 GB, free: 2.184 MB / 0.4982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.153e-05/0.8448, allocations: 13.09 kB / 0.6784 GB, free: 2.176 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000179/0.845, allocations: 15.48 kB / 0.6784 GB, free: 2.168 MB / 0.4982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.683e-05/0.8451, allocations: 25.8 kB / 0.6784 GB, free: 2.152 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.88e-05/0.8451, allocations: 5.594 kB / 0.6784 GB, free: 2.152 MB / 0.4982 GB Notification: Performance of sorting global known variables: time 0.0001128/0.8452, allocations: 171.8 kB / 0.6786 GB, free: 2.031 MB / 0.4982 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8452, allocations: 0 / 0.6786 GB, free: 2.031 MB / 0.4982 GB Notification: Performance of remove unused functions: time 0.000301/0.8455, allocations: 67.81 kB / 0.6787 GB, free: 2.016 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.0009501/0.8465, allocations: 1.052 MB / 0.6797 GB, free: 1.16 MB / 0.4982 GB Notification: Performance of simCode: created initialization part: time 0.0005843/0.8471, allocations: 305 kB / 0.68 GB, free: 1.008 MB / 0.4982 GB Notification: Performance of simCode: created event and clocks part: time 1.453e-06/0.8471, allocations: 0 / 0.68 GB, free: 1.008 MB / 0.4982 GB Notification: Performance of simCode: created simulation system equations: time 0.0002475/0.8473, allocations: 130.9 kB / 0.6801 GB, free: 0.9531 MB / 0.4982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004293/0.8478, allocations: 74.53 kB / 0.6802 GB, free: 0.9141 MB / 0.4982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003114/0.8509, allocations: 2.881 MB / 0.683 GB, free: 14.73 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002653/0.8512, allocations: 0.7649 MB / 0.6837 GB, free: 14 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.0001131/0.8513, allocations: 32.55 kB / 0.6838 GB, free: 13.98 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001085/0.8514, allocations: 85.97 kB / 0.6839 GB, free: 13.91 MB / 0.5138 GB Notification: Performance of SimCode: time 2.51e-07/0.8514, allocations: 0 / 0.6839 GB, free: 13.91 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02141/0.8728, allocations: 6 MB / 0.6897 GB, free: 10.94 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.541/7.414, allocations: 19.78 kB / 0.6897 GB, free: 10.92 MB / 0.5138 GB (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 & python3 -m fmpy simulate --output-file BuildSysPro_BuildSysPro.Systems.DHW.Examples.DHWResistiveWaterHeater_res.csv --start-time 0 --stop-time 864000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 3600 BuildSysPro_BuildSysPro_Systems_DHW_Examples_DHWResistiveWaterHeater.fmu > BuildSysPro_BuildSysPro.Systems.DHW.Examples.DHWResistiveWaterHeater.pipe 2>&1)