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.527/1.527, allocations: 252 MB / 267.3 MB, free: 10.86 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.001034/0.001034, allocations: 174.6 kB / 327 MB, free: 2.121 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.931/1.931, allocations: 205.4 MB / 0.578 GB, free: 20.17 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.0007812/0.0007812, allocations: 85.73 kB / 0.6826 GB, free: 12.8 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.000352/0.000352, allocations: 10.56 kB / 0.7971 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2526/0.253, allocations: 106.3 MB / 0.9009 GB, free: 63.46 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController): time 0.004989/0.258, allocations: 4.037 MB / 0.9049 GB, free: 59.4 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.1845/0.4425, allocations: 146.7 MB / 1.048 GB, free: 8.117 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001062/0.4437, allocations: 15.94 kB / 1.048 GB, free: 8.102 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 0.0008966/0.4446, allocations: 166.8 kB / 1.048 GB, free: 7.938 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.002123/0.4467, allocations: 427.1 kB / 1.049 GB, free: 7.523 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.002438/0.4492, allocations: 0.6816 MB / 1.049 GB, free: 6.848 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 0.001866/0.451, allocations: 1.129 MB / 1.05 GB, free: 5.711 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001348/0.4524, allocations: 0.5865 MB / 1.051 GB, free: 5.102 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001038/0.4535, allocations: 322.3 kB / 1.051 GB, free: 4.785 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008534/0.4543, allocations: 342 kB / 1.052 GB, free: 4.449 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 0.0002249/0.4546, allocations: 24 kB / 1.052 GB, free: 4.426 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001071/0.4556, allocations: 319.6 kB / 1.052 GB, free: 4.113 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 0.0003435/0.456, allocations: 167.2 kB / 1.052 GB, free: 3.949 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 0.0007791/0.4568, allocations: 438.9 kB / 1.053 GB, free: 3.512 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.002067/0.4589, allocations: 1.366 MB / 1.054 GB, free: 2.141 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 5.52e-06/0.4589, allocations: 0 / 1.054 GB, free: 2.141 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.014e-06/0.4589, allocations: 4 kB / 1.054 GB, free: 2.137 MB / 0.698 GB Notification: Performance of Transformations before backend: time 5.247e-05/0.459, allocations: 0 / 1.054 GB, free: 2.137 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.002997/0.462, allocations: 1.166 MB / 1.055 GB, free: 0.9219 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 5.805e-05/0.462, allocations: 12.03 kB / 1.055 GB, free: 0.9102 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003279/0.4624, allocations: 127.1 kB / 1.055 GB, free: 0.7773 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001128/0.4635, allocations: 195.4 kB / 1.055 GB, free: 0.5859 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.4955/0.9591, allocations: 0.7304 MB / 1.056 GB, free: 155.8 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.393e-05/0.9592, allocations: 65.31 kB / 1.056 GB, free: 155.8 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00011/0.9593, allocations: 77.09 kB / 1.056 GB, free: 155.8 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001854/0.9612, allocations: 0.8759 MB / 1.057 GB, free: 155.7 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.864e-05/0.9612, allocations: 0 / 1.057 GB, free: 155.7 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.608e-05/0.9613, allocations: 34.28 kB / 1.057 GB, free: 155.7 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.084e-05/0.9613, allocations: 19.19 kB / 1.057 GB, free: 155.7 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001618/0.963, allocations: 1.09 MB / 1.058 GB, free: 155.6 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004476/0.9674, allocations: 2.455 MB / 1.061 GB, free: 155 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001267/0.9687, allocations: 0.7516 MB / 1.061 GB, free: 155 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004951/0.9692, allocations: 294.7 kB / 1.062 GB, free: 154.9 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000203/0.9694, allocations: 119 kB / 1.062 GB, free: 154.8 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008668/0.9703, allocations: 444.1 kB / 1.062 GB, free: 154.8 MB / 0.698 GB Notification: Performance of pre-optimization done (n=73): time 3.236e-06/0.9703, allocations: 0 / 1.062 GB, free: 154.8 MB / 0.698 GB Notification: Performance of matching and sorting (n=73): time 0.002954/0.9733, allocations: 1.142 MB / 1.063 GB, free: 154.6 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.591e-05/0.9734, allocations: 189.6 kB / 1.063 GB, free: 154.4 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007893/0.9742, allocations: 0.6193 MB / 1.064 GB, free: 154.2 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 5.361e-05/0.9742, allocations: 43.27 kB / 1.064 GB, free: 154.2 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002694/0.9745, allocations: 400.8 kB / 1.064 GB, free: 154 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001559/0.9747, allocations: 238.1 kB / 1.065 GB, free: 153.9 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.374e-05/0.9747, allocations: 10.81 kB / 1.065 GB, free: 153.9 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001308/0.9749, allocations: 394.3 kB / 1.065 GB, free: 153.5 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004414/0.9753, allocations: 232.1 kB / 1.065 GB, free: 153.5 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005796/0.9759, allocations: 340.9 kB / 1.066 GB, free: 153.5 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001214/0.9771, allocations: 0.5625 MB / 1.066 GB, free: 153.4 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.524e-06/0.9771, allocations: 0 / 1.066 GB, free: 153.4 MB / 0.698 GB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001985/0.9791, allocations: 0.759 MB / 1.067 GB, free: 153.3 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 2.719e-05/0.9792, allocations: 5.469 kB / 1.067 GB, free: 153.3 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.157e-05/0.9792, allocations: 1 kB / 1.067 GB, free: 153.3 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006254/0.9798, allocations: 89.34 kB / 1.067 GB, free: 153.3 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006994/0.9805, allocations: 141.8 kB / 1.067 GB, free: 153.3 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001926/0.9825, allocations: 1.544 MB / 1.069 GB, free: 152 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006178/0.9831, allocations: 80.41 kB / 1.069 GB, free: 151.9 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.153e-05/0.9832, allocations: 28.44 kB / 1.069 GB, free: 151.9 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 ($whenCondition2,$whenCondition1,$PRE.weaDat.conTimMin.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTim.tNext) * 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.0003881/0.9836, allocations: 260.8 kB / 1.069 GB, free: 151.8 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001305/0.9837, allocations: 86.59 kB / 1.069 GB, free: 151.8 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00261/0.9863, allocations: 1.017 MB / 1.07 GB, free: 151.6 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.219e-05/0.9864, allocations: 8.25 kB / 1.07 GB, free: 151.6 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.415e-06/0.9864, allocations: 0 / 1.07 GB, free: 151.6 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.468e-05/0.9864, allocations: 9.359 kB / 1.07 GB, free: 151.6 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001233/0.9876, allocations: 0.8813 MB / 1.071 GB, free: 151.4 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.847e-06/0.9876, allocations: 0.9375 kB / 1.071 GB, free: 151.4 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006525/0.9883, allocations: 145 kB / 1.071 GB, free: 151.4 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005491/0.9889, allocations: 84.03 kB / 1.071 GB, free: 151.4 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.933e-05/0.9889, allocations: 22.94 kB / 1.071 GB, free: 151.4 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001684/0.9906, allocations: 1.565 MB / 1.073 GB, free: 150.1 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.466e-06/0.9906, allocations: 4.75 kB / 1.073 GB, free: 150.1 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002216/0.9929, allocations: 0.8732 MB / 1.074 GB, free: 149.9 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003776/0.9932, allocations: 283 kB / 1.074 GB, free: 149.8 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001045/0.9934, allocations: 19.75 kB / 1.074 GB, free: 149.8 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005686/0.9939, allocations: 68.78 kB / 1.074 GB, free: 149.8 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001725/0.9941, allocations: 66.38 kB / 1.074 GB, free: 149.8 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.971e-05/0.9942, allocations: 31.16 kB / 1.074 GB, free: 149.8 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0007377/0.995, allocations: 451.8 kB / 1.074 GB, free: 149.7 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.463e-06/0.995, allocations: 0.5625 kB / 1.074 GB, free: 149.7 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0009522/0.9959, allocations: 272.8 kB / 1.075 GB, free: 149.7 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.003263/0.9992, allocations: 1.897 MB / 1.077 GB, free: 148.8 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.001784/1.001, allocations: 0.7596 MB / 1.077 GB, free: 148.7 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 3.467e-06/1.001, allocations: 0 / 1.077 GB, free: 148.7 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.001011/1.002, allocations: 0.4953 MB / 1.078 GB, free: 148.6 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001229/1.003, allocations: 267.9 kB / 1.078 GB, free: 148.5 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01224/1.016, allocations: 6.761 MB / 1.085 GB, free: 144.5 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004581/1.016, allocations: 1.012 MB / 1.086 GB, free: 143.7 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.001036/1.017, allocations: 261.8 kB / 1.086 GB, free: 143.6 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005027/1.018, allocations: 373.5 kB / 1.086 GB, free: 143.3 MB / 0.698 GB Notification: Performance of SimCode: time 1.032e-06/1.018, allocations: 0 / 1.086 GB, free: 143.3 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03732/1.055, allocations: 19.31 MB / 1.105 GB, free: 126.1 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001976/1.055, allocations: 307.2 kB / 1.105 GB, free: 125.8 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.032/4.087, allocations: 4 kB / 1.105 GB, free: 125.8 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)