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.001151/0.001151, allocations: 102.7 kB / 16.4 MB, free: 5.977 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.001156/0.001156, allocations: 190.8 kB / 17.34 MB, free: 5.586 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.415/1.415, allocations: 222.9 MB / 241 MB, free: 15.08 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.9736/0.9736, allocations: 143.1 MB / 434.3 MB, free: 11.96 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001231/0.001231, allocations: 60.11 kB / 0.5962 GB, free: 12.29 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1954/0.1966, allocations: 82.03 MB / 0.6763 GB, free: 10.36 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.5497/0.7464, allocations: 75.82 MB / 0.7503 GB, free: 28 kB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.4701/1.216, allocations: 0.859 MB / 0.7511 GB, free: 22.75 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001753/1.217, allocations: 3.719 kB / 0.7511 GB, free: 22.75 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0002103/1.217, allocations: 39.34 kB / 0.7512 GB, free: 22.75 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0003178/1.217, allocations: 89.67 kB / 0.7513 GB, free: 22.75 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004206/1.218, allocations: 140.7 kB / 0.7514 GB, free: 22.74 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0004372/1.218, allocations: 320 kB / 0.7517 GB, free: 22.73 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002825/1.218, allocations: 119.7 kB / 0.7518 GB, free: 22.73 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002423/1.219, allocations: 124.9 kB / 0.7519 GB, free: 22.7 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002331/1.219, allocations: 133.1 kB / 0.7521 GB, free: 22.67 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 6.11e-05/1.219, allocations: 27.84 kB / 0.7521 GB, free: 22.67 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002157/1.219, allocations: 71.02 kB / 0.7522 GB, free: 22.67 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001513/1.219, allocations: 77.92 kB / 0.7522 GB, free: 22.66 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.000223/1.22, allocations: 150.5 kB / 0.7524 GB, free: 22.62 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0005838/1.22, allocations: 368.5 kB / 0.7527 GB, free: 22.57 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 6.212e-06/1.22, allocations: 0.7969 kB / 0.7527 GB, free: 22.57 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.513e-06/1.22, allocations: 1.406 kB / 0.7527 GB, free: 22.57 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 8.385e-06/1.22, allocations: 0 / 0.7527 GB, free: 22.57 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.001226/1.221, allocations: 0.6115 MB / 0.7533 GB, free: 22.13 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.892e-05/1.222, allocations: 8.938 kB / 0.7533 GB, free: 22.13 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002004/1.222, allocations: 34.72 kB / 0.7534 GB, free: 22.11 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004501/1.222, allocations: 281.7 kB / 0.7536 GB, free: 21.89 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.517e-05/1.222, allocations: 18.5 kB / 0.7537 GB, free: 21.89 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.532e-05/1.222, allocations: 26.12 kB / 0.7537 GB, free: 21.89 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006515/1.223, allocations: 284.3 kB / 0.754 GB, free: 21.82 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.092e-05/1.223, allocations: 0 / 0.754 GB, free: 21.82 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.134e-05/1.223, allocations: 11.38 kB / 0.754 GB, free: 21.82 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.346e-05/1.223, allocations: 5.688 kB / 0.754 GB, free: 21.82 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005888/1.224, allocations: 189.8 kB / 0.7542 GB, free: 21.82 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.001668/1.225, allocations: 1.222 MB / 0.7553 GB, free: 21.01 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009253/1.226, allocations: 268.2 kB / 0.7556 GB, free: 20.98 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003344/1.227, allocations: 119.5 kB / 0.7557 GB, free: 20.98 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 3.189e-05/1.227, allocations: 2.672 kB / 0.7557 GB, free: 20.98 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004256/1.227, allocations: 161.1 kB / 0.7559 GB, free: 20.93 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=28): time 1.884e-06/1.227, allocations: 3.688 kB / 0.7559 GB, free: 20.93 MB / 0.5762 GB Notification: Performance of matching and sorting (n=28): time 0.001074/1.228, allocations: 366.7 kB / 0.7562 GB, free: 20.88 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.771e-05/1.228, allocations: 61.41 kB / 0.7563 GB, free: 20.81 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002297/1.228, allocations: 231 kB / 0.7565 GB, free: 20.71 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 3.015e-05/1.229, allocations: 33.92 kB / 0.7565 GB, free: 20.68 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001081/1.229, allocations: 164.2 kB / 0.7567 GB, free: 20.57 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 6.191e-05/1.229, allocations: 87.08 kB / 0.7568 GB, free: 20.52 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.182e-05/1.229, allocations: 62.3 kB / 0.7568 GB, free: 20.5 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 7.083e-05/1.229, allocations: 338 kB / 0.7572 GB, free: 20.19 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002847/1.229, allocations: 117.5 kB / 0.7573 GB, free: 20.18 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00028/1.229, allocations: 172.1 kB / 0.7574 GB, free: 20.11 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001338/1.231, allocations: 488 kB / 0.7579 GB, free: 20.03 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.998e-06/1.231, allocations: 0.625 kB / 0.7579 GB, free: 20.03 MB / 0.5762 GB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0007021/1.232, allocations: 340.2 kB / 0.7582 GB, free: 19.98 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.04e-05/1.232, allocations: 6 kB / 0.7582 GB, free: 19.98 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.699e-05/1.232, allocations: 10.56 kB / 0.7582 GB, free: 19.98 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.506e-05/1.232, allocations: 8.078 kB / 0.7583 GB, free: 19.98 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002809/1.232, allocations: 60.05 kB / 0.7583 GB, free: 19.98 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.979e-06/1.232, allocations: 3.562 kB / 0.7583 GB, free: 19.98 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001907/1.232, allocations: 34.78 kB / 0.7583 GB, free: 19.96 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.421e-05/1.232, allocations: 8.953 kB / 0.7584 GB, free: 19.96 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.0001956/1.232, allocations: 168 kB / 0.7585 GB, free: 19.84 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.402e-05/1.232, allocations: 22.91 kB / 0.7585 GB, free: 19.83 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007638/1.233, allocations: 295.5 kB / 0.7588 GB, free: 19.8 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.284e-06/1.233, allocations: 6.469 kB / 0.7588 GB, free: 19.79 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.573e-06/1.233, allocations: 0.7812 kB / 0.7588 GB, free: 19.79 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.616e-06/1.233, allocations: 3.375 kB / 0.7588 GB, free: 19.79 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001323/1.235, allocations: 0.748 MB / 0.7596 GB, free: 19.46 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.988e-06/1.235, allocations: 4.719 kB / 0.7596 GB, free: 19.46 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002503/1.235, allocations: 41.69 kB / 0.7596 GB, free: 19.46 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.218e-06/1.235, allocations: 4.469 kB / 0.7596 GB, free: 19.46 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.494e-05/1.235, allocations: 7.016 kB / 0.7596 GB, free: 19.46 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.138e-06/1.235, allocations: 1.75 kB / 0.7596 GB, free: 19.46 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/1.235, allocations: 5.031 kB / 0.7596 GB, free: 19.46 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001018/1.236, allocations: 0.4965 MB / 0.7601 GB, free: 19.3 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 9.349e-05/1.236, allocations: 122.4 kB / 0.7602 GB, free: 19.19 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.174e-05/1.236, allocations: 9.562 kB / 0.7602 GB, free: 19.19 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002009/1.236, allocations: 19.17 kB / 0.7602 GB, free: 19.19 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.716e-05/1.236, allocations: 18.97 kB / 0.7603 GB, free: 19.19 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.12e-05/1.236, allocations: 11.17 kB / 0.7603 GB, free: 19.19 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001791/1.237, allocations: 171.8 kB / 0.7604 GB, free: 19.11 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.31e-07/1.237, allocations: 1.781 kB / 0.7604 GB, free: 19.11 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0004297/1.237, allocations: 69.94 kB / 0.7605 GB, free: 19.1 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.0002101/1.237, allocations: 129.3 kB / 0.7606 GB, free: 19.01 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0007454/1.238, allocations: 288.9 kB / 0.7609 GB, free: 18.98 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/1.238, allocations: 0.9375 kB / 0.7609 GB, free: 18.98 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0003336/1.238, allocations: 120.2 kB / 0.761 GB, free: 18.98 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005452/1.239, allocations: 72.39 kB / 0.7611 GB, free: 18.97 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001316/1.24, allocations: 0.6701 MB / 0.7617 GB, free: 18.64 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002898/1.241, allocations: 0.7734 MB / 0.7625 GB, free: 17.94 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.16e-05/1.241, allocations: 24.28 kB / 0.7625 GB, free: 17.93 MB / 0.5762 GB Notification: Performance of SimCode: time 2.2e-07/1.241, allocations: 0 / 0.7625 GB, free: 17.93 MB / 0.5762 GB Notification: Performance of Templates: time 0.008434/1.249, allocations: 3.626 MB / 0.7661 GB, free: 17.86 MB / 0.5762 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)