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.004404/0.004404, allocations: 103.1 kB / 15.73 MB, free: 6.047 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.001048/0.001048, allocations: 193.5 kB / 16.67 MB, free: 5.969 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.248/1.248, allocations: 222.9 MB / 240.4 MB, free: 15.14 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.8197/0.8197, allocations: 143.1 MB / 433.6 MB, free: 11.97 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001131/0.001131, allocations: 64.41 kB / 0.5955 GB, free: 12.3 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1718/0.173, allocations: 82.04 MB / 0.6756 GB, free: 10.36 MB / 0.5137 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.4032/0.5763, allocations: 75.8 MB / 0.7496 GB, free: 44 kB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.3885/0.9647, allocations: 0.8626 MB / 0.7505 GB, free: 22.71 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002715/0.9651, allocations: 4.25 kB / 0.7505 GB, free: 22.71 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0002268/0.9653, allocations: 39.69 kB / 0.7505 GB, free: 22.71 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.000428/0.9657, allocations: 87.06 kB / 0.7506 GB, free: 22.71 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005485/0.9663, allocations: 142.2 kB / 0.7507 GB, free: 22.71 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.000503/0.9668, allocations: 317.9 kB / 0.751 GB, free: 22.7 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002694/0.9671, allocations: 118.5 kB / 0.7511 GB, free: 22.7 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003154/0.9674, allocations: 126.8 kB / 0.7513 GB, free: 22.67 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002017/0.9676, allocations: 135.2 kB / 0.7514 GB, free: 22.64 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 5.736e-05/0.9677, allocations: 29.78 kB / 0.7514 GB, free: 22.64 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002068/0.9679, allocations: 64.95 kB / 0.7515 GB, free: 22.64 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001245/0.968, allocations: 82.05 kB / 0.7516 GB, free: 22.63 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0001771/0.9682, allocations: 146.5 kB / 0.7517 GB, free: 22.59 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0004932/0.9687, allocations: 371 kB / 0.752 GB, free: 22.54 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.9687, allocations: 0.7812 kB / 0.752 GB, free: 22.54 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.452e-06/0.9687, allocations: 1.312 kB / 0.752 GB, free: 22.54 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 6.582e-06/0.9688, allocations: 1.188 kB / 0.752 GB, free: 22.54 MB / 0.5762 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.001008/0.9698, allocations: 0.6089 MB / 0.7526 GB, free: 22.1 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 5.734e-05/0.9698, allocations: 10.72 kB / 0.7527 GB, free: 22.1 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001284/0.97, allocations: 33.41 kB / 0.7527 GB, free: 22.08 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003077/0.9703, allocations: 281.7 kB / 0.753 GB, free: 21.86 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.803e-05/0.9703, allocations: 19.8 kB / 0.753 GB, free: 21.86 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.062e-05/0.9704, allocations: 29.2 kB / 0.753 GB, free: 21.86 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005194/0.9709, allocations: 278.2 kB / 0.7533 GB, free: 21.79 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.571e-05/0.9709, allocations: 4.969 kB / 0.7533 GB, free: 21.79 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.606e-05/0.971, allocations: 10.94 kB / 0.7533 GB, free: 21.79 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.225e-05/0.971, allocations: 6.219 kB / 0.7533 GB, free: 21.79 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004806/0.9715, allocations: 185.5 kB / 0.7535 GB, free: 21.79 MB / 0.5762 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.001518/0.973, allocations: 1.222 MB / 0.7547 GB, free: 20.98 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008244/0.9738, allocations: 272.3 kB / 0.7549 GB, free: 20.95 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002719/0.9741, allocations: 117.1 kB / 0.755 GB, free: 20.95 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 3.184e-05/0.9741, allocations: 1.75 kB / 0.755 GB, free: 20.95 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003534/0.9745, allocations: 165.9 kB / 0.7552 GB, free: 20.9 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=28): time 2.404e-06/0.9745, allocations: 1.281 kB / 0.7552 GB, free: 20.9 MB / 0.5762 GB Notification: Performance of matching and sorting (n=28): time 0.0009239/0.9754, allocations: 366 kB / 0.7555 GB, free: 20.84 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.741e-05/0.9755, allocations: 54.7 kB / 0.7556 GB, free: 20.78 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002442/0.9758, allocations: 233.3 kB / 0.7558 GB, free: 20.68 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.809e-05/0.9758, allocations: 37.45 kB / 0.7558 GB, free: 20.65 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001006/0.9759, allocations: 157.5 kB / 0.756 GB, free: 20.54 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 7.008e-05/0.976, allocations: 93.25 kB / 0.7561 GB, free: 20.48 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.573e-05/0.9761, allocations: 65.28 kB / 0.7562 GB, free: 20.47 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 7.863e-05/0.9762, allocations: 340.4 kB / 0.7565 GB, free: 20.16 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002686/0.9764, allocations: 112.5 kB / 0.7566 GB, free: 20.15 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002822/0.9767, allocations: 169.1 kB / 0.7567 GB, free: 20.08 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001272/0.978, allocations: 483.7 kB / 0.7572 GB, free: 20 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.978, allocations: 3.281 kB / 0.7572 GB, free: 20 MB / 0.5762 GB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0006706/0.9787, allocations: 345.9 kB / 0.7575 GB, free: 19.95 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.408e-05/0.9787, allocations: 9.375 kB / 0.7575 GB, free: 19.95 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.392e-05/0.9788, allocations: 2.688 kB / 0.7575 GB, free: 19.95 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.135e-05/0.9788, allocations: 7.641 kB / 0.7576 GB, free: 19.95 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002735/0.9791, allocations: 63.53 kB / 0.7576 GB, free: 19.95 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.308e-05/0.9791, allocations: 4.922 kB / 0.7576 GB, free: 19.95 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001939/0.9793, allocations: 32.81 kB / 0.7577 GB, free: 19.93 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.609e-05/0.9793, allocations: 13.92 kB / 0.7577 GB, free: 19.93 MB / 0.5762 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.0002015/0.9795, allocations: 172.1 kB / 0.7578 GB, free: 19.81 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.795e-05/0.9796, allocations: 23.38 kB / 0.7579 GB, free: 19.8 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006881/0.9803, allocations: 291.8 kB / 0.7581 GB, free: 19.77 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.672e-06/0.9803, allocations: 6.156 kB / 0.7581 GB, free: 19.76 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-06/0.9803, allocations: 1.516 kB / 0.7581 GB, free: 19.76 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.551e-06/0.9803, allocations: 1.344 kB / 0.7581 GB, free: 19.76 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001246/0.9815, allocations: 0.7458 MB / 0.7589 GB, free: 19.44 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.9816, allocations: 0 / 0.7589 GB, free: 19.44 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002603/0.9818, allocations: 47.84 kB / 0.7589 GB, free: 19.44 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.368e-06/0.9818, allocations: 1.938 kB / 0.7589 GB, free: 19.44 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.535e-05/0.9819, allocations: 7.578 kB / 0.7589 GB, free: 19.44 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.268e-06/0.9819, allocations: 2.547 kB / 0.7589 GB, free: 19.44 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.678e-06/0.9819, allocations: 1.375 kB / 0.7589 GB, free: 19.44 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009501/0.9828, allocations: 0.5013 MB / 0.7594 GB, free: 19.27 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001005/0.983, allocations: 120.2 kB / 0.7595 GB, free: 19.16 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.988e-05/0.983, allocations: 14.3 kB / 0.7595 GB, free: 19.16 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001898/0.9832, allocations: 12.86 kB / 0.7596 GB, free: 19.16 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.183e-05/0.9833, allocations: 19.88 kB / 0.7596 GB, free: 19.16 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.637e-05/0.9833, allocations: 11.53 kB / 0.7596 GB, free: 19.16 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001737/0.9835, allocations: 172.4 kB / 0.7598 GB, free: 19.08 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.2e-07/0.9835, allocations: 1.125 kB / 0.7598 GB, free: 19.08 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0004255/0.9839, allocations: 69.03 kB / 0.7598 GB, free: 19.07 MB / 0.5762 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.0001943/0.9841, allocations: 120.8 kB / 0.7599 GB, free: 18.98 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0006821/0.9848, allocations: 296.3 kB / 0.7602 GB, free: 18.95 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.9848, allocations: 0 / 0.7602 GB, free: 18.95 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002895/0.9851, allocations: 126.4 kB / 0.7603 GB, free: 18.95 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004963/0.9856, allocations: 65.97 kB / 0.7604 GB, free: 18.95 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001323/0.987, allocations: 0.6427 MB / 0.761 GB, free: 18.65 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002629/0.9873, allocations: 0.7708 MB / 0.7618 GB, free: 17.95 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001685/0.9874, allocations: 29.56 kB / 0.7618 GB, free: 17.95 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.832e-05/0.9875, allocations: 25.8 kB / 0.7618 GB, free: 17.94 MB / 0.5762 GB Notification: Performance of SimCode: time 3.01e-07/0.9875, allocations: 0 / 0.7618 GB, free: 17.94 MB / 0.5762 GB Notification: Performance of Templates: time 0.009664/0.9972, allocations: 3.648 MB / 0.7654 GB, free: 17.89 MB / 0.5762 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)