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.007776/0.007776, allocations: 101.2 kB / 15.73 MB, free: 6.051 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.001609/0.001609, allocations: 190.5 kB / 16.67 MB, free: 5.977 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.375/1.375, allocations: 222.9 MB / 240.4 MB, free: 4.316 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.9992/0.9992, allocations: 143 MB / 433.6 MB, free: 11.41 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001948/0.001948, allocations: 59.91 kB / 0.595 GB, free: 8.922 MB / 0.4981 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4443/0.4462, allocations: 82.03 MB / 0.6751 GB, free: 1.184 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.4411/0.8873, allocations: 75.8 MB / 0.7492 GB, free: 12.2 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.00187/0.8892, allocations: 0.8686 MB / 0.75 GB, free: 11.32 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004026/0.8897, allocations: 4 kB / 0.75 GB, free: 11.32 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0002665/0.89, allocations: 39.59 kB / 0.75 GB, free: 11.28 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0005105/0.8905, allocations: 95.25 kB / 0.7501 GB, free: 11.19 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004983/0.891, allocations: 135.7 kB / 0.7503 GB, free: 11.05 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0004921/0.8915, allocations: 319.2 kB / 0.7506 GB, free: 10.74 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002532/0.8918, allocations: 123.9 kB / 0.7507 GB, free: 10.62 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002618/0.892, allocations: 127.5 kB / 0.7508 GB, free: 10.5 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000224/0.8923, allocations: 127.4 kB / 0.7509 GB, free: 10.37 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 4.776e-05/0.8923, allocations: 31.94 kB / 0.751 GB, free: 10.34 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001749/0.8925, allocations: 71.89 kB / 0.751 GB, free: 10.27 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001827/0.8927, allocations: 75.75 kB / 0.7511 GB, free: 10.2 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0001675/0.8929, allocations: 155.2 kB / 0.7513 GB, free: 10.04 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0004589/0.8933, allocations: 366.8 kB / 0.7516 GB, free: 9.684 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.8933, allocations: 0 / 0.7516 GB, free: 9.684 MB / 0.5762 GB Notification: Performance of FrontEnd: time 2.795e-06/0.8934, allocations: 8 kB / 0.7516 GB, free: 9.676 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.113e-05/0.8934, allocations: 0 / 0.7516 GB, free: 9.676 MB / 0.5762 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.001221/0.8946, allocations: 0.6157 MB / 0.7522 GB, free: 9.012 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.234e-05/0.8946, allocations: 12.03 kB / 0.7522 GB, free: 9 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.698e-05/0.8947, allocations: 54.73 kB / 0.7523 GB, free: 8.938 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001317/0.8949, allocations: 36.55 kB / 0.7523 GB, free: 8.902 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004432/0.8953, allocations: 275.7 kB / 0.7526 GB, free: 8.594 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.455e-05/0.8954, allocations: 20.94 kB / 0.7526 GB, free: 8.574 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.406e-05/0.8954, allocations: 24.38 kB / 0.7526 GB, free: 8.551 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000608/0.896, allocations: 288.3 kB / 0.7529 GB, free: 8.258 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.634e-05/0.8961, allocations: 0 / 0.7529 GB, free: 8.258 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.555e-05/0.8961, allocations: 8 kB / 0.7529 GB, free: 8.25 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.997e-06/0.8961, allocations: 4 kB / 0.7529 GB, free: 8.246 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005827/0.8967, allocations: 185.7 kB / 0.7531 GB, free: 8.062 MB / 0.5762 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.001616/0.8983, allocations: 1.225 MB / 0.7543 GB, free: 6.711 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007691/0.8991, allocations: 266.6 kB / 0.7545 GB, free: 6.445 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002892/0.8994, allocations: 116.8 kB / 0.7546 GB, free: 6.328 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 2.64e-05/0.8994, allocations: 4 kB / 0.7546 GB, free: 6.324 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003563/0.8998, allocations: 163.9 kB / 0.7548 GB, free: 6.152 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=28): time 2.094e-06/0.8998, allocations: 0 / 0.7548 GB, free: 6.152 MB / 0.5762 GB Notification: Performance of matching and sorting (n=28): time 0.0009377/0.9008, allocations: 367.7 kB / 0.7551 GB, free: 5.789 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.094e-05/0.9008, allocations: 55.41 kB / 0.7552 GB, free: 5.723 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002491/0.9011, allocations: 237.5 kB / 0.7554 GB, free: 5.48 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 3.507e-05/0.9011, allocations: 41.69 kB / 0.7555 GB, free: 5.434 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001183/0.9013, allocations: 156.5 kB / 0.7556 GB, free: 5.277 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 7.342e-05/0.9013, allocations: 86.8 kB / 0.7557 GB, free: 5.191 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.114e-05/0.9014, allocations: 61.69 kB / 0.7558 GB, free: 5.125 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001376/0.9016, allocations: 342.8 kB / 0.7561 GB, free: 4.781 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002648/0.9018, allocations: 121.4 kB / 0.7562 GB, free: 4.66 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002842/0.9021, allocations: 167.5 kB / 0.7564 GB, free: 4.469 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001304/0.9034, allocations: 496.3 kB / 0.7568 GB, free: 3.957 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.995e-06/0.9035, allocations: 3.938 kB / 0.7568 GB, free: 3.953 MB / 0.5762 GB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0006501/0.9041, allocations: 337.2 kB / 0.7572 GB, free: 3.617 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.79e-05/0.9041, allocations: 7.281 kB / 0.7572 GB, free: 3.613 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.335e-05/0.9042, allocations: 4 kB / 0.7572 GB, free: 3.609 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.965e-05/0.9042, allocations: 7.938 kB / 0.7572 GB, free: 3.602 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002702/0.9045, allocations: 67.89 kB / 0.7572 GB, free: 3.535 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.066e-05/0.9045, allocations: 0 / 0.7572 GB, free: 3.535 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002027/0.9047, allocations: 35.7 kB / 0.7573 GB, free: 3.5 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.437e-05/0.9047, allocations: 12.16 kB / 0.7573 GB, free: 3.488 MB / 0.5762 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.0001995/0.9049, allocations: 167.9 kB / 0.7574 GB, free: 3.312 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.014e-05/0.905, allocations: 23.72 kB / 0.7575 GB, free: 3.289 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000656/0.9056, allocations: 292 kB / 0.7578 GB, free: 2.996 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.342e-06/0.9057, allocations: 4.062 kB / 0.7578 GB, free: 2.992 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.181e-06/0.9057, allocations: 8 kB / 0.7578 GB, free: 2.984 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.754e-06/0.9057, allocations: 3.984 kB / 0.7578 GB, free: 2.98 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001256/0.9069, allocations: 0.7335 MB / 0.7585 GB, free: 2.188 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.907, allocations: 0 / 0.7585 GB, free: 2.188 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002632/0.9072, allocations: 43.97 kB / 0.7585 GB, free: 2.145 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.943e-06/0.9073, allocations: 8.031 kB / 0.7585 GB, free: 2.137 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.185e-05/0.9073, allocations: 7.984 kB / 0.7585 GB, free: 2.129 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.298e-06/0.9073, allocations: 7.938 kB / 0.7585 GB, free: 2.121 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.9073, allocations: 0 / 0.7585 GB, free: 2.121 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009254/0.9082, allocations: 0.4971 MB / 0.759 GB, free: 1.602 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001123/0.9084, allocations: 120.8 kB / 0.7591 GB, free: 1.465 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.857e-05/0.9084, allocations: 8.094 kB / 0.7592 GB, free: 1.457 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002003/0.9086, allocations: 15.98 kB / 0.7592 GB, free: 1.441 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.81e-05/0.9087, allocations: 23.95 kB / 0.7592 GB, free: 1.418 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.158e-05/0.9087, allocations: 12 kB / 0.7592 GB, free: 1.406 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001544/0.9089, allocations: 164.5 kB / 0.7594 GB, free: 1.246 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.5e-07/0.9089, allocations: 0 / 0.7594 GB, free: 1.246 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0003727/0.9093, allocations: 71.84 kB / 0.7594 GB, free: 1.176 MB / 0.5762 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.001203/0.9105, allocations: 1.061 MB / 0.7605 GB, free: 88 kB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0006653/0.9112, allocations: 284.7 kB / 0.7607 GB, free: 15.8 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.826e-06/0.9113, allocations: 0 / 0.7607 GB, free: 15.8 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0002904/0.9116, allocations: 124.3 kB / 0.7609 GB, free: 15.68 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005077/0.9121, allocations: 72.44 kB / 0.7609 GB, free: 15.61 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003938/0.916, allocations: 2.888 MB / 0.7637 GB, free: 12.58 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004163/0.9165, allocations: 0.7673 MB / 0.7645 GB, free: 11.79 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0001888/0.9167, allocations: 26.28 kB / 0.7645 GB, free: 11.76 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001738/0.9169, allocations: 83.41 kB / 0.7646 GB, free: 11.68 MB / 0.5919 GB Notification: Performance of SimCode: time 7.21e-07/0.9169, allocations: 4 kB / 0.7646 GB, free: 11.68 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02824/0.9451, allocations: 6.201 MB / 0.7707 GB, free: 5.598 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.912/8.857, allocations: 16.03 kB / 0.7707 GB, free: 5.582 MB / 0.5919 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)