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.0009011/0.0009008, allocations: 92.16 kB / 16.02 MB, free: 80 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.001224/0.001225, allocations: 183.7 kB / 16.92 MB, free: 6.922 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.466/1.466, allocations: 223.3 MB / 241 MB, free: 5.328 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.08/1.08, allocations: 143.2 MB / 435.3 MB, free: 13.64 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003806/0.0003803, allocations: 11.98 kB / 0.517 GB, free: 11.16 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2107/0.2111, allocations: 83.41 MB / 0.5985 GB, free: 7.719 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. Notification: Automatically loaded package Modelica_LinearSystems2 2.4.1 due to usage. Notification: Performance of NFInst.instantiate(BuildSysPro.Systems.DHW.Examples.DHWResistiveWaterHeater): time 1.021/1.232, allocations: 75.8 MB / 0.6725 GB, free: 8.691 MB / 0.4982 GB Notification: Performance of NFInst.instExpressions: time 0.001377/1.234, allocations: 0.8527 MB / 0.6733 GB, free: 8.012 MB / 0.4982 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001554/1.234, allocations: 12.81 kB / 0.6734 GB, free: 8.004 MB / 0.4982 GB Notification: Performance of NFTyping.typeComponents: time 0.0001697/1.234, allocations: 26.83 kB / 0.6734 GB, free: 7.98 MB / 0.4982 GB Notification: Performance of NFTyping.typeBindings: time 0.0002751/1.234, allocations: 75.55 kB / 0.6735 GB, free: 7.918 MB / 0.4982 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003493/1.235, allocations: 134.2 kB / 0.6736 GB, free: 7.816 MB / 0.4982 GB Notification: Performance of NFFlatten.flatten: time 0.0002965/1.235, allocations: 291.3 kB / 0.6739 GB, free: 7.648 MB / 0.4982 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002119/1.235, allocations: 105.2 kB / 0.674 GB, free: 7.586 MB / 0.4982 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001763/1.235, allocations: 99.27 kB / 0.6741 GB, free: 7.531 MB / 0.4982 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001459/1.236, allocations: 119.7 kB / 0.6742 GB, free: 7.449 MB / 0.4982 GB Notification: Performance of NFPackage.collectConstants: time 3.373e-05/1.236, allocations: 11.88 kB / 0.6742 GB, free: 7.449 MB / 0.4982 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001481/1.236, allocations: 48.22 kB / 0.6742 GB, free: 7.434 MB / 0.4982 GB Notification: Performance of NFScalarize.scalarize: time 9.647e-05/1.236, allocations: 53.97 kB / 0.6743 GB, free: 7.395 MB / 0.4982 GB Notification: Performance of NFVerifyModel.verify: time 0.0001376/1.236, allocations: 160.7 kB / 0.6744 GB, free: 7.27 MB / 0.4982 GB Notification: Performance of NFConvertDAE.convert: time 0.0002603/1.236, allocations: 262.2 kB / 0.6747 GB, free: 7.082 MB / 0.4982 GB Notification: Performance of FrontEnd - DAE generated: time 6.132e-06/1.236, allocations: 5.266 kB / 0.6747 GB, free: 7.078 MB / 0.4982 GB Notification: Performance of FrontEnd: time 1.753e-06/1.236, allocations: 0 / 0.6747 GB, free: 7.078 MB / 0.4982 GB Notification: Performance of Transformations before backend: time 6.172e-06/1.236, allocations: 0 / 0.6747 GB, free: 7.078 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.000947/1.237, allocations: 0.5621 MB / 0.6752 GB, free: 6.57 MB / 0.4982 GB Notification: Performance of prepare preOptimizeDAE: time 4.016e-05/1.237, allocations: 9.438 kB / 0.6752 GB, free: 6.57 MB / 0.4982 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001324/1.237, allocations: 33.88 kB / 0.6753 GB, free: 6.555 MB / 0.4982 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002771/1.238, allocations: 288.5 kB / 0.6756 GB, free: 6.266 MB / 0.4982 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.539e-05/1.238, allocations: 19.66 kB / 0.6756 GB, free: 6.258 MB / 0.4982 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.35e-05/1.238, allocations: 25.34 kB / 0.6756 GB, free: 6.25 MB / 0.4982 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005694/1.238, allocations: 291.8 kB / 0.6759 GB, free: 6.055 MB / 0.4982 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.568e-05/1.238, allocations: 0 / 0.6759 GB, free: 6.055 MB / 0.4982 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.502e-05/1.238, allocations: 6.656 kB / 0.6759 GB, free: 6.051 MB / 0.4982 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.498e-06/1.238, allocations: 6 kB / 0.6759 GB, free: 6.051 MB / 0.4982 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005309/1.239, allocations: 202.6 kB / 0.6761 GB, free: 5.957 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.00133/1.24, allocations: 1.219 MB / 0.6773 GB, free: 4.797 MB / 0.4982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008545/1.241, allocations: 290.5 kB / 0.6775 GB, free: 4.656 MB / 0.4982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002974/1.242, allocations: 125 kB / 0.6777 GB, free: 4.594 MB / 0.4982 GB Notification: Performance of preOpt evalFunc (simulation): time 3.313e-05/1.242, allocations: 2.812 kB / 0.6777 GB, free: 4.594 MB / 0.4982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003942/1.242, allocations: 181.4 kB / 0.6778 GB, free: 4.469 MB / 0.4982 GB Notification: Performance of pre-optimization done (n=28): time 1.663e-06/1.242, allocations: 0 / 0.6778 GB, free: 4.469 MB / 0.4982 GB Notification: Performance of matching and sorting (n=28): time 0.001029/1.243, allocations: 390 kB / 0.6782 GB, free: 4.285 MB / 0.4982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.389e-05/1.243, allocations: 58.48 kB / 0.6783 GB, free: 4.219 MB / 0.4982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002637/1.243, allocations: 233 kB / 0.6785 GB, free: 4.051 MB / 0.4982 GB Notification: Performance of collectPreVariables (initialization): time 2.939e-05/1.243, allocations: 33.89 kB / 0.6785 GB, free: 4.016 MB / 0.4982 GB Notification: Performance of collectInitialEqns (initialization): time 9.75e-05/1.243, allocations: 170 kB / 0.6787 GB, free: 3.859 MB / 0.4982 GB Notification: Performance of collectInitialBindings (initialization): time 6.006e-05/1.244, allocations: 78.2 kB / 0.6788 GB, free: 3.793 MB / 0.4982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.18e-05/1.244, allocations: 41.94 kB / 0.6788 GB, free: 3.758 MB / 0.4982 GB Notification: Performance of setup shared object (initialization): time 8.268e-05/1.244, allocations: 341.1 kB / 0.6791 GB, free: 3.422 MB / 0.4982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002823/1.244, allocations: 118 kB / 0.6792 GB, free: 3.363 MB / 0.4982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003108/1.244, allocations: 176.9 kB / 0.6794 GB, free: 3.23 MB / 0.4982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001376/1.246, allocations: 0.509 MB / 0.6799 GB, free: 2.941 MB / 0.4982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/1.246, allocations: 3.938 kB / 0.6799 GB, free: 2.938 MB / 0.4982 GB Notification: Performance of matching and sorting (n=41) (initialization): time 0.000702/1.246, allocations: 348 kB / 0.6802 GB, free: 2.766 MB / 0.4982 GB Notification: Performance of prepare postOptimizeDAE: time 2.027e-05/1.246, allocations: 6.281 kB / 0.6802 GB, free: 2.766 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.73e-05/1.246, allocations: 6.484 kB / 0.6803 GB, free: 2.762 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.932e-05/1.246, allocations: 7.469 kB / 0.6803 GB, free: 2.758 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002692/1.247, allocations: 65.91 kB / 0.6803 GB, free: 2.742 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.317e-06/1.247, allocations: 2.406 kB / 0.6803 GB, free: 2.742 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000214/1.247, allocations: 43.47 kB / 0.6804 GB, free: 2.715 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.515e-05/1.247, allocations: 13.66 kB / 0.6804 GB, free: 2.711 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.0001956/1.247, allocations: 162.3 kB / 0.6805 GB, free: 2.562 MB / 0.4982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.75e-05/1.247, allocations: 30.45 kB / 0.6806 GB, free: 2.543 MB / 0.4982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006912/1.248, allocations: 306.5 kB / 0.6809 GB, free: 2.379 MB / 0.4982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.362e-06/1.248, allocations: 10.47 kB / 0.6809 GB, free: 2.371 MB / 0.4982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.099e-06/1.248, allocations: 3.984 kB / 0.6809 GB, free: 2.367 MB / 0.4982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/1.248, allocations: 0.9688 kB / 0.6809 GB, free: 2.367 MB / 0.4982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001201/1.249, allocations: 0.7563 MB / 0.6816 GB, free: 1.785 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/1.249, allocations: 3.984 kB / 0.6816 GB, free: 1.781 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002384/1.249, allocations: 47.97 kB / 0.6817 GB, free: 1.77 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.857e-06/1.249, allocations: 1.219 kB / 0.6817 GB, free: 1.77 MB / 0.4982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.209e-05/1.25, allocations: 11.5 kB / 0.6817 GB, free: 1.762 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.457e-06/1.25, allocations: 5.234 kB / 0.6817 GB, free: 1.758 MB / 0.4982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.434e-06/1.25, allocations: 0 / 0.6817 GB, free: 1.758 MB / 0.4982 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009403/1.25, allocations: 0.528 MB / 0.6822 GB, free: 1.422 MB / 0.4982 GB Notification: Performance of postOpt removeConstants (simulation): time 8.121e-05/1.251, allocations: 123.2 kB / 0.6823 GB, free: 1.293 MB / 0.4982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.585e-05/1.251, allocations: 9.031 kB / 0.6823 GB, free: 1.289 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000204/1.251, allocations: 28.06 kB / 0.6823 GB, free: 1.273 MB / 0.4982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.309e-05/1.251, allocations: 12.52 kB / 0.6824 GB, free: 1.27 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.722e-05/1.251, allocations: 18.14 kB / 0.6824 GB, free: 1.258 MB / 0.4982 GB Notification: Performance of sorting global known variables: time 0.0001435/1.251, allocations: 171.7 kB / 0.6825 GB, free: 1.137 MB / 0.4982 GB Notification: Performance of sort global known variables: time 1.4e-07/1.251, allocations: 0 / 0.6825 GB, free: 1.137 MB / 0.4982 GB Notification: Performance of remove unused functions: time 0.0003851/1.251, allocations: 68.19 kB / 0.6826 GB, free: 1.121 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.000174/1.252, allocations: 122.1 kB / 0.6827 GB, free: 1.02 MB / 0.4982 GB Notification: Performance of simCode: created initialization part: time 0.0007018/1.252, allocations: 294.1 kB / 0.683 GB, free: 0.8828 MB / 0.4982 GB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/1.252, allocations: 4 kB / 0.683 GB, free: 0.8789 MB / 0.4982 GB Notification: Performance of simCode: created simulation system equations: time 0.0003159/1.253, allocations: 135.6 kB / 0.6831 GB, free: 0.8242 MB / 0.4982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005463/1.253, allocations: 66.52 kB / 0.6832 GB, free: 0.793 MB / 0.4982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00124/1.255, allocations: 0.8354 MB / 0.684 GB, free: 164 kB / 0.4982 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003761/1.255, allocations: 0.7662 MB / 0.6848 GB, free: 15.43 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.924e-05/1.255, allocations: 22.44 kB / 0.6848 GB, free: 15.42 MB / 0.5138 GB Notification: Performance of SimCode: time 4.21e-07/1.255, allocations: 1.469 kB / 0.6848 GB, free: 15.42 MB / 0.5138 GB Notification: Performance of Templates: time 0.005858/1.261, allocations: 3.554 MB / 0.6883 GB, free: 13.59 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)