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.001386/0.001387, allocations: 105.5 kB / 16.27 MB, free: 6.414 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.001227/0.001228, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.383/1.383, allocations: 222.9 MB / 240.9 MB, free: 15.23 MB / 206.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.8698/0.8698, allocations: 143.1 MB / 434.1 MB, free: 12.05 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001566/0.001566, allocations: 63.88 kB / 0.5148 GB, free: 15.19 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3894/0.391, allocations: 82.04 MB / 0.5949 GB, free: 16.2 MB / 446.1 MB [/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.3856/0.7766, allocations: 75.82 MB / 0.669 GB, free: 6.074 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001561/0.7782, allocations: 0.8648 MB / 0.6698 GB, free: 5.203 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002232/0.7784, allocations: 4 kB / 0.6698 GB, free: 5.199 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001904/0.7786, allocations: 35.53 kB / 0.6698 GB, free: 5.164 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0003579/0.779, allocations: 95.25 kB / 0.6699 GB, free: 5.07 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004184/0.7794, allocations: 139.7 kB / 0.6701 GB, free: 4.934 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0003775/0.7798, allocations: 319.2 kB / 0.6704 GB, free: 4.617 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002223/0.78, allocations: 111.9 kB / 0.6705 GB, free: 4.504 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002273/0.7803, allocations: 123.5 kB / 0.6706 GB, free: 4.383 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001924/0.7805, allocations: 135.4 kB / 0.6707 GB, free: 4.25 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 5.786e-05/0.7806, allocations: 28 kB / 0.6707 GB, free: 4.223 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00018/0.7807, allocations: 71.95 kB / 0.6708 GB, free: 4.152 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001165/0.7809, allocations: 75.69 kB / 0.6709 GB, free: 4.078 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001618/0.781, allocations: 151.3 kB / 0.671 GB, free: 3.93 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003854/0.7814, allocations: 366.8 kB / 0.6714 GB, free: 3.57 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.7814, allocations: 0 / 0.6714 GB, free: 3.57 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.143e-06/0.7814, allocations: 0 / 0.6714 GB, free: 3.57 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.056e-05/0.7815, allocations: 0 / 0.6714 GB, free: 3.57 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: 58 * Number of variables: 58 Notification: Performance of Generate backend data structure: time 0.001127/0.7826, allocations: 0.6118 MB / 0.672 GB, free: 2.91 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.287e-05/0.7826, allocations: 8.031 kB / 0.672 GB, free: 2.902 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001407/0.7828, allocations: 40.56 kB / 0.672 GB, free: 2.863 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003235/0.7831, allocations: 271.7 kB / 0.6723 GB, free: 2.559 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.839e-05/0.7831, allocations: 20.94 kB / 0.6723 GB, free: 2.539 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.042e-05/0.7832, allocations: 28.38 kB / 0.6723 GB, free: 2.512 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005601/0.7838, allocations: 280.5 kB / 0.6726 GB, free: 2.227 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.372e-05/0.7838, allocations: 0 / 0.6726 GB, free: 2.227 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.572e-05/0.7838, allocations: 8 kB / 0.6726 GB, free: 2.219 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.224e-06/0.7838, allocations: 4 kB / 0.6726 GB, free: 2.215 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005226/0.7844, allocations: 193.7 kB / 0.6728 GB, free: 2.02 MB / 0.4981 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.001522/0.7859, allocations: 1.225 MB / 0.674 GB, free: 0.668 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007924/0.7867, allocations: 262.9 kB / 0.6742 GB, free: 412 kB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002711/0.787, allocations: 120.8 kB / 0.6744 GB, free: 288 kB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.861e-05/0.787, allocations: 3.984 kB / 0.6744 GB, free: 284 kB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003848/0.7874, allocations: 171.9 kB / 0.6745 GB, free: 100 kB / 0.4981 GB Notification: Performance of pre-optimization done (n=28): time 1.693e-06/0.7874, allocations: 3.938 kB / 0.6745 GB, free: 96 kB / 0.4981 GB Notification: Performance of matching and sorting (n=28): time 0.0009253/0.7884, allocations: 360.4 kB / 0.6749 GB, free: 15.74 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.281e-05/0.7884, allocations: 55.41 kB / 0.6749 GB, free: 15.67 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002313/0.7886, allocations: 241.5 kB / 0.6752 GB, free: 15.43 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 2.871e-05/0.7887, allocations: 33.7 kB / 0.6752 GB, free: 15.39 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.000101/0.7888, allocations: 160.5 kB / 0.6753 GB, free: 15.23 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 6.519e-05/0.7889, allocations: 86.75 kB / 0.6754 GB, free: 15.14 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.613e-05/0.789, allocations: 69.59 kB / 0.6755 GB, free: 15.07 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001269/0.7891, allocations: 330.8 kB / 0.6758 GB, free: 14.73 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002707/0.7894, allocations: 120.7 kB / 0.6759 GB, free: 14.61 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002715/0.7897, allocations: 171.4 kB / 0.6761 GB, free: 14.42 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001265/0.7909, allocations: 487.3 kB / 0.6765 GB, free: 13.91 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.7909, allocations: 0 / 0.6765 GB, free: 13.91 MB / 0.5137 GB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0006667/0.7916, allocations: 345.1 kB / 0.6769 GB, free: 13.57 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.481e-05/0.7916, allocations: 4 kB / 0.6769 GB, free: 13.57 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.221e-05/0.7917, allocations: 4 kB / 0.6769 GB, free: 13.56 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.647e-05/0.7917, allocations: 7.938 kB / 0.6769 GB, free: 13.55 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002646/0.7919, allocations: 64.11 kB / 0.677 GB, free: 13.49 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.266e-05/0.792, allocations: 15.92 kB / 0.677 GB, free: 13.48 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001871/0.7922, allocations: 35.67 kB / 0.677 GB, free: 13.44 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.14e-05/0.7922, allocations: 12 kB / 0.677 GB, free: 13.43 MB / 0.5137 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.0002038/0.7924, allocations: 164.1 kB / 0.6772 GB, free: 13.26 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.691e-05/0.7924, allocations: 23.66 kB / 0.6772 GB, free: 13.23 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006568/0.7931, allocations: 300 kB / 0.6775 GB, free: 12.93 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.71e-06/0.7931, allocations: 3.938 kB / 0.6775 GB, free: 12.93 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.568e-06/0.7931, allocations: 0 / 0.6775 GB, free: 12.93 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-06/0.7931, allocations: 4 kB / 0.6775 GB, free: 12.93 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001201/0.7944, allocations: 0.7447 MB / 0.6782 GB, free: 12.12 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/0.7944, allocations: 3.984 kB / 0.6782 GB, free: 12.12 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002419/0.7946, allocations: 39.97 kB / 0.6783 GB, free: 12.08 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.765e-06/0.7946, allocations: 0 / 0.6783 GB, free: 12.08 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.333e-05/0.7947, allocations: 8 kB / 0.6783 GB, free: 12.07 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.7947, allocations: 0 / 0.6783 GB, free: 12.07 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.7947, allocations: 4 kB / 0.6783 GB, free: 12.07 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009976/0.7957, allocations: 0.5042 MB / 0.6788 GB, free: 11.54 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001136/0.7958, allocations: 116.8 kB / 0.6789 GB, free: 11.41 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.721e-05/0.7959, allocations: 12 kB / 0.6789 GB, free: 11.39 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001994/0.7961, allocations: 19.97 kB / 0.6789 GB, free: 11.38 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.871e-05/0.7961, allocations: 23.92 kB / 0.6789 GB, free: 11.35 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.329e-05/0.7962, allocations: 11.98 kB / 0.6789 GB, free: 11.34 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0001587/0.7963, allocations: 172.5 kB / 0.6791 GB, free: 11.17 MB / 0.5137 GB Notification: Performance of sort global known variables: time 4.81e-07/0.7963, allocations: 0 / 0.6791 GB, free: 11.17 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0003429/0.7967, allocations: 67.84 kB / 0.6792 GB, free: 11.11 MB / 0.5137 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.0001669/0.7969, allocations: 119.2 kB / 0.6793 GB, free: 10.98 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0006959/0.7976, allocations: 304.9 kB / 0.6796 GB, free: 10.68 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.7976, allocations: 0 / 0.6796 GB, free: 10.68 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0002869/0.7979, allocations: 119.9 kB / 0.6797 GB, free: 10.56 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004924/0.7984, allocations: 72.88 kB / 0.6798 GB, free: 10.49 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00123/0.7996, allocations: 0.6872 MB / 0.6804 GB, free: 9.773 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003378/0.8, allocations: 0.7636 MB / 0.6812 GB, free: 8.98 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.096e-05/0.8, allocations: 31.38 kB / 0.6812 GB, free: 8.949 MB / 0.5137 GB Notification: Performance of SimCode: time 3.71e-07/0.8, allocations: 0 / 0.6812 GB, free: 8.949 MB / 0.5137 GB Notification: Performance of Templates: time 0.006/0.806, allocations: 3.603 MB / 0.6847 GB, free: 5.363 MB / 0.5137 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)