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.005957/0.005957, allocations: 102.3 kB / 15.73 MB, free: 5.578 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.001469/0.00147, allocations: 195.5 kB / 16.67 MB, free: 5.52 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.329/1.329, allocations: 222.9 MB / 240.4 MB, free: 15.18 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.8337/0.8337, allocations: 143.1 MB / 433.6 MB, free: 11.98 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001139/0.001139, allocations: 66.23 kB / 0.595 GB, free: 12.79 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1852/0.1863, allocations: 82.02 MB / 0.6751 GB, free: 10.87 MB / 0.5137 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.726/0.9124, allocations: 75.89 MB / 0.7492 GB, free: 488 kB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.7582/1.671, allocations: 0.8634 MB / 0.7501 GB, free: 22.27 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000261/1.671, allocations: 5.125 kB / 0.7501 GB, free: 22.27 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0004705/1.671, allocations: 41.08 kB / 0.7501 GB, free: 22.27 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0009786/1.672, allocations: 87.89 kB / 0.7502 GB, free: 22.27 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005018/1.673, allocations: 142.6 kB / 0.7503 GB, free: 22.27 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001258/1.674, allocations: 316.2 kB / 0.7506 GB, free: 22.27 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007441/1.675, allocations: 119.1 kB / 0.7507 GB, free: 22.26 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003065/1.675, allocations: 125.8 kB / 0.7509 GB, free: 22.24 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003727/1.676, allocations: 137.3 kB / 0.751 GB, free: 22.21 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0002234/1.676, allocations: 27.84 kB / 0.751 GB, free: 22.21 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006062/1.677, allocations: 65.38 kB / 0.7511 GB, free: 22.21 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0003836/1.677, allocations: 76.28 kB / 0.7512 GB, free: 22.2 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0002228/1.677, allocations: 151.9 kB / 0.7513 GB, free: 22.15 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0008125/1.678, allocations: 370.2 kB / 0.7517 GB, free: 22.1 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 2.313e-05/1.678, allocations: 0.75 kB / 0.7517 GB, free: 22.1 MB / 0.5762 GB Notification: Performance of FrontEnd: time 7.534e-06/1.678, allocations: 1.406 kB / 0.7517 GB, free: 22.1 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 2.59e-05/1.678, allocations: 0.5625 kB / 0.7517 GB, free: 22.1 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.002327/1.681, allocations: 0.6077 MB / 0.7523 GB, free: 21.66 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 0.0001032/1.681, allocations: 12.59 kB / 0.7523 GB, free: 21.66 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002362/1.681, allocations: 64.98 kB / 0.7523 GB, free: 21.62 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005307/1.682, allocations: 34.52 kB / 0.7524 GB, free: 21.61 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004244/1.682, allocations: 273.9 kB / 0.7526 GB, free: 21.38 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.602e-05/1.682, allocations: 20.78 kB / 0.7526 GB, free: 21.38 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.572e-05/1.682, allocations: 27.19 kB / 0.7527 GB, free: 21.38 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001313/1.683, allocations: 286 kB / 0.7529 GB, free: 21.32 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.958e-05/1.683, allocations: 2.656 kB / 0.7529 GB, free: 21.32 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.735e-05/1.684, allocations: 11.06 kB / 0.753 GB, free: 21.32 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.667e-05/1.684, allocations: 3.781 kB / 0.753 GB, free: 21.32 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005973/1.684, allocations: 186.5 kB / 0.7531 GB, free: 21.32 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.002922/1.687, allocations: 1.226 MB / 0.7543 GB, free: 20.5 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001487/1.689, allocations: 262.3 kB / 0.7546 GB, free: 20.48 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002896/1.689, allocations: 122.5 kB / 0.7547 GB, free: 20.47 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 2.621e-05/1.689, allocations: 8.828 kB / 0.7547 GB, free: 20.47 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009617/1.69, allocations: 157.5 kB / 0.7549 GB, free: 20.42 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=28): time 1.109e-05/1.69, allocations: 0 / 0.7549 GB, free: 20.42 MB / 0.5762 GB Notification: Performance of matching and sorting (n=28): time 0.001221/1.691, allocations: 372.5 kB / 0.7552 GB, free: 20.37 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001369/1.691, allocations: 53.22 kB / 0.7553 GB, free: 20.3 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008319/1.692, allocations: 235 kB / 0.7555 GB, free: 20.2 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 9.68e-05/1.693, allocations: 34.64 kB / 0.7555 GB, free: 20.17 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002094/1.693, allocations: 165.3 kB / 0.7557 GB, free: 20.06 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 7.744e-05/1.693, allocations: 88.75 kB / 0.7558 GB, free: 20.01 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001137/1.693, allocations: 63.44 kB / 0.7558 GB, free: 19.99 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001061/1.693, allocations: 331.8 kB / 0.7561 GB, free: 19.68 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004801/1.694, allocations: 121 kB / 0.7563 GB, free: 19.67 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008247/1.694, allocations: 167.8 kB / 0.7564 GB, free: 19.6 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00237/1.697, allocations: 487.4 kB / 0.7569 GB, free: 19.53 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.779e-05/1.697, allocations: 0 / 0.7569 GB, free: 19.53 MB / 0.5762 GB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001179/1.698, allocations: 344.9 kB / 0.7572 GB, free: 19.47 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.284e-05/1.698, allocations: 6.312 kB / 0.7572 GB, free: 19.47 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.99e-05/1.698, allocations: 3.594 kB / 0.7572 GB, free: 19.47 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.827e-05/1.698, allocations: 7.656 kB / 0.7572 GB, free: 19.47 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005305/1.699, allocations: 64.11 kB / 0.7573 GB, free: 19.47 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.458e-05/1.699, allocations: 7.203 kB / 0.7573 GB, free: 19.47 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005575/1.699, allocations: 29.94 kB / 0.7573 GB, free: 19.46 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001443/1.7, allocations: 14.23 kB / 0.7573 GB, free: 19.46 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.0004549/1.7, allocations: 173.5 kB / 0.7575 GB, free: 19.34 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.561e-05/1.7, allocations: 22.48 kB / 0.7575 GB, free: 19.32 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001422/1.702, allocations: 285.3 kB / 0.7578 GB, free: 19.29 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.629e-05/1.702, allocations: 7.391 kB / 0.7578 GB, free: 19.29 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.199e-05/1.702, allocations: 6.594 kB / 0.7578 GB, free: 19.29 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.744e-05/1.702, allocations: 2.375 kB / 0.7578 GB, free: 19.29 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002571/1.704, allocations: 0.7478 MB / 0.7585 GB, free: 18.96 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.454e-05/1.705, allocations: 0 / 0.7585 GB, free: 18.96 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004339/1.705, allocations: 41.73 kB / 0.7586 GB, free: 18.96 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.036e-05/1.705, allocations: 2.125 kB / 0.7586 GB, free: 18.96 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.956e-05/1.705, allocations: 11.05 kB / 0.7586 GB, free: 18.96 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.059e-06/1.705, allocations: 2.688 kB / 0.7586 GB, free: 18.96 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.48e-06/1.705, allocations: 7.203 kB / 0.7586 GB, free: 18.96 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001822/1.707, allocations: 0.492 MB / 0.7591 GB, free: 18.8 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003321/1.707, allocations: 122.7 kB / 0.7592 GB, free: 18.69 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.678e-05/1.707, allocations: 7.281 kB / 0.7592 GB, free: 18.69 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002687/1.708, allocations: 15.58 kB / 0.7592 GB, free: 18.69 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.904e-05/1.708, allocations: 26.73 kB / 0.7592 GB, free: 18.69 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.59e-05/1.708, allocations: 12.77 kB / 0.7593 GB, free: 18.69 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0003537/1.708, allocations: 173.2 kB / 0.7594 GB, free: 18.61 MB / 0.5762 GB Notification: Performance of sort global known variables: time 7.32e-07/1.708, allocations: 0 / 0.7594 GB, free: 18.61 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001089/1.709, allocations: 69.94 kB / 0.7595 GB, free: 18.6 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.002641/1.712, allocations: 1.054 MB / 0.7605 GB, free: 17.91 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001145/1.713, allocations: 290.4 kB / 0.7608 GB, free: 17.88 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 9.227e-06/1.713, allocations: 0 / 0.7608 GB, free: 17.88 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.000972/1.714, allocations: 121.1 kB / 0.7609 GB, free: 17.88 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007771/1.715, allocations: 75.95 kB / 0.761 GB, free: 17.88 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008745/1.724, allocations: 2.879 MB / 0.7638 GB, free: 16.13 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003974/1.724, allocations: 0.7674 MB / 0.7645 GB, free: 15.43 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.000375/1.725, allocations: 30.05 kB / 0.7646 GB, free: 15.43 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002664/1.725, allocations: 86.97 kB / 0.7647 GB, free: 15.37 MB / 0.5762 GB Notification: Performance of SimCode: time 1.403e-06/1.725, allocations: 0 / 0.7647 GB, free: 15.37 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06989/1.795, allocations: 6.106 MB / 0.7706 GB, free: 15.08 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.4/12.19, allocations: 11.42 kB / 0.7706 GB, free: 15.08 MB / 0.5762 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)