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.001624/0.001624, allocations: 108 kB / 15.6 MB, free: 132 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.002127/0.002127, allocations: 194.7 kB / 16.53 MB, free: 6.391 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.339/1.339, allocations: 222.9 MB / 240.2 MB, free: 4.398 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.9657/0.9657, allocations: 143 MB / 433.4 MB, free: 11.5 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001487/0.001487, allocations: 59.89 kB / 0.5143 GB, free: 11.56 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1492/0.1507, allocations: 82.05 MB / 0.5944 GB, free: 9.477 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.9271/1.078, allocations: 75.83 MB / 0.6684 GB, free: 9.762 MB / 0.4982 GB Notification: Performance of NFInst.instExpressions: time 0.00132/1.079, allocations: 0.8654 MB / 0.6693 GB, free: 9.066 MB / 0.4982 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001909/1.079, allocations: 4.344 kB / 0.6693 GB, free: 9.066 MB / 0.4982 GB Notification: Performance of NFTyping.typeComponents: time 0.0001767/1.08, allocations: 33.78 kB / 0.6693 GB, free: 9.035 MB / 0.4982 GB Notification: Performance of NFTyping.typeBindings: time 0.0003075/1.08, allocations: 91.2 kB / 0.6694 GB, free: 8.957 MB / 0.4982 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003866/1.08, allocations: 158.1 kB / 0.6696 GB, free: 8.84 MB / 0.4982 GB Notification: Performance of NFFlatten.flatten: time 0.0002906/1.081, allocations: 308 kB / 0.6698 GB, free: 8.66 MB / 0.4982 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001895/1.081, allocations: 112.1 kB / 0.67 GB, free: 8.594 MB / 0.4982 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001914/1.081, allocations: 126.8 kB / 0.6701 GB, free: 8.516 MB / 0.4982 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001609/1.081, allocations: 136 kB / 0.6702 GB, free: 8.418 MB / 0.4982 GB Notification: Performance of NFPackage.collectConstants: time 4.603e-05/1.081, allocations: 28.34 kB / 0.6702 GB, free: 8.418 MB / 0.4982 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001578/1.081, allocations: 73.89 kB / 0.6703 GB, free: 8.395 MB / 0.4982 GB Notification: Performance of NFScalarize.scalarize: time 9.46e-05/1.082, allocations: 73.77 kB / 0.6704 GB, free: 8.336 MB / 0.4982 GB Notification: Performance of NFVerifyModel.verify: time 0.0001296/1.082, allocations: 153.6 kB / 0.6705 GB, free: 8.227 MB / 0.4982 GB Notification: Performance of NFConvertDAE.convert: time 0.0003277/1.082, allocations: 365.9 kB / 0.6709 GB, free: 7.961 MB / 0.4982 GB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/1.082, allocations: 0 / 0.6709 GB, free: 7.961 MB / 0.4982 GB Notification: Performance of FrontEnd: time 1.472e-06/1.082, allocations: 1.156 kB / 0.6709 GB, free: 7.961 MB / 0.4982 GB Notification: Performance of Transformations before backend: time 9.488e-06/1.082, allocations: 0 / 0.6709 GB, free: 7.961 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.0009911/1.083, allocations: 0.6126 MB / 0.6715 GB, free: 7.414 MB / 0.4982 GB Notification: Performance of prepare preOptimizeDAE: time 3.532e-05/1.083, allocations: 9.406 kB / 0.6715 GB, free: 7.414 MB / 0.4982 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.921e-05/1.083, allocations: 62.25 kB / 0.6715 GB, free: 7.352 MB / 0.4982 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001176/1.083, allocations: 35.16 kB / 0.6716 GB, free: 7.336 MB / 0.4982 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000264/1.084, allocations: 272.7 kB / 0.6718 GB, free: 7.062 MB / 0.4982 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.353e-05/1.084, allocations: 18.84 kB / 0.6718 GB, free: 7.055 MB / 0.4982 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.932e-05/1.084, allocations: 32.64 kB / 0.6719 GB, free: 7.039 MB / 0.4982 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005144/1.084, allocations: 282.1 kB / 0.6721 GB, free: 6.852 MB / 0.4982 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.363e-05/1.084, allocations: 0 / 0.6721 GB, free: 6.852 MB / 0.4982 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.387e-05/1.084, allocations: 10.88 kB / 0.6722 GB, free: 6.844 MB / 0.4982 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.466e-06/1.084, allocations: 6.281 kB / 0.6722 GB, free: 6.844 MB / 0.4982 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005062/1.085, allocations: 185.6 kB / 0.6723 GB, free: 6.758 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.001204/1.086, allocations: 1.223 MB / 0.6735 GB, free: 5.594 MB / 0.4982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007549/1.087, allocations: 271.5 kB / 0.6738 GB, free: 5.453 MB / 0.4982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002568/1.087, allocations: 111.2 kB / 0.6739 GB, free: 5.398 MB / 0.4982 GB Notification: Performance of preOpt evalFunc (simulation): time 2.471e-05/1.087, allocations: 6.438 kB / 0.6739 GB, free: 5.395 MB / 0.4982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003406/1.087, allocations: 174.6 kB / 0.6741 GB, free: 5.273 MB / 0.4982 GB Notification: Performance of pre-optimization done (n=28): time 2.043e-06/1.087, allocations: 0 / 0.6741 GB, free: 5.273 MB / 0.4982 GB Notification: Performance of matching and sorting (n=28): time 0.0008749/1.088, allocations: 359 kB / 0.6744 GB, free: 5.098 MB / 0.4982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.403e-05/1.088, allocations: 55.06 kB / 0.6745 GB, free: 5.035 MB / 0.4982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002161/1.089, allocations: 232.4 kB / 0.6747 GB, free: 4.867 MB / 0.4982 GB Notification: Performance of collectPreVariables (initialization): time 2.542e-05/1.089, allocations: 46.56 kB / 0.6747 GB, free: 4.82 MB / 0.4982 GB Notification: Performance of collectInitialEqns (initialization): time 7.598e-05/1.089, allocations: 164.8 kB / 0.6749 GB, free: 4.668 MB / 0.4982 GB Notification: Performance of collectInitialBindings (initialization): time 5.212e-05/1.089, allocations: 78.16 kB / 0.675 GB, free: 4.602 MB / 0.4982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.584e-05/1.089, allocations: 65.72 kB / 0.675 GB, free: 4.555 MB / 0.4982 GB Notification: Performance of setup shared object (initialization): time 5.953e-05/1.089, allocations: 341.4 kB / 0.6754 GB, free: 4.219 MB / 0.4982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000254/1.089, allocations: 120.7 kB / 0.6755 GB, free: 4.152 MB / 0.4982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000253/1.089, allocations: 167 kB / 0.6756 GB, free: 4.023 MB / 0.4982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001222/1.091, allocations: 486.4 kB / 0.6761 GB, free: 3.742 MB / 0.4982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.607e-06/1.091, allocations: 1.062 kB / 0.6761 GB, free: 3.742 MB / 0.4982 GB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0006221/1.091, allocations: 338.9 kB / 0.6764 GB, free: 3.566 MB / 0.4982 GB Notification: Performance of prepare postOptimizeDAE: time 1.818e-05/1.091, allocations: 6.75 kB / 0.6764 GB, free: 3.566 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.336e-05/1.091, allocations: 6.266 kB / 0.6764 GB, free: 3.562 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.23e-05/1.091, allocations: 7.312 kB / 0.6764 GB, free: 3.559 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000257/1.092, allocations: 62.39 kB / 0.6765 GB, free: 3.543 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.285e-06/1.092, allocations: 7.531 kB / 0.6765 GB, free: 3.539 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001839/1.092, allocations: 38.55 kB / 0.6765 GB, free: 3.512 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.149e-05/1.092, allocations: 9.844 kB / 0.6765 GB, free: 3.512 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.0001684/1.092, allocations: 169.5 kB / 0.6767 GB, free: 3.355 MB / 0.4982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.485e-05/1.092, allocations: 22.28 kB / 0.6767 GB, free: 3.344 MB / 0.4982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006518/1.093, allocations: 300.6 kB / 0.677 GB, free: 3.172 MB / 0.4982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.459e-06/1.093, allocations: 3.312 kB / 0.677 GB, free: 3.172 MB / 0.4982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/1.093, allocations: 0 / 0.677 GB, free: 3.172 MB / 0.4982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.783e-06/1.093, allocations: 5.203 kB / 0.677 GB, free: 3.168 MB / 0.4982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001055/1.094, allocations: 0.7415 MB / 0.6777 GB, free: 2.582 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/1.094, allocations: 3.938 kB / 0.6778 GB, free: 2.578 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002385/1.094, allocations: 44.97 kB / 0.6778 GB, free: 2.566 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.497e-06/1.094, allocations: 1.375 kB / 0.6778 GB, free: 2.566 MB / 0.4982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.252e-05/1.094, allocations: 10.8 kB / 0.6778 GB, free: 2.559 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.025e-06/1.094, allocations: 1.375 kB / 0.6778 GB, free: 2.559 MB / 0.4982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/1.094, allocations: 1.375 kB / 0.6778 GB, free: 2.559 MB / 0.4982 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009049/1.095, allocations: 0.5006 MB / 0.6783 GB, free: 2.23 MB / 0.4982 GB Notification: Performance of postOpt removeConstants (simulation): time 9.115e-05/1.095, allocations: 123.4 kB / 0.6784 GB, free: 2.102 MB / 0.4982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.649e-05/1.095, allocations: 9.281 kB / 0.6784 GB, free: 2.098 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000202/1.095, allocations: 14.92 kB / 0.6784 GB, free: 2.09 MB / 0.4982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.332e-05/1.095, allocations: 24.97 kB / 0.6785 GB, free: 2.074 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.287e-05/1.095, allocations: 10.66 kB / 0.6785 GB, free: 2.07 MB / 0.4982 GB Notification: Performance of sorting global known variables: time 0.0001256/1.096, allocations: 171.3 kB / 0.6786 GB, free: 1.949 MB / 0.4982 GB Notification: Performance of sort global known variables: time 1.5e-07/1.096, allocations: 0 / 0.6786 GB, free: 1.949 MB / 0.4982 GB Notification: Performance of remove unused functions: time 0.0003816/1.096, allocations: 68.31 kB / 0.6787 GB, free: 1.934 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.001094/1.097, allocations: 1.055 MB / 0.6797 GB, free: 1.074 MB / 0.4982 GB Notification: Performance of simCode: created initialization part: time 0.0006413/1.098, allocations: 304.6 kB / 0.68 GB, free: 0.9219 MB / 0.4982 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/1.098, allocations: 4.062 kB / 0.68 GB, free: 0.918 MB / 0.4982 GB Notification: Performance of simCode: created simulation system equations: time 0.0002713/1.098, allocations: 127.1 kB / 0.6801 GB, free: 0.8672 MB / 0.4982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004762/1.099, allocations: 67.19 kB / 0.6802 GB, free: 0.832 MB / 0.4982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003542/1.102, allocations: 2.883 MB / 0.683 GB, free: 14.65 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002767/1.102, allocations: 0.7652 MB / 0.6838 GB, free: 13.91 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.0001368/1.103, allocations: 36.64 kB / 0.6838 GB, free: 13.9 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001201/1.103, allocations: 89.94 kB / 0.6839 GB, free: 13.82 MB / 0.5138 GB Notification: Performance of SimCode: time 3.4e-07/1.103, allocations: 0 / 0.6839 GB, free: 13.82 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0342/1.137, allocations: 5.994 MB / 0.6897 GB, free: 10.86 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.565/8.702, allocations: 15.17 kB / 0.6898 GB, free: 10.84 MB / 0.5138 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_Systems_DHW_Examples_DHWResistiveWaterHeater_fmu --startTime=0 --stopTime=864000 --timeout=50 --tolerance=1e-06 BuildSysPro_BuildSysPro_Systems_DHW_Examples_DHWResistiveWaterHeater.fmu > BuildSysPro_BuildSysPro.Systems.DHW.Examples.DHWResistiveWaterHeater.pipe 2>&1)