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.007207/0.007207, allocations: 101.3 kB / 15.88 MB, free: 5.867 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.001844/0.001845, allocations: 192.3 kB / 16.79 MB, free: 5.809 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.378/1.378, allocations: 222.9 MB / 240.5 MB, free: 4.578 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.082/1.082, allocations: 143 MB / 433.7 MB, free: 11.52 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001284/0.001284, allocations: 59.91 kB / 0.5141 GB, free: 12.14 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.19/0.1913, allocations: 82.03 MB / 0.5942 GB, free: 10.08 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.8934/1.085, allocations: 75.58 MB / 0.6681 GB, free: 9.789 MB / 0.4982 GB Notification: Performance of NFInst.instExpressions: time 0.001814/1.087, allocations: 0.8798 MB / 0.6689 GB, free: 9.086 MB / 0.4982 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003537/1.087, allocations: 4.219 kB / 0.6689 GB, free: 9.086 MB / 0.4982 GB Notification: Performance of NFTyping.typeComponents: time 0.0002674/1.087, allocations: 26.44 kB / 0.6689 GB, free: 9.062 MB / 0.4982 GB Notification: Performance of NFTyping.typeBindings: time 0.0004706/1.088, allocations: 75.95 kB / 0.669 GB, free: 9 MB / 0.4982 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004553/1.088, allocations: 126.9 kB / 0.6691 GB, free: 8.906 MB / 0.4982 GB Notification: Performance of NFFlatten.flatten: time 0.0004445/1.089, allocations: 295.2 kB / 0.6694 GB, free: 8.734 MB / 0.4982 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000237/1.089, allocations: 110.1 kB / 0.6695 GB, free: 8.668 MB / 0.4982 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002991/1.089, allocations: 109.4 kB / 0.6696 GB, free: 8.605 MB / 0.4982 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002252/1.089, allocations: 132.2 kB / 0.6698 GB, free: 8.512 MB / 0.4982 GB Notification: Performance of NFPackage.collectConstants: time 5.843e-05/1.089, allocations: 16.62 kB / 0.6698 GB, free: 8.512 MB / 0.4982 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002097/1.09, allocations: 52.16 kB / 0.6698 GB, free: 8.496 MB / 0.4982 GB Notification: Performance of NFScalarize.scalarize: time 0.0001292/1.09, allocations: 63.27 kB / 0.6699 GB, free: 8.449 MB / 0.4982 GB Notification: Performance of NFVerifyModel.verify: time 0.0001967/1.09, allocations: 144.6 kB / 0.67 GB, free: 8.348 MB / 0.4982 GB Notification: Performance of NFConvertDAE.convert: time 0.000352/1.09, allocations: 270.1 kB / 0.6703 GB, free: 8.152 MB / 0.4982 GB Notification: Performance of FrontEnd - DAE generated: time 5.089e-06/1.09, allocations: 5.031 kB / 0.6703 GB, free: 8.148 MB / 0.4982 GB Notification: Performance of FrontEnd: time 1.182e-06/1.09, allocations: 0 / 0.6703 GB, free: 8.148 MB / 0.4982 GB Notification: Performance of Transformations before backend: time 1.411e-05/1.09, allocations: 0 / 0.6703 GB, free: 8.148 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.001368/1.092, allocations: 0.6171 MB / 0.6709 GB, free: 7.598 MB / 0.4982 GB Notification: Performance of prepare preOptimizeDAE: time 4.427e-05/1.092, allocations: 9.062 kB / 0.6709 GB, free: 7.598 MB / 0.4982 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001906/1.092, allocations: 34 kB / 0.6709 GB, free: 7.582 MB / 0.4982 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003619/1.092, allocations: 276.8 kB / 0.6712 GB, free: 7.305 MB / 0.4982 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.872e-05/1.092, allocations: 23.09 kB / 0.6712 GB, free: 7.293 MB / 0.4982 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.67e-05/1.093, allocations: 29.7 kB / 0.6712 GB, free: 7.281 MB / 0.4982 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005909/1.093, allocations: 273.3 kB / 0.6715 GB, free: 7.098 MB / 0.4982 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.911e-05/1.093, allocations: 1.094 kB / 0.6715 GB, free: 7.098 MB / 0.4982 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.763e-05/1.093, allocations: 14.31 kB / 0.6715 GB, free: 7.086 MB / 0.4982 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.788e-06/1.093, allocations: 4.844 kB / 0.6715 GB, free: 7.086 MB / 0.4982 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005422/1.094, allocations: 183.1 kB / 0.6717 GB, free: 7.004 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.001536/1.095, allocations: 1.225 MB / 0.6729 GB, free: 5.836 MB / 0.4982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008119/1.096, allocations: 268.3 kB / 0.6731 GB, free: 5.699 MB / 0.4982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000282/1.096, allocations: 114.9 kB / 0.6733 GB, free: 5.641 MB / 0.4982 GB Notification: Performance of preOpt evalFunc (simulation): time 3.107e-05/1.096, allocations: 6.234 kB / 0.6733 GB, free: 5.637 MB / 0.4982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003745/1.097, allocations: 171.2 kB / 0.6734 GB, free: 5.516 MB / 0.4982 GB Notification: Performance of pre-optimization done (n=28): time 2.785e-06/1.097, allocations: 0 / 0.6734 GB, free: 5.516 MB / 0.4982 GB Notification: Performance of matching and sorting (n=28): time 0.0009535/1.098, allocations: 374.5 kB / 0.6738 GB, free: 5.328 MB / 0.4982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.681e-05/1.098, allocations: 54.81 kB / 0.6738 GB, free: 5.266 MB / 0.4982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002726/1.098, allocations: 237.1 kB / 0.6741 GB, free: 5.094 MB / 0.4982 GB Notification: Performance of collectPreVariables (initialization): time 3.172e-05/1.098, allocations: 42.28 kB / 0.6741 GB, free: 5.051 MB / 0.4982 GB Notification: Performance of collectInitialEqns (initialization): time 8.455e-05/1.098, allocations: 157.1 kB / 0.6742 GB, free: 4.906 MB / 0.4982 GB Notification: Performance of collectInitialBindings (initialization): time 6.054e-05/1.098, allocations: 82.12 kB / 0.6743 GB, free: 4.836 MB / 0.4982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.244e-05/1.098, allocations: 65.28 kB / 0.6744 GB, free: 4.789 MB / 0.4982 GB Notification: Performance of setup shared object (initialization): time 6.92e-05/1.099, allocations: 336.4 kB / 0.6747 GB, free: 4.457 MB / 0.4982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002656/1.099, allocations: 113 kB / 0.6748 GB, free: 4.398 MB / 0.4982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002771/1.099, allocations: 166.9 kB / 0.675 GB, free: 4.27 MB / 0.4982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001288/1.1, allocations: 491.3 kB / 0.6754 GB, free: 3.984 MB / 0.4982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.541e-06/1.1, allocations: 5.188 kB / 0.6754 GB, free: 3.98 MB / 0.4982 GB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0006819/1.101, allocations: 334.6 kB / 0.6758 GB, free: 3.809 MB / 0.4982 GB Notification: Performance of prepare postOptimizeDAE: time 2.168e-05/1.101, allocations: 6.625 kB / 0.6758 GB, free: 3.809 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.481e-05/1.101, allocations: 2.312 kB / 0.6758 GB, free: 3.809 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.248e-05/1.101, allocations: 11.08 kB / 0.6758 GB, free: 3.801 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002746/1.101, allocations: 58.5 kB / 0.6758 GB, free: 3.789 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.305e-05/1.101, allocations: 7.375 kB / 0.6758 GB, free: 3.785 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002418/1.102, allocations: 45.77 kB / 0.6759 GB, free: 3.754 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.747e-05/1.102, allocations: 15.61 kB / 0.6759 GB, free: 3.746 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.0002187/1.102, allocations: 154.2 kB / 0.6761 GB, free: 3.605 MB / 0.4982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.744e-05/1.102, allocations: 31.14 kB / 0.6761 GB, free: 3.586 MB / 0.4982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006756/1.103, allocations: 298.1 kB / 0.6764 GB, free: 3.418 MB / 0.4982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.474e-06/1.103, allocations: 6.25 kB / 0.6764 GB, free: 3.414 MB / 0.4982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.572e-06/1.103, allocations: 0 / 0.6764 GB, free: 3.414 MB / 0.4982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.352e-06/1.103, allocations: 5.172 kB / 0.6764 GB, free: 3.41 MB / 0.4982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001227/1.104, allocations: 0.7412 MB / 0.6771 GB, free: 2.824 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/1.104, allocations: 0 / 0.6771 GB, free: 2.824 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002468/1.104, allocations: 49.36 kB / 0.6771 GB, free: 2.809 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.632e-06/1.104, allocations: 1.094 kB / 0.6772 GB, free: 2.809 MB / 0.4982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.406e-05/1.104, allocations: 6.562 kB / 0.6772 GB, free: 2.805 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.765e-06/1.104, allocations: 1.375 kB / 0.6772 GB, free: 2.805 MB / 0.4982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/1.104, allocations: 1.188 kB / 0.6772 GB, free: 2.805 MB / 0.4982 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009527/1.105, allocations: 0.5053 MB / 0.6777 GB, free: 2.473 MB / 0.4982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001171/1.105, allocations: 122.6 kB / 0.6778 GB, free: 2.344 MB / 0.4982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.686e-05/1.105, allocations: 9.594 kB / 0.6778 GB, free: 2.34 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002128/1.106, allocations: 15.98 kB / 0.6778 GB, free: 2.332 MB / 0.4982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.923e-05/1.106, allocations: 24.91 kB / 0.6778 GB, free: 2.316 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.724e-05/1.106, allocations: 14.7 kB / 0.6778 GB, free: 2.309 MB / 0.4982 GB Notification: Performance of sorting global known variables: time 0.0001629/1.106, allocations: 171.4 kB / 0.678 GB, free: 2.188 MB / 0.4982 GB Notification: Performance of sort global known variables: time 1.2e-07/1.106, allocations: 0 / 0.678 GB, free: 2.188 MB / 0.4982 GB Notification: Performance of remove unused functions: time 0.0004498/1.106, allocations: 67.88 kB / 0.6781 GB, free: 2.172 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.0001936/1.107, allocations: 114.4 kB / 0.6782 GB, free: 2.078 MB / 0.4982 GB Notification: Performance of simCode: created initialization part: time 0.0006701/1.107, allocations: 281.6 kB / 0.6784 GB, free: 1.941 MB / 0.4982 GB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/1.107, allocations: 9.312 kB / 0.6784 GB, free: 1.934 MB / 0.4982 GB Notification: Performance of simCode: created simulation system equations: time 0.0002931/1.108, allocations: 123.4 kB / 0.6786 GB, free: 1.883 MB / 0.4982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005396/1.108, allocations: 63.23 kB / 0.6786 GB, free: 1.855 MB / 0.4982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001334/1.11, allocations: 0.7861 MB / 0.6794 GB, free: 1.277 MB / 0.4982 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002403/1.11, allocations: 0.7582 MB / 0.6801 GB, free: 0.5508 MB / 0.4982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.259e-05/1.11, allocations: 31.62 kB / 0.6802 GB, free: 0.5352 MB / 0.4982 GB Notification: Performance of SimCode: time 8.61e-07/1.11, allocations: 3.938 kB / 0.6802 GB, free: 0.5312 MB / 0.4982 GB Notification: Performance of Templates: time 0.007683/1.118, allocations: 3.583 MB / 0.6837 GB, free: 14.67 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)