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.004718/0.004718, allocations: 102 kB / 15.73 MB, free: 6.039 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.001228/0.001228, allocations: 194.5 kB / 16.67 MB, free: 5.961 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.188/1.188, allocations: 222.9 MB / 240.4 MB, free: 15.16 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.7724/0.7724, allocations: 143.1 MB / 433.6 MB, free: 11.97 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001075/0.001075, allocations: 64.69 kB / 0.595 GB, free: 12.79 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1329/0.134, allocations: 82.03 MB / 0.6751 GB, free: 10.86 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.3659/0.4999, allocations: 75.81 MB / 0.7491 GB, free: 0.5391 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.2732/0.7731, allocations: 0.8708 MB / 0.75 GB, free: 22.23 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001719/0.7733, allocations: 4.25 kB / 0.75 GB, free: 22.23 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0001683/0.7735, allocations: 39.22 kB / 0.75 GB, free: 22.23 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0002519/0.7738, allocations: 86.25 kB / 0.7501 GB, free: 22.23 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003136/0.7741, allocations: 145 kB / 0.7503 GB, free: 22.23 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0002793/0.7744, allocations: 312.8 kB / 0.7506 GB, free: 22.23 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001817/0.7746, allocations: 124.6 kB / 0.7507 GB, free: 22.22 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001676/0.7747, allocations: 127.7 kB / 0.7508 GB, free: 22.2 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001575/0.7749, allocations: 135.4 kB / 0.7509 GB, free: 22.17 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 4.589e-05/0.7749, allocations: 28.16 kB / 0.751 GB, free: 22.17 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001511/0.7751, allocations: 66.97 kB / 0.751 GB, free: 22.17 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001017/0.7752, allocations: 75.66 kB / 0.7511 GB, free: 22.16 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0001418/0.7754, allocations: 148.2 kB / 0.7512 GB, free: 22.11 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0003968/0.7758, allocations: 373.5 kB / 0.7516 GB, free: 22.06 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.377e-06/0.7758, allocations: 0.625 kB / 0.7516 GB, free: 22.06 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.743e-06/0.7758, allocations: 2.156 kB / 0.7516 GB, free: 22.06 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 5.741e-06/0.7758, allocations: 0 / 0.7516 GB, free: 22.06 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.0009354/0.7767, allocations: 0.6085 MB / 0.7522 GB, free: 21.62 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.119e-05/0.7768, allocations: 11.16 kB / 0.7522 GB, free: 21.62 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.22e-05/0.7768, allocations: 65.31 kB / 0.7523 GB, free: 21.58 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.863e-05/0.7769, allocations: 34.06 kB / 0.7523 GB, free: 21.57 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002602/0.7772, allocations: 276.4 kB / 0.7526 GB, free: 21.34 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.377e-05/0.7772, allocations: 17.62 kB / 0.7526 GB, free: 21.34 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.735e-05/0.7773, allocations: 29.02 kB / 0.7526 GB, free: 21.34 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004724/0.7778, allocations: 281.5 kB / 0.7529 GB, free: 21.28 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.442e-05/0.7778, allocations: 4 kB / 0.7529 GB, free: 21.28 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.158e-05/0.7778, allocations: 6.25 kB / 0.7529 GB, free: 21.28 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.436e-06/0.7778, allocations: 10.41 kB / 0.7529 GB, free: 21.28 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004742/0.7783, allocations: 186.9 kB / 0.7531 GB, free: 21.28 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.001134/0.7794, allocations: 1.225 MB / 0.7543 GB, free: 20.46 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007172/0.7802, allocations: 264.7 kB / 0.7545 GB, free: 20.44 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002467/0.7804, allocations: 119.2 kB / 0.7546 GB, free: 20.43 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 2.302e-05/0.7805, allocations: 5.391 kB / 0.7546 GB, free: 20.43 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003155/0.7808, allocations: 161.6 kB / 0.7548 GB, free: 20.38 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=28): time 1.573e-06/0.7808, allocations: 0 / 0.7548 GB, free: 20.38 MB / 0.5762 GB Notification: Performance of matching and sorting (n=28): time 0.0008311/0.7816, allocations: 370.8 kB / 0.7551 GB, free: 20.33 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.444e-05/0.7817, allocations: 56.75 kB / 0.7552 GB, free: 20.27 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00019/0.7819, allocations: 229.5 kB / 0.7554 GB, free: 20.16 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.415e-05/0.7819, allocations: 38.89 kB / 0.7555 GB, free: 20.13 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 6.788e-05/0.782, allocations: 161.5 kB / 0.7556 GB, free: 20.02 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 5.147e-05/0.782, allocations: 92.67 kB / 0.7557 GB, free: 19.97 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.867e-05/0.7821, allocations: 62.14 kB / 0.7558 GB, free: 19.95 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 6.117e-05/0.7822, allocations: 335 kB / 0.7561 GB, free: 19.64 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002616/0.7824, allocations: 116.5 kB / 0.7562 GB, free: 19.63 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002553/0.7827, allocations: 170.7 kB / 0.7563 GB, free: 19.56 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001157/0.7839, allocations: 490.1 kB / 0.7568 GB, free: 19.49 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.7839, allocations: 3.969 kB / 0.7568 GB, free: 19.49 MB / 0.5762 GB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0005793/0.7845, allocations: 344.6 kB / 0.7571 GB, free: 19.43 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.453e-05/0.7845, allocations: 5.328 kB / 0.7572 GB, free: 19.43 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.038e-05/0.7845, allocations: 1.844 kB / 0.7572 GB, free: 19.43 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.504e-05/0.7845, allocations: 7.969 kB / 0.7572 GB, free: 19.43 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002545/0.7848, allocations: 63.64 kB / 0.7572 GB, free: 19.43 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.707e-06/0.7848, allocations: 7.469 kB / 0.7572 GB, free: 19.43 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001692/0.785, allocations: 33.36 kB / 0.7573 GB, free: 19.42 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.175e-05/0.785, allocations: 10.78 kB / 0.7573 GB, free: 19.42 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.0001543/0.7852, allocations: 164.9 kB / 0.7574 GB, free: 19.3 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.834e-05/0.7852, allocations: 23.52 kB / 0.7574 GB, free: 19.29 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006481/0.7859, allocations: 289.1 kB / 0.7577 GB, free: 19.25 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.911e-06/0.7859, allocations: 7.812 kB / 0.7577 GB, free: 19.25 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.447e-06/0.7859, allocations: 3.562 kB / 0.7577 GB, free: 19.25 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.811e-06/0.7859, allocations: 2.062 kB / 0.7577 GB, free: 19.25 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00112/0.787, allocations: 0.7423 MB / 0.7585 GB, free: 18.92 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.355e-06/0.787, allocations: 3.156 kB / 0.7585 GB, free: 18.92 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002393/0.7873, allocations: 49.45 kB / 0.7585 GB, free: 18.92 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.927e-06/0.7873, allocations: 2.797 kB / 0.7585 GB, free: 18.92 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.018e-05/0.7873, allocations: 6.328 kB / 0.7585 GB, free: 18.92 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.314e-06/0.7873, allocations: 2.5 kB / 0.7585 GB, free: 18.92 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.7873, allocations: 1.547 kB / 0.7585 GB, free: 18.92 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008614/0.7882, allocations: 0.4941 MB / 0.759 GB, free: 18.76 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 8.361e-05/0.7883, allocations: 123.1 kB / 0.7591 GB, free: 18.65 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.174e-05/0.7883, allocations: 12.77 kB / 0.7591 GB, free: 18.65 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001874/0.7885, allocations: 20.45 kB / 0.7592 GB, free: 18.65 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.892e-05/0.7886, allocations: 23.5 kB / 0.7592 GB, free: 18.65 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.149e-05/0.7886, allocations: 7.297 kB / 0.7592 GB, free: 18.65 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001369/0.7888, allocations: 172.7 kB / 0.7594 GB, free: 18.57 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.21e-07/0.7888, allocations: 1.938 kB / 0.7594 GB, free: 18.57 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0003254/0.7891, allocations: 68.17 kB / 0.7594 GB, free: 18.56 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.00111/0.7902, allocations: 1.054 MB / 0.7604 GB, free: 17.88 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0005987/0.7908, allocations: 285.5 kB / 0.7607 GB, free: 17.84 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.7908, allocations: 0 / 0.7607 GB, free: 17.84 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002819/0.7911, allocations: 126.9 kB / 0.7608 GB, free: 17.84 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004862/0.7916, allocations: 73.08 kB / 0.7609 GB, free: 17.84 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003612/0.7952, allocations: 2.878 MB / 0.7637 GB, free: 16.09 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001829/0.7954, allocations: 0.7695 MB / 0.7645 GB, free: 15.39 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001171/0.7956, allocations: 38.67 kB / 0.7645 GB, free: 15.39 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001097/0.7957, allocations: 82.59 kB / 0.7646 GB, free: 15.33 MB / 0.5762 GB Notification: Performance of SimCode: time 2.3e-07/0.7957, allocations: 3.188 kB / 0.7646 GB, free: 15.33 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02316/0.8189, allocations: 6.197 MB / 0.7706 GB, free: 15.03 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.003/7.822, allocations: 12.42 kB / 0.7707 GB, free: 15.03 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)