Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_SolarCollectors_Controls_Examples_SolarPumpController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_SolarCollectors_Controls_Examples_SolarPumpController",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.329/1.329, allocations: 251.5 MB / 266.7 MB, free: 11 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.000996/0.000996, allocations: 180.3 kB / 325.9 MB, free: 2.688 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.84/1.84, allocations: 205 MB / 0.576 GB, free: 21.02 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008649/0.0008647, allocations: 95.92 kB / 0.6797 GB, free: 14.72 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003481/0.0003481, allocations: 12.08 kB / 0.7933 GB, free: 136.4 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2045/0.2048, allocations: 105.4 MB / 0.8962 GB, free: 68.08 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController): time 0.004038/0.2089, allocations: 4.127 MB / 0.9002 GB, free: 63.93 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.151/0.36, allocations: 148.3 MB / 1.045 GB, free: 11.06 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009233/0.3609, allocations: 15.94 kB / 1.045 GB, free: 11.04 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 0.0007796/0.3617, allocations: 174.7 kB / 1.045 GB, free: 10.87 MB / 0.698 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/BoundaryConditions/WeatherData/BaseClasses/getHeaderElementTMY3.mo:2:1-105:25:writable] Warning: Pure function ‘Buildings.BoundaryConditions.WeatherData.BaseClasses.getHeaderElementTMY3‘ contains a call to impure function ‘Modelica.Utilities.Streams.readLine‘. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/BoundaryConditions/WeatherData/BaseClasses/getLongitudeTMY3.mo:2:1-48:21:writable] Warning: Pure function ‘Buildings.BoundaryConditions.WeatherData.BaseClasses.getLongitudeTMY3‘ contains a call to impure function ‘Buildings.BoundaryConditions.WeatherData.BaseClasses.getHeaderElementTMY3‘. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/BoundaryConditions/WeatherData/BaseClasses/getLatitudeTMY3.mo:2:1-48:20:writable] Warning: Pure function ‘Buildings.BoundaryConditions.WeatherData.BaseClasses.getLatitudeTMY3‘ contains a call to impure function ‘Buildings.BoundaryConditions.WeatherData.BaseClasses.getHeaderElementTMY3‘. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/BoundaryConditions/WeatherData/BaseClasses/getTimeZoneTMY3.mo:2:1-47:20:writable] Warning: Pure function ‘Buildings.BoundaryConditions.WeatherData.BaseClasses.getTimeZoneTMY3‘ contains a call to impure function ‘Buildings.BoundaryConditions.WeatherData.BaseClasses.getHeaderElementTMY3‘. Notification: Performance of NFTyping.typeBindings: time 0.001646/0.3634, allocations: 422.6 kB / 1.046 GB, free: 10.46 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.001635/0.365, allocations: 0.6782 MB / 1.046 GB, free: 9.789 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 0.0009923/0.366, allocations: 1.129 MB / 1.047 GB, free: 8.652 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007559/0.3668, allocations: 0.5943 MB / 1.048 GB, free: 8.035 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004303/0.3672, allocations: 318.3 kB / 1.048 GB, free: 7.723 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004384/0.3677, allocations: 338 kB / 1.049 GB, free: 7.391 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 7.878e-05/0.3678, allocations: 24 kB / 1.049 GB, free: 7.367 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007215/0.3685, allocations: 311.7 kB / 1.049 GB, free: 7.062 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 0.0002126/0.3687, allocations: 179.1 kB / 1.049 GB, free: 6.887 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 0.0003736/0.3691, allocations: 409.2 kB / 1.05 GB, free: 6.484 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.001314/0.3704, allocations: 1.366 MB / 1.051 GB, free: 5.113 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.3705, allocations: 4 kB / 1.051 GB, free: 5.109 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.252e-06/0.3705, allocations: 0 / 1.051 GB, free: 5.109 MB / 0.698 GB Notification: Performance of Transformations before backend: time 1.072e-05/0.3705, allocations: 0 / 1.051 GB, free: 5.109 MB / 0.698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.002082/0.3726, allocations: 1.155 MB / 1.052 GB, free: 3.906 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 5.424e-05/0.3726, allocations: 15.97 kB / 1.052 GB, free: 3.891 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001578/0.3728, allocations: 127.1 kB / 1.052 GB, free: 3.758 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008757/0.3737, allocations: 195.4 kB / 1.052 GB, free: 3.566 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001061/0.3748, allocations: 0.7388 MB / 1.053 GB, free: 2.785 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.683e-05/0.3748, allocations: 61.94 kB / 1.053 GB, free: 2.723 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.107e-05/0.3749, allocations: 80 kB / 1.053 GB, free: 2.645 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001451/0.3764, allocations: 0.8793 MB / 1.054 GB, free: 1.727 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.013e-05/0.3764, allocations: 0 / 1.054 GB, free: 1.727 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.407e-05/0.3765, allocations: 32 kB / 1.054 GB, free: 1.695 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.162e-05/0.3765, allocations: 20 kB / 1.054 GB, free: 1.676 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001624/0.3781, allocations: 1.089 MB / 1.055 GB, free: 0.582 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3765/0.7547, allocations: 2.44 MB / 1.058 GB, free: 159.4 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001075/0.7558, allocations: 0.7535 MB / 1.058 GB, free: 159.4 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004287/0.7562, allocations: 291.5 kB / 1.059 GB, free: 159.4 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001495/0.7564, allocations: 111.7 kB / 1.059 GB, free: 159.3 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006764/0.7571, allocations: 456.4 kB / 1.059 GB, free: 159.2 MB / 0.698 GB Notification: Performance of pre-optimization done (n=73): time 3.156e-06/0.7571, allocations: 0 / 1.059 GB, free: 159.2 MB / 0.698 GB Notification: Performance of matching and sorting (n=73): time 0.002718/0.7598, allocations: 1.139 MB / 1.06 GB, free: 159 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.075e-05/0.7599, allocations: 190.2 kB / 1.06 GB, free: 158.8 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006636/0.7605, allocations: 0.6228 MB / 1.061 GB, free: 158.7 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 4.628e-05/0.7606, allocations: 41.17 kB / 1.061 GB, free: 158.7 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002327/0.7608, allocations: 402.8 kB / 1.061 GB, free: 158.5 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.000139/0.761, allocations: 246.5 kB / 1.062 GB, free: 158.4 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.884e-05/0.7611, allocations: 50.88 kB / 1.062 GB, free: 158.4 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001018/0.7612, allocations: 391.9 kB / 1.062 GB, free: 158 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004234/0.7616, allocations: 237.1 kB / 1.062 GB, free: 158 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004939/0.7621, allocations: 334 kB / 1.063 GB, free: 158 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009673/0.7631, allocations: 0.563 MB / 1.063 GB, free: 157.9 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.7631, allocations: 1.031 kB / 1.063 GB, free: 157.9 MB / 0.698 GB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001769/0.7649, allocations: 0.7581 MB / 1.064 GB, free: 157.8 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.766e-05/0.7649, allocations: 9.969 kB / 1.064 GB, free: 157.8 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.863e-06/0.7649, allocations: 0.9062 kB / 1.064 GB, free: 157.8 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005893/0.7655, allocations: 83.69 kB / 1.064 GB, free: 157.8 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005816/0.7661, allocations: 144.2 kB / 1.064 GB, free: 157.8 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001686/0.7678, allocations: 1.537 MB / 1.066 GB, free: 156.5 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005406/0.7683, allocations: 78.91 kB / 1.066 GB, free: 156.4 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.83e-05/0.7684, allocations: 30.67 kB / 1.066 GB, free: 156.4 MB / 0.698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 6 (weaDat.conTim.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTimMin.tNext,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (76): * Single equations (assignments): 75 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.000368/0.7688, allocations: 259.6 kB / 1.066 GB, free: 156.3 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001397/0.7689, allocations: 85.94 kB / 1.066 GB, free: 156.3 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002325/0.7713, allocations: 1.014 MB / 1.067 GB, free: 156.2 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.048e-05/0.7713, allocations: 8.75 kB / 1.067 GB, free: 156.2 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.517e-06/0.7713, allocations: 0.7812 kB / 1.067 GB, free: 156.2 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.189e-05/0.7713, allocations: 4.312 kB / 1.067 GB, free: 156.2 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001098/0.7724, allocations: 0.8824 MB / 1.068 GB, free: 155.9 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.06e-06/0.7724, allocations: 5.969 kB / 1.068 GB, free: 155.9 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005824/0.773, allocations: 147 kB / 1.068 GB, free: 155.9 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005175/0.7736, allocations: 83.91 kB / 1.068 GB, free: 155.9 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.55e-05/0.7736, allocations: 23.28 kB / 1.068 GB, free: 155.9 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001622/0.7752, allocations: 1.561 MB / 1.07 GB, free: 154.6 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.7753, allocations: 6.438 kB / 1.07 GB, free: 154.6 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001994/0.7773, allocations: 0.8782 MB / 1.071 GB, free: 154.5 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003235/0.7776, allocations: 268.3 kB / 1.071 GB, free: 154.3 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001064/0.7777, allocations: 18.22 kB / 1.071 GB, free: 154.3 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000531/0.7782, allocations: 70.44 kB / 1.071 GB, free: 154.3 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001803/0.7784, allocations: 61.02 kB / 1.071 GB, free: 154.3 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.346e-05/0.7785, allocations: 30 kB / 1.071 GB, free: 154.3 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0006694/0.7792, allocations: 458.1 kB / 1.071 GB, free: 154.1 MB / 0.698 GB Notification: Performance of sort global known variables: time 2.71e-07/0.7792, allocations: 0.875 kB / 1.071 GB, free: 154.1 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0008811/0.7801, allocations: 268.9 kB / 1.072 GB, free: 154 MB / 0.698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of discrete states: 2 (weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 81 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003197/0.7833, allocations: 1.9 MB / 1.074 GB, free: 153 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.001552/0.7849, allocations: 0.7589 MB / 1.074 GB, free: 152.7 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 4.098e-06/0.7849, allocations: 1.156 kB / 1.074 GB, free: 152.7 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0008626/0.7857, allocations: 0.4929 MB / 1.075 GB, free: 152.4 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001154/0.7869, allocations: 274.9 kB / 1.075 GB, free: 152.3 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01262/0.7995, allocations: 6.731 MB / 1.082 GB, free: 148.7 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004267/0.8, allocations: 1.014 MB / 1.083 GB, free: 147.9 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0008343/0.8008, allocations: 261 kB / 1.083 GB, free: 147.9 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003968/0.8013, allocations: 375 kB / 1.083 GB, free: 147.6 MB / 0.698 GB Notification: Performance of SimCode: time 5.71e-07/0.8013, allocations: 1.281 kB / 1.083 GB, free: 147.6 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.425/1.226, allocations: 19.3 MB / 1.102 GB, free: 130.9 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000182/1.227, allocations: 309.8 kB / 1.102 GB, free: 130.5 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.178/4.405, allocations: 0 / 1.102 GB, free: 130.5 MB / 0.698 GB (rm -f Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Fluid_SolarCollectors_Controls_Examples_SolarPumpController_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Fluid_SolarCollectors_Controls_Examples_SolarPumpController.fmu > Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.pipe 2>&1)