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.006501/0.006501, allocations: 96.88 kB / 15.73 MB, free: 6.055 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.001272/0.001273, allocations: 195.4 kB / 16.68 MB, free: 5.977 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.566/1.566, allocations: 222.9 MB / 240.4 MB, free: 4.301 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 1.203/1.203, allocations: 143 MB / 433.6 MB, free: 11.48 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001456/0.001456, allocations: 67.89 kB / 0.595 GB, free: 8.902 MB / 0.4981 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5805/0.582, allocations: 82.02 MB / 0.6751 GB, free: 1.098 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.5281/1.11, allocations: 75.89 MB / 0.7492 GB, free: 12.08 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.001885/1.112, allocations: 0.8687 MB / 0.7501 GB, free: 11.21 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003593/1.113, allocations: 4 kB / 0.7501 GB, free: 11.2 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0002248/1.113, allocations: 39.58 kB / 0.7501 GB, free: 11.16 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0004338/1.113, allocations: 99.27 kB / 0.7502 GB, free: 11.07 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004662/1.114, allocations: 143.7 kB / 0.7504 GB, free: 10.93 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0003392/1.114, allocations: 311.2 kB / 0.7507 GB, free: 10.62 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002192/1.114, allocations: 115.9 kB / 0.7508 GB, free: 10.51 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002834/1.115, allocations: 131.5 kB / 0.7509 GB, free: 10.38 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002164/1.115, allocations: 131.4 kB / 0.751 GB, free: 10.25 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 4.365e-05/1.115, allocations: 31.94 kB / 0.751 GB, free: 10.22 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001603/1.115, allocations: 63.97 kB / 0.7511 GB, free: 10.16 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001157/1.115, allocations: 79.73 kB / 0.7512 GB, free: 10.08 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0001541/1.115, allocations: 151.2 kB / 0.7513 GB, free: 9.93 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0004715/1.116, allocations: 370.5 kB / 0.7517 GB, free: 9.566 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/1.116, allocations: 0 / 0.7517 GB, free: 9.566 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.362e-06/1.116, allocations: 0 / 0.7517 GB, free: 9.566 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 8.626e-06/1.116, allocations: 0 / 0.7517 GB, free: 9.566 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.001228/1.117, allocations: 0.6233 MB / 0.7523 GB, free: 8.895 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.842e-05/1.117, allocations: 8.031 kB / 0.7523 GB, free: 8.887 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.052e-05/1.117, allocations: 62.72 kB / 0.7524 GB, free: 8.816 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001217/1.117, allocations: 40.75 kB / 0.7524 GB, free: 8.777 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004649/1.118, allocations: 267.8 kB / 0.7527 GB, free: 8.477 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.61e-05/1.118, allocations: 20.94 kB / 0.7527 GB, free: 8.457 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.596e-05/1.118, allocations: 32.3 kB / 0.7527 GB, free: 8.426 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005509/1.118, allocations: 276.4 kB / 0.753 GB, free: 8.145 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.734e-05/1.118, allocations: 4 kB / 0.753 GB, free: 8.141 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.496e-05/1.118, allocations: 12 kB / 0.753 GB, free: 8.129 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.718e-06/1.119, allocations: 12 kB / 0.753 GB, free: 8.117 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005007/1.119, allocations: 181.7 kB / 0.7532 GB, free: 7.938 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.001684/1.121, allocations: 1.229 MB / 0.7544 GB, free: 6.582 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000907/1.122, allocations: 270.9 kB / 0.7546 GB, free: 6.309 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002753/1.122, allocations: 116.7 kB / 0.7547 GB, free: 6.191 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 2.643e-05/1.122, allocations: 4 kB / 0.7547 GB, free: 6.188 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004428/1.122, allocations: 167.9 kB / 0.7549 GB, free: 6.012 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=28): time 2.024e-06/1.122, allocations: 4 kB / 0.7549 GB, free: 6.008 MB / 0.5762 GB Notification: Performance of matching and sorting (n=28): time 0.0009384/1.123, allocations: 359.8 kB / 0.7552 GB, free: 5.652 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.457e-05/1.123, allocations: 59.41 kB / 0.7553 GB, free: 5.582 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002387/1.124, allocations: 233.5 kB / 0.7555 GB, free: 5.344 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 3.625e-05/1.124, allocations: 37.69 kB / 0.7556 GB, free: 5.301 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001111/1.124, allocations: 160.8 kB / 0.7557 GB, free: 5.141 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 6.917e-05/1.124, allocations: 95.2 kB / 0.7558 GB, free: 5.047 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.098e-05/1.124, allocations: 65.69 kB / 0.7559 GB, free: 4.977 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001359/1.124, allocations: 334.8 kB / 0.7562 GB, free: 4.641 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003659/1.125, allocations: 121.4 kB / 0.7563 GB, free: 4.52 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002982/1.125, allocations: 171.5 kB / 0.7565 GB, free: 4.324 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001326/1.126, allocations: 484.4 kB / 0.7569 GB, free: 3.824 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.92e-05/1.126, allocations: 4 kB / 0.7569 GB, free: 3.82 MB / 0.5762 GB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0007362/1.127, allocations: 337.4 kB / 0.7573 GB, free: 3.484 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.016e-05/1.127, allocations: 11.12 kB / 0.7573 GB, free: 3.477 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.368e-05/1.127, allocations: 3.984 kB / 0.7573 GB, free: 3.473 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.105e-05/1.127, allocations: 7.938 kB / 0.7573 GB, free: 3.465 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002767/1.127, allocations: 63.91 kB / 0.7573 GB, free: 3.402 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.225e-05/1.127, allocations: 7.938 kB / 0.7573 GB, free: 3.395 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001932/1.128, allocations: 23.88 kB / 0.7574 GB, free: 3.371 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.689e-05/1.128, allocations: 16.06 kB / 0.7574 GB, free: 3.355 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.0002448/1.128, allocations: 172 kB / 0.7575 GB, free: 3.176 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.164e-05/1.128, allocations: 23.86 kB / 0.7576 GB, free: 3.152 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008181/1.129, allocations: 292 kB / 0.7579 GB, free: 2.859 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.211e-06/1.129, allocations: 4 kB / 0.7579 GB, free: 2.855 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.731e-06/1.129, allocations: 0 / 0.7579 GB, free: 2.855 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-06/1.129, allocations: 3.984 kB / 0.7579 GB, free: 2.852 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001367/1.13, allocations: 0.7491 MB / 0.7586 GB, free: 2.043 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.178e-06/1.13, allocations: 0 / 0.7586 GB, free: 2.043 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000332/1.13, allocations: 43.91 kB / 0.7586 GB, free: 2 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.294e-06/1.13, allocations: 7.984 kB / 0.7586 GB, free: 1.992 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.15e-05/1.131, allocations: 4 kB / 0.7586 GB, free: 1.988 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.865e-06/1.131, allocations: 8.031 kB / 0.7587 GB, free: 1.98 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/1.131, allocations: 0 / 0.7587 GB, free: 1.98 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009878/1.132, allocations: 0.4934 MB / 0.7591 GB, free: 1.465 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002448/1.132, allocations: 124.9 kB / 0.7593 GB, free: 1.324 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.116e-05/1.132, allocations: 12 kB / 0.7593 GB, free: 1.312 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001945/1.132, allocations: 11.98 kB / 0.7593 GB, free: 1.301 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.482e-05/1.132, allocations: 19.97 kB / 0.7593 GB, free: 1.281 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.532e-05/1.132, allocations: 12 kB / 0.7593 GB, free: 1.27 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001668/1.132, allocations: 172.5 kB / 0.7595 GB, free: 1.102 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.21e-07/1.132, allocations: 0 / 0.7595 GB, free: 1.102 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.000384/1.133, allocations: 71.84 kB / 0.7595 GB, free: 1.031 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.001506/1.134, allocations: 1.06 MB / 0.7606 GB, free: 15.95 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0007418/1.135, allocations: 289.5 kB / 0.7608 GB, free: 15.66 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 5.911e-06/1.135, allocations: 4 kB / 0.7609 GB, free: 15.65 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0002892/1.135, allocations: 123.8 kB / 0.761 GB, free: 15.53 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006346/1.136, allocations: 69.17 kB / 0.761 GB, free: 15.46 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004478/1.14, allocations: 2.887 MB / 0.7639 GB, free: 12.43 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004141/1.141, allocations: 0.7673 MB / 0.7646 GB, free: 11.64 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0001517/1.141, allocations: 42.19 kB / 0.7646 GB, free: 11.6 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002293/1.141, allocations: 83.41 kB / 0.7647 GB, free: 11.52 MB / 0.5919 GB Notification: Performance of SimCode: time 7.01e-07/1.141, allocations: 0 / 0.7647 GB, free: 11.52 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03032/1.172, allocations: 6.104 MB / 0.7707 GB, free: 5.547 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.981/9.153, allocations: 12.09 kB / 0.7707 GB, free: 5.535 MB / 0.5919 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)