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.0008619/0.0008619, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.004915/0.004915, allocations: 170.1 kB / 16.27 MB, free: 6.652 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.169/1.169, allocations: 223.3 MB / 240.3 MB, free: 5.332 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.8512/0.8512, allocations: 143.2 MB / 434.6 MB, free: 13.65 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002636/0.0002636, allocations: 8 kB / 0.5165 GB, free: 11.07 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1199/0.1202, allocations: 83.42 MB / 0.598 GB, free: 7.613 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 0.9575/1.078, allocations: 75.81 MB / 0.672 GB, free: 8.785 MB / 0.4982 GB Notification: Performance of NFInst.instExpressions: time 0.0009932/1.079, allocations: 0.8533 MB / 0.6728 GB, free: 8.105 MB / 0.4982 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001/1.079, allocations: 11.88 kB / 0.6728 GB, free: 8.098 MB / 0.4982 GB Notification: Performance of NFTyping.typeComponents: time 0.0001193/1.079, allocations: 30.08 kB / 0.6729 GB, free: 8.07 MB / 0.4982 GB Notification: Performance of NFTyping.typeBindings: time 0.0002203/1.079, allocations: 75.41 kB / 0.6729 GB, free: 8.008 MB / 0.4982 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002366/1.079, allocations: 119.4 kB / 0.673 GB, free: 7.922 MB / 0.4982 GB Notification: Performance of NFFlatten.flatten: time 0.0002124/1.08, allocations: 287.3 kB / 0.6733 GB, free: 7.758 MB / 0.4982 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001504/1.08, allocations: 113.8 kB / 0.6734 GB, free: 7.688 MB / 0.4982 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000128/1.08, allocations: 106.8 kB / 0.6735 GB, free: 7.625 MB / 0.4982 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001125/1.08, allocations: 114.9 kB / 0.6736 GB, free: 7.547 MB / 0.4982 GB Notification: Performance of NFPackage.collectConstants: time 2.645e-05/1.08, allocations: 11.94 kB / 0.6736 GB, free: 7.547 MB / 0.4982 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001133/1.08, allocations: 51.72 kB / 0.6737 GB, free: 7.527 MB / 0.4982 GB Notification: Performance of NFScalarize.scalarize: time 7.56e-05/1.08, allocations: 58.23 kB / 0.6738 GB, free: 7.484 MB / 0.4982 GB Notification: Performance of NFVerifyModel.verify: time 9.499e-05/1.08, allocations: 153.1 kB / 0.6739 GB, free: 7.367 MB / 0.4982 GB Notification: Performance of NFConvertDAE.convert: time 0.0002364/1.081, allocations: 338.7 kB / 0.6742 GB, free: 7.125 MB / 0.4982 GB Notification: Performance of FrontEnd - DAE generated: time 2.926e-06/1.081, allocations: 0 / 0.6742 GB, free: 7.125 MB / 0.4982 GB Notification: Performance of FrontEnd: time 1.162e-06/1.081, allocations: 0 / 0.6742 GB, free: 7.125 MB / 0.4982 GB Notification: Performance of Transformations before backend: time 6.062e-06/1.081, allocations: 0 / 0.6742 GB, free: 7.125 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.0007328/1.081, allocations: 0.5653 MB / 0.6748 GB, free: 6.617 MB / 0.4982 GB Notification: Performance of prepare preOptimizeDAE: time 3.246e-05/1.081, allocations: 9.781 kB / 0.6748 GB, free: 6.617 MB / 0.4982 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.998e-05/1.082, allocations: 66.72 kB / 0.6748 GB, free: 6.551 MB / 0.4982 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.947e-05/1.082, allocations: 32.5 kB / 0.6749 GB, free: 6.535 MB / 0.4982 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000209/1.082, allocations: 277.4 kB / 0.6751 GB, free: 6.258 MB / 0.4982 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.2e-05/1.082, allocations: 19.28 kB / 0.6752 GB, free: 6.25 MB / 0.4982 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.101e-05/1.082, allocations: 24.56 kB / 0.6752 GB, free: 6.242 MB / 0.4982 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004567/1.082, allocations: 292.7 kB / 0.6755 GB, free: 6.047 MB / 0.4982 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.281e-05/1.082, allocations: 1.281 kB / 0.6755 GB, free: 6.047 MB / 0.4982 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.079e-05/1.082, allocations: 10.12 kB / 0.6755 GB, free: 6.039 MB / 0.4982 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.622e-06/1.082, allocations: 5.406 kB / 0.6755 GB, free: 6.039 MB / 0.4982 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000462/1.083, allocations: 202.6 kB / 0.6757 GB, free: 5.945 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.00107/1.084, allocations: 1.215 MB / 0.6769 GB, free: 4.789 MB / 0.4982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007049/1.085, allocations: 283.7 kB / 0.6771 GB, free: 4.652 MB / 0.4982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002471/1.085, allocations: 125.5 kB / 0.6772 GB, free: 4.59 MB / 0.4982 GB Notification: Performance of preOpt evalFunc (simulation): time 2.174e-05/1.085, allocations: 2.812 kB / 0.6773 GB, free: 4.59 MB / 0.4982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003127/1.085, allocations: 195.2 kB / 0.6774 GB, free: 4.453 MB / 0.4982 GB Notification: Performance of pre-optimization done (n=28): time 1.503e-06/1.085, allocations: 1 kB / 0.6774 GB, free: 4.453 MB / 0.4982 GB Notification: Performance of matching and sorting (n=28): time 0.0008141/1.086, allocations: 385.2 kB / 0.6778 GB, free: 4.27 MB / 0.4982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.33e-05/1.086, allocations: 54.91 kB / 0.6779 GB, free: 4.207 MB / 0.4982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001798/1.086, allocations: 233.8 kB / 0.6781 GB, free: 4.039 MB / 0.4982 GB Notification: Performance of collectPreVariables (initialization): time 2.203e-05/1.086, allocations: 37.11 kB / 0.6781 GB, free: 4 MB / 0.4982 GB Notification: Performance of collectInitialEqns (initialization): time 6.431e-05/1.086, allocations: 157.4 kB / 0.6783 GB, free: 3.855 MB / 0.4982 GB Notification: Performance of collectInitialBindings (initialization): time 4.73e-05/1.086, allocations: 91.05 kB / 0.6784 GB, free: 3.777 MB / 0.4982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.053e-05/1.087, allocations: 37.08 kB / 0.6784 GB, free: 3.746 MB / 0.4982 GB Notification: Performance of setup shared object (initialization): time 4.721e-05/1.087, allocations: 345.5 kB / 0.6787 GB, free: 3.406 MB / 0.4982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002393/1.087, allocations: 118.2 kB / 0.6788 GB, free: 3.348 MB / 0.4982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002478/1.087, allocations: 181 kB / 0.679 GB, free: 3.211 MB / 0.4982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001149/1.088, allocations: 0.4971 MB / 0.6795 GB, free: 2.934 MB / 0.4982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.846e-06/1.088, allocations: 1.062 kB / 0.6795 GB, free: 2.934 MB / 0.4982 GB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0005889/1.089, allocations: 351.3 kB / 0.6798 GB, free: 2.758 MB / 0.4982 GB Notification: Performance of prepare postOptimizeDAE: time 1.321e-05/1.089, allocations: 7.156 kB / 0.6798 GB, free: 2.758 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.578e-06/1.089, allocations: 2 kB / 0.6798 GB, free: 2.758 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.419e-05/1.089, allocations: 7.062 kB / 0.6798 GB, free: 2.754 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002421/1.089, allocations: 69.11 kB / 0.6799 GB, free: 2.734 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.293e-06/1.089, allocations: 4.188 kB / 0.6799 GB, free: 2.734 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001799/1.089, allocations: 42.95 kB / 0.68 GB, free: 2.707 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.756e-05/1.089, allocations: 8.719 kB / 0.68 GB, free: 2.707 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.0001498/1.09, allocations: 169.9 kB / 0.6801 GB, free: 2.551 MB / 0.4982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.998e-05/1.09, allocations: 26.12 kB / 0.6801 GB, free: 2.535 MB / 0.4982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006058/1.09, allocations: 315.2 kB / 0.6804 GB, free: 2.363 MB / 0.4982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.098e-06/1.09, allocations: 6.234 kB / 0.6805 GB, free: 2.359 MB / 0.4982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.309e-06/1.09, allocations: 1.562 kB / 0.6805 GB, free: 2.359 MB / 0.4982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/1.09, allocations: 3.984 kB / 0.6805 GB, free: 2.355 MB / 0.4982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001013/1.091, allocations: 0.7596 MB / 0.6812 GB, free: 1.77 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.435e-06/1.091, allocations: 1.281 kB / 0.6812 GB, free: 1.77 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002206/1.091, allocations: 51.44 kB / 0.6812 GB, free: 1.754 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.066e-06/1.091, allocations: 1.375 kB / 0.6813 GB, free: 1.754 MB / 0.4982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.875e-05/1.091, allocations: 10.67 kB / 0.6813 GB, free: 1.746 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.515e-06/1.092, allocations: 1.375 kB / 0.6813 GB, free: 1.746 MB / 0.4982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/1.092, allocations: 1.406 kB / 0.6813 GB, free: 1.746 MB / 0.4982 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008232/1.092, allocations: 0.5309 MB / 0.6818 GB, free: 1.406 MB / 0.4982 GB Notification: Performance of postOpt removeConstants (simulation): time 7.07e-05/1.092, allocations: 119.2 kB / 0.6819 GB, free: 1.281 MB / 0.4982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.983e-05/1.092, allocations: 9.781 kB / 0.6819 GB, free: 1.277 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001879/1.093, allocations: 23.23 kB / 0.6819 GB, free: 1.266 MB / 0.4982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.587e-05/1.093, allocations: 21.44 kB / 0.6819 GB, free: 1.254 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.841e-05/1.093, allocations: 6.188 kB / 0.682 GB, free: 1.254 MB / 0.4982 GB Notification: Performance of sorting global known variables: time 0.0001163/1.093, allocations: 170.9 kB / 0.6821 GB, free: 1.133 MB / 0.4982 GB Notification: Performance of sort global known variables: time 1.41e-07/1.093, allocations: 4 kB / 0.6821 GB, free: 1.129 MB / 0.4982 GB Notification: Performance of remove unused functions: time 0.0003171/1.093, allocations: 72.73 kB / 0.6822 GB, free: 1.109 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.0009913/1.094, allocations: 1.066 MB / 0.6832 GB, free: 264 kB / 0.4982 GB Notification: Performance of simCode: created initialization part: time 0.0005458/1.095, allocations: 301.3 kB / 0.6835 GB, free: 116 kB / 0.4982 GB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/1.095, allocations: 1.094 kB / 0.6835 GB, free: 116 kB / 0.4982 GB Notification: Performance of simCode: created simulation system equations: time 0.0002567/1.095, allocations: 133.7 kB / 0.6836 GB, free: 64 kB / 0.4982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004744/1.096, allocations: 67.42 kB / 0.6837 GB, free: 32 kB / 0.4982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00337/1.099, allocations: 3.089 MB / 0.6867 GB, free: 13.67 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002699/1.099, allocations: 0.7648 MB / 0.6875 GB, free: 12.93 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.0001143/1.099, allocations: 32.28 kB / 0.6875 GB, free: 12.92 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000116/1.099, allocations: 85.97 kB / 0.6876 GB, free: 12.85 MB / 0.5138 GB Notification: Performance of SimCode: time 2.71e-07/1.099, allocations: 3.938 kB / 0.6876 GB, free: 12.85 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.767/3.867, allocations: 5.598 MB / 0.6931 GB, free: 10.2 MB / 0.5138 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002033/3.867, allocations: 203.8 kB / 0.6933 GB, free: 9.949 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.132/6.999, allocations: 0 / 0.6933 GB, free: 9.949 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)