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.001339/0.001339, allocations: 103.7 kB / 15.98 MB, free: 6.348 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.001043/0.001043, allocations: 198.8 kB / 16.91 MB, free: 6.188 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.335/1.335, allocations: 222.9 MB / 240.6 MB, free: 13.71 MB / 206.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.8697/0.8697, allocations: 143.1 MB / 433.8 MB, free: 12.27 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001192/0.001192, allocations: 63.91 kB / 0.5143 GB, free: 15.56 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3692/0.3704, allocations: 82.03 MB / 0.5944 GB, free: 16.55 MB / 446.1 MB [/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.3132/0.6836, allocations: 75.6 MB / 0.6682 GB, free: 6.656 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001742/0.6854, allocations: 0.8532 MB / 0.6691 GB, free: 5.797 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003105/0.6858, allocations: 7.938 kB / 0.6691 GB, free: 5.789 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0002351/0.686, allocations: 31.77 kB / 0.6691 GB, free: 5.758 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0004478/0.6865, allocations: 83.39 kB / 0.6692 GB, free: 5.676 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.000449/0.6869, allocations: 115.8 kB / 0.6693 GB, free: 5.562 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0004344/0.6874, allocations: 315.2 kB / 0.6696 GB, free: 5.25 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002432/0.6876, allocations: 123.8 kB / 0.6697 GB, free: 5.125 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002813/0.6879, allocations: 119.5 kB / 0.6698 GB, free: 5.008 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002107/0.6881, allocations: 135.4 kB / 0.67 GB, free: 4.875 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 4.721e-05/0.6882, allocations: 28 kB / 0.67 GB, free: 4.848 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001816/0.6884, allocations: 71.95 kB / 0.6701 GB, free: 4.777 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001261/0.6885, allocations: 79.69 kB / 0.6701 GB, free: 4.699 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001673/0.6887, allocations: 147.3 kB / 0.6703 GB, free: 4.555 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003808/0.6891, allocations: 283.4 kB / 0.6705 GB, free: 4.277 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.743e-06/0.6891, allocations: 4 kB / 0.6705 GB, free: 4.273 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.915e-06/0.6891, allocations: 3.984 kB / 0.6706 GB, free: 4.27 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.077e-05/0.6891, allocations: 0 / 0.6706 GB, free: 4.27 MB / 0.4981 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.001189/0.6903, allocations: 0.6119 MB / 0.6711 GB, free: 3.609 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.02e-05/0.6903, allocations: 8.031 kB / 0.6712 GB, free: 3.602 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001536/0.6905, allocations: 40.55 kB / 0.6712 GB, free: 3.562 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003545/0.6909, allocations: 276.2 kB / 0.6715 GB, free: 3.254 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.546e-05/0.6909, allocations: 20.88 kB / 0.6715 GB, free: 3.234 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.944e-05/0.691, allocations: 28.38 kB / 0.6715 GB, free: 3.207 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005568/0.6915, allocations: 280.5 kB / 0.6718 GB, free: 2.918 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.657e-05/0.6915, allocations: 0 / 0.6718 GB, free: 2.918 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.799e-05/0.6916, allocations: 15.98 kB / 0.6718 GB, free: 2.902 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.726e-06/0.6916, allocations: 4 kB / 0.6718 GB, free: 2.898 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005084/0.6921, allocations: 181.7 kB / 0.672 GB, free: 2.719 MB / 0.4981 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.001586/0.6937, allocations: 1.225 MB / 0.6732 GB, free: 1.363 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007792/0.6945, allocations: 266.9 kB / 0.6734 GB, free: 1.094 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002542/0.6948, allocations: 112.8 kB / 0.6735 GB, free: 0.9805 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.265e-05/0.6948, allocations: 8 kB / 0.6735 GB, free: 0.9727 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003696/0.6952, allocations: 171.9 kB / 0.6737 GB, free: 0.793 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=28): time 3.226e-06/0.6952, allocations: 3.984 kB / 0.6737 GB, free: 0.7891 MB / 0.4981 GB Notification: Performance of matching and sorting (n=28): time 0.0009148/0.6961, allocations: 367.7 kB / 0.6741 GB, free: 436 kB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.205e-05/0.6962, allocations: 51.41 kB / 0.6741 GB, free: 372 kB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002322/0.6964, allocations: 233.5 kB / 0.6743 GB, free: 128 kB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.28e-05/0.6964, allocations: 37.7 kB / 0.6744 GB, free: 84 kB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001229/0.6966, allocations: 164.5 kB / 0.6745 GB, free: 15.92 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 7.04e-05/0.6967, allocations: 82.81 kB / 0.6746 GB, free: 15.84 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.65e-05/0.6968, allocations: 61.61 kB / 0.6747 GB, free: 15.77 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001131/0.6969, allocations: 338.8 kB / 0.675 GB, free: 15.43 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002643/0.6972, allocations: 116.7 kB / 0.6751 GB, free: 15.31 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002722/0.6974, allocations: 171.4 kB / 0.6753 GB, free: 15.12 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001231/0.6987, allocations: 496 kB / 0.6757 GB, free: 14.61 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.367e-06/0.6987, allocations: 0 / 0.6757 GB, free: 14.61 MB / 0.5137 GB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0006518/0.6993, allocations: 337.3 kB / 0.676 GB, free: 14.27 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.153e-05/0.6994, allocations: 8 kB / 0.6761 GB, free: 14.26 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.438e-05/0.6994, allocations: 4 kB / 0.6761 GB, free: 14.26 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.901e-05/0.6994, allocations: 7.938 kB / 0.6761 GB, free: 14.25 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003426/0.6998, allocations: 63.89 kB / 0.6761 GB, free: 14.19 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.126e-05/0.6998, allocations: 4 kB / 0.6761 GB, free: 14.18 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000216/0.7, allocations: 39.67 kB / 0.6762 GB, free: 14.14 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.263e-05/0.7, allocations: 11.94 kB / 0.6762 GB, free: 14.13 MB / 0.5137 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.0002374/0.7003, allocations: 168 kB / 0.6763 GB, free: 13.96 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.251e-05/0.7003, allocations: 27.66 kB / 0.6764 GB, free: 13.93 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006645/0.701, allocations: 293.3 kB / 0.6766 GB, free: 13.64 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.711e-06/0.701, allocations: 3.938 kB / 0.6766 GB, free: 13.63 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.953e-06/0.701, allocations: 4 kB / 0.6767 GB, free: 13.63 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.619e-06/0.7011, allocations: 4 kB / 0.6767 GB, free: 13.62 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001292/0.7023, allocations: 0.7446 MB / 0.6774 GB, free: 12.82 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/0.7024, allocations: 0 / 0.6774 GB, free: 12.82 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002456/0.7026, allocations: 39.97 kB / 0.6774 GB, free: 12.78 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.741e-06/0.7026, allocations: 8.016 kB / 0.6774 GB, free: 12.77 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.618e-05/0.7027, allocations: 11.98 kB / 0.6774 GB, free: 12.76 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.846e-06/0.7027, allocations: 0 / 0.6774 GB, free: 12.76 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/0.7027, allocations: 4 kB / 0.6774 GB, free: 12.76 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009555/0.7036, allocations: 0.5041 MB / 0.6779 GB, free: 12.23 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001211/0.7038, allocations: 120.8 kB / 0.6781 GB, free: 12.09 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.932e-05/0.7038, allocations: 12 kB / 0.6781 GB, free: 12.08 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002025/0.704, allocations: 15.98 kB / 0.6781 GB, free: 12.07 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.432e-05/0.7041, allocations: 19.97 kB / 0.6781 GB, free: 12.05 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.413e-05/0.7041, allocations: 8 kB / 0.6781 GB, free: 12.04 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0001602/0.7043, allocations: 168.5 kB / 0.6783 GB, free: 11.88 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7043, allocations: 8 kB / 0.6783 GB, free: 11.87 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0003595/0.7047, allocations: 67.84 kB / 0.6783 GB, free: 11.8 MB / 0.5137 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.0001908/0.7049, allocations: 115.2 kB / 0.6784 GB, free: 11.68 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0006986/0.7056, allocations: 304.9 kB / 0.6787 GB, free: 11.38 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.7056, allocations: 448 / 0.6787 GB, free: 11.38 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0002813/0.7059, allocations: 127.9 kB / 0.6789 GB, free: 11.25 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005217/0.7064, allocations: 78.06 kB / 0.6789 GB, free: 11.18 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001342/0.7078, allocations: 0.7821 MB / 0.6797 GB, free: 10.37 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003272/0.7081, allocations: 0.7636 MB / 0.6804 GB, free: 9.582 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.506e-05/0.7082, allocations: 23.44 kB / 0.6805 GB, free: 9.559 MB / 0.5137 GB Notification: Performance of SimCode: time 2.41e-07/0.7082, allocations: 0 / 0.6805 GB, free: 9.559 MB / 0.5137 GB Notification: Performance of Templates: time 0.00659/0.7148, allocations: 3.6 MB / 0.684 GB, free: 5.973 MB / 0.5137 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)