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.001485/0.001485, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001671/0.001672, allocations: 191.8 kB / 16.25 MB, free: 6.637 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.323/1.323, allocations: 222.9 MB / 239.9 MB, free: 4.527 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 0.9675/0.9675, allocations: 143 MB / 433.1 MB, free: 11.62 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001246/0.001246, allocations: 60.14 kB / 0.5136 GB, free: 12.05 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1424/0.1437, allocations: 82.05 MB / 0.5938 GB, free: 9.984 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.7788/0.9226, allocations: 75.56 MB / 0.6676 GB, free: 9.832 MB / 0.4982 GB Notification: Performance of NFInst.instExpressions: time 0.001364/0.9239, allocations: 0.8676 MB / 0.6684 GB, free: 9.137 MB / 0.4982 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002222/0.9242, allocations: 4.531 kB / 0.6684 GB, free: 9.137 MB / 0.4982 GB Notification: Performance of NFTyping.typeComponents: time 0.0001813/0.9244, allocations: 30.08 kB / 0.6684 GB, free: 9.109 MB / 0.4982 GB Notification: Performance of NFTyping.typeBindings: time 0.0003115/0.9247, allocations: 71.38 kB / 0.6685 GB, free: 9.051 MB / 0.4982 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003738/0.9251, allocations: 130.1 kB / 0.6686 GB, free: 8.957 MB / 0.4982 GB Notification: Performance of NFFlatten.flatten: time 0.0003881/0.9255, allocations: 311.9 kB / 0.6689 GB, free: 8.773 MB / 0.4982 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002121/0.9257, allocations: 116.4 kB / 0.669 GB, free: 8.703 MB / 0.4982 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002611/0.926, allocations: 131.1 kB / 0.6692 GB, free: 8.621 MB / 0.4982 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001813/0.9262, allocations: 136.6 kB / 0.6693 GB, free: 8.523 MB / 0.4982 GB Notification: Performance of NFPackage.collectConstants: time 4.41e-05/0.9262, allocations: 28.97 kB / 0.6693 GB, free: 8.523 MB / 0.4982 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001578/0.9264, allocations: 69.22 kB / 0.6694 GB, free: 8.504 MB / 0.4982 GB Notification: Performance of NFScalarize.scalarize: time 0.0001088/0.9265, allocations: 78.03 kB / 0.6695 GB, free: 8.441 MB / 0.4982 GB Notification: Performance of NFVerifyModel.verify: time 0.0001397/0.9266, allocations: 149.1 kB / 0.6696 GB, free: 8.336 MB / 0.4982 GB Notification: Performance of NFConvertDAE.convert: time 0.0003512/0.927, allocations: 358.7 kB / 0.67 GB, free: 8.078 MB / 0.4982 GB Notification: Performance of FrontEnd - DAE generated: time 5.209e-06/0.927, allocations: 3.938 kB / 0.67 GB, free: 8.074 MB / 0.4982 GB Notification: Performance of FrontEnd: time 1.703e-06/0.927, allocations: 0 / 0.67 GB, free: 8.074 MB / 0.4982 GB Notification: Performance of Transformations before backend: time 9.368e-06/0.927, allocations: 1.219 kB / 0.67 GB, free: 8.074 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.001053/0.9281, allocations: 0.6169 MB / 0.6706 GB, free: 7.523 MB / 0.4982 GB Notification: Performance of prepare preOptimizeDAE: time 3.401e-05/0.9281, allocations: 8.375 kB / 0.6706 GB, free: 7.523 MB / 0.4982 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001304/0.9283, allocations: 37.92 kB / 0.6706 GB, free: 7.504 MB / 0.4982 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000267/0.9285, allocations: 281.4 kB / 0.6709 GB, free: 7.223 MB / 0.4982 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.369e-05/0.9286, allocations: 18.72 kB / 0.6709 GB, free: 7.215 MB / 0.4982 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.099e-05/0.9286, allocations: 29.44 kB / 0.6709 GB, free: 7.203 MB / 0.4982 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005209/0.9292, allocations: 273.9 kB / 0.6712 GB, free: 7.02 MB / 0.4982 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.6e-05/0.9292, allocations: 0 / 0.6712 GB, free: 7.02 MB / 0.4982 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.699e-05/0.9292, allocations: 15.2 kB / 0.6712 GB, free: 7.008 MB / 0.4982 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.716e-06/0.9293, allocations: 4.938 kB / 0.6712 GB, free: 7.008 MB / 0.4982 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004905/0.9298, allocations: 187.1 kB / 0.6714 GB, free: 6.922 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.001246/0.931, allocations: 1.222 MB / 0.6726 GB, free: 5.762 MB / 0.4982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007704/0.9318, allocations: 267.3 kB / 0.6728 GB, free: 5.621 MB / 0.4982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002675/0.9321, allocations: 115 kB / 0.6729 GB, free: 5.562 MB / 0.4982 GB Notification: Performance of preOpt evalFunc (simulation): time 2.847e-05/0.9321, allocations: 2.125 kB / 0.6729 GB, free: 5.562 MB / 0.4982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003553/0.9325, allocations: 171.2 kB / 0.6731 GB, free: 5.441 MB / 0.4982 GB Notification: Performance of pre-optimization done (n=28): time 1.633e-06/0.9325, allocations: 1.438 kB / 0.6731 GB, free: 5.441 MB / 0.4982 GB Notification: Performance of matching and sorting (n=28): time 0.0008957/0.9334, allocations: 368.8 kB / 0.6735 GB, free: 5.258 MB / 0.4982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.832e-05/0.9334, allocations: 58.8 kB / 0.6735 GB, free: 5.191 MB / 0.4982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002172/0.9336, allocations: 237.9 kB / 0.6737 GB, free: 5.02 MB / 0.4982 GB Notification: Performance of collectPreVariables (initialization): time 2.723e-05/0.9337, allocations: 37.05 kB / 0.6738 GB, free: 4.98 MB / 0.4982 GB Notification: Performance of collectInitialEqns (initialization): time 7.252e-05/0.9338, allocations: 161.7 kB / 0.6739 GB, free: 4.832 MB / 0.4982 GB Notification: Performance of collectInitialBindings (initialization): time 5.39e-05/0.9338, allocations: 82.94 kB / 0.674 GB, free: 4.762 MB / 0.4982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.235e-05/0.9339, allocations: 60.95 kB / 0.6741 GB, free: 4.719 MB / 0.4982 GB Notification: Performance of setup shared object (initialization): time 5.194e-05/0.934, allocations: 337.7 kB / 0.6744 GB, free: 4.387 MB / 0.4982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002475/0.9342, allocations: 112.7 kB / 0.6745 GB, free: 4.328 MB / 0.4982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002519/0.9345, allocations: 170 kB / 0.6747 GB, free: 4.195 MB / 0.4982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001173/0.9357, allocations: 491.8 kB / 0.6751 GB, free: 3.91 MB / 0.4982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.997e-06/0.9357, allocations: 0 / 0.6751 GB, free: 3.91 MB / 0.4982 GB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0006085/0.9363, allocations: 340 kB / 0.6754 GB, free: 3.734 MB / 0.4982 GB Notification: Performance of prepare postOptimizeDAE: time 1.647e-05/0.9363, allocations: 5.094 kB / 0.6755 GB, free: 3.734 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.194e-05/0.9363, allocations: 3.406 kB / 0.6755 GB, free: 3.734 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.58e-05/0.9364, allocations: 7.438 kB / 0.6755 GB, free: 3.73 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002649/0.9366, allocations: 66.3 kB / 0.6755 GB, free: 3.711 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.057e-06/0.9366, allocations: 11.31 kB / 0.6755 GB, free: 3.703 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002086/0.9369, allocations: 36.2 kB / 0.6756 GB, free: 3.68 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.198e-05/0.9369, allocations: 12.97 kB / 0.6756 GB, free: 3.676 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.0001773/0.9371, allocations: 162.5 kB / 0.6757 GB, free: 3.527 MB / 0.4982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.943e-05/0.9371, allocations: 22.19 kB / 0.6758 GB, free: 3.516 MB / 0.4982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006556/0.9378, allocations: 309.7 kB / 0.6761 GB, free: 3.332 MB / 0.4982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.059e-06/0.9378, allocations: 6.312 kB / 0.6761 GB, free: 3.328 MB / 0.4982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.389e-06/0.9378, allocations: 1.094 kB / 0.6761 GB, free: 3.328 MB / 0.4982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.87e-06/0.9378, allocations: 0 / 0.6761 GB, free: 3.328 MB / 0.4982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001074/0.9389, allocations: 0.7416 MB / 0.6768 GB, free: 2.742 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.9389, allocations: 0 / 0.6768 GB, free: 2.742 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002448/0.9392, allocations: 44.84 kB / 0.6768 GB, free: 2.73 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.519e-06/0.9392, allocations: 2.188 kB / 0.6768 GB, free: 2.73 MB / 0.4982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.279e-05/0.9392, allocations: 10.11 kB / 0.6768 GB, free: 2.723 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.975e-06/0.9392, allocations: 1.031 kB / 0.6768 GB, free: 2.723 MB / 0.4982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.9392, allocations: 5.031 kB / 0.6768 GB, free: 2.719 MB / 0.4982 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000875/0.9401, allocations: 0.4969 MB / 0.6773 GB, free: 2.395 MB / 0.4982 GB Notification: Performance of postOpt removeConstants (simulation): time 8.796e-05/0.9402, allocations: 123.8 kB / 0.6774 GB, free: 2.266 MB / 0.4982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.84e-05/0.9402, allocations: 9.094 kB / 0.6775 GB, free: 2.262 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002062/0.9405, allocations: 24.08 kB / 0.6775 GB, free: 2.246 MB / 0.4982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.757e-05/0.9405, allocations: 21.12 kB / 0.6775 GB, free: 2.234 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.211e-05/0.9406, allocations: 6.156 kB / 0.6775 GB, free: 2.234 MB / 0.4982 GB Notification: Performance of sorting global known variables: time 0.000131/0.9407, allocations: 175.6 kB / 0.6777 GB, free: 2.109 MB / 0.4982 GB Notification: Performance of sort global known variables: time 1.31e-07/0.9407, allocations: 0 / 0.6777 GB, free: 2.109 MB / 0.4982 GB Notification: Performance of remove unused functions: time 0.0003763/0.9411, allocations: 68.25 kB / 0.6777 GB, free: 2.094 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.0001717/0.9413, allocations: 119.3 kB / 0.6779 GB, free: 1.996 MB / 0.4982 GB Notification: Performance of simCode: created initialization part: time 0.0006464/0.9419, allocations: 298.8 kB / 0.6781 GB, free: 1.848 MB / 0.4982 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.9419, allocations: 0 / 0.6781 GB, free: 1.848 MB / 0.4982 GB Notification: Performance of simCode: created simulation system equations: time 0.0002668/0.9422, allocations: 132.7 kB / 0.6783 GB, free: 1.789 MB / 0.4982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004902/0.9427, allocations: 77.89 kB / 0.6783 GB, free: 1.75 MB / 0.4982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001091/0.9438, allocations: 0.7519 MB / 0.6791 GB, free: 1.207 MB / 0.4982 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001734/0.944, allocations: 0.7661 MB / 0.6798 GB, free: 484 kB / 0.4982 GB Notification: Performance of simCode: alias equations: time 0.0001449/0.9441, allocations: 30.38 kB / 0.6799 GB, free: 472 kB / 0.4982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.3e-05/0.9442, allocations: 25.89 kB / 0.6799 GB, free: 460 kB / 0.4982 GB Notification: Performance of SimCode: time 2.4e-07/0.9442, allocations: 0 / 0.6799 GB, free: 460 kB / 0.4982 GB Notification: Performance of Templates: time 0.006702/0.9509, allocations: 3.443 MB / 0.6832 GB, free: 14.75 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)