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.496/1.496, allocations: 252 MB / 267 MB, free: 10.97 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.001083/0.001083, allocations: 174.9 kB / 326.6 MB, free: 2.242 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.199/2.199, allocations: 205.4 MB / 0.5777 GB, free: 20.25 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.000847/0.0008473, allocations: 88.25 kB / 0.6822 GB, free: 12.89 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003704/0.0003705, allocations: 11.47 kB / 0.7965 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.285/0.2854, allocations: 106.3 MB / 0.9003 GB, free: 63.84 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController): time 0.005319/0.2908, allocations: 3.825 MB / 0.904 GB, free: 59.99 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.1774/0.4682, allocations: 136.8 MB / 1.038 GB, free: 2.77 MB / 0.6823 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009304/0.4692, allocations: 19.88 kB / 1.038 GB, free: 2.75 MB / 0.6823 GB Notification: Performance of NFTyping.typeComponents: time 0.0006766/0.4699, allocations: 158.9 kB / 1.038 GB, free: 2.594 MB / 0.6823 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.001633/0.4716, allocations: 400.4 kB / 1.038 GB, free: 2.203 MB / 0.6823 GB Notification: Performance of NFTyping.typeClassSections: time 0.0019/0.4735, allocations: 0.6009 MB / 1.039 GB, free: 1.609 MB / 0.6823 GB Notification: Performance of NFFlatten.flatten: time 0.001257/0.4747, allocations: 1.051 MB / 1.04 GB, free: 0.5508 MB / 0.6823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007449/0.4755, allocations: 483.2 kB / 1.04 GB, free: 68 kB / 0.6823 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004942/0.476, allocations: 290.6 kB / 1.041 GB, free: 15.78 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004613/0.4765, allocations: 334.2 kB / 1.041 GB, free: 15.45 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 7.726e-05/0.4766, allocations: 20 kB / 1.041 GB, free: 15.43 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000746/0.4773, allocations: 295.7 kB / 1.041 GB, free: 15.14 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 0.0001871/0.4775, allocations: 167.2 kB / 1.041 GB, free: 14.98 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 0.0001826/0.4777, allocations: 189.1 kB / 1.042 GB, free: 14.79 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.001211/0.4789, allocations: 1.079 MB / 1.043 GB, free: 13.71 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 6.291e-06/0.4789, allocations: 0 / 1.043 GB, free: 13.71 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.535e-06/0.479, allocations: 0 / 1.043 GB, free: 13.71 MB / 0.698 GB Notification: Performance of Transformations before backend: time 1.442e-05/0.479, allocations: 0 / 1.043 GB, free: 13.71 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.00228/0.4813, allocations: 1.174 MB / 1.044 GB, free: 12.48 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 5.394e-05/0.4813, allocations: 12.03 kB / 1.044 GB, free: 12.47 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001955/0.4815, allocations: 134.9 kB / 1.044 GB, free: 12.33 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008928/0.4824, allocations: 190.5 kB / 1.044 GB, free: 12.14 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001035/0.4835, allocations: 0.7 MB / 1.045 GB, free: 11.4 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.582e-05/0.4835, allocations: 58 kB / 1.045 GB, free: 11.34 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001026/0.4836, allocations: 80 kB / 1.045 GB, free: 11.26 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001529/0.4852, allocations: 0.8676 MB / 1.046 GB, free: 10.36 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.854e-05/0.4852, allocations: 0 / 1.046 GB, free: 10.36 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.669e-05/0.4853, allocations: 36 kB / 1.046 GB, free: 10.32 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.637e-05/0.4853, allocations: 23.95 kB / 1.046 GB, free: 10.3 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001793/0.4871, allocations: 1.081 MB / 1.047 GB, free: 9.211 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003966/0.4911, allocations: 2.463 MB / 1.049 GB, free: 6.684 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001322/0.4925, allocations: 0.7399 MB / 1.05 GB, free: 5.938 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000567/0.493, allocations: 302.7 kB / 1.05 GB, free: 5.637 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002149/0.4933, allocations: 113.7 kB / 1.05 GB, free: 5.508 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009189/0.4942, allocations: 444.5 kB / 1.051 GB, free: 5.059 MB / 0.698 GB Notification: Performance of pre-optimization done (n=73): time 2.505e-06/0.4942, allocations: 3.938 kB / 1.051 GB, free: 5.055 MB / 0.698 GB Notification: Performance of matching and sorting (n=73): time 0.003309/0.4975, allocations: 1.135 MB / 1.052 GB, free: 3.891 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001385/0.4977, allocations: 188.6 kB / 1.052 GB, free: 3.664 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001127/0.4988, allocations: 0.6176 MB / 1.053 GB, free: 3.039 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 8.515e-05/0.4989, allocations: 41.7 kB / 1.053 GB, free: 2.992 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004861/0.4994, allocations: 404.2 kB / 1.053 GB, free: 2.59 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002446/0.4997, allocations: 240.5 kB / 1.053 GB, free: 2.352 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.112e-05/0.4997, allocations: 12 kB / 1.053 GB, free: 2.34 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0002191/0.4999, allocations: 382.8 kB / 1.054 GB, free: 1.957 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005746/0.5005, allocations: 225.2 kB / 1.054 GB, free: 1.734 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006685/0.5012, allocations: 338.8 kB / 1.054 GB, free: 1.379 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006753/0.5019, allocations: 287.1 kB / 1.055 GB, free: 1.102 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/0.5019, allocations: 0 / 1.055 GB, free: 1.102 MB / 0.698 GB Notification: Performance of matching and sorting (n=78) (initialization): time 0.002203/0.5041, allocations: 0.7625 MB / 1.055 GB, free: 336 kB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 2.361e-05/0.5042, allocations: 4 kB / 1.055 GB, free: 332 kB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.107e-06/0.5042, allocations: 0 / 1.055 GB, free: 332 kB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007503/0.5049, allocations: 84.88 kB / 1.055 GB, free: 244 kB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007291/0.5057, allocations: 139.8 kB / 1.055 GB, free: 104 kB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.6167/1.122, allocations: 1.529 MB / 1.057 GB, free: 153.4 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009349/1.123, allocations: 86.64 kB / 1.057 GB, free: 153.4 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.047e-05/1.124, allocations: 33.83 kB / 1.057 GB, free: 153.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 ($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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0005322/1.124, allocations: 255.7 kB / 1.057 GB, free: 153.2 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001432/1.124, allocations: 84.22 kB / 1.057 GB, free: 153.2 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002357/1.127, allocations: 1.026 MB / 1.058 GB, free: 153.1 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.477e-06/1.127, allocations: 8.344 kB / 1.058 GB, free: 153.1 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.456e-06/1.127, allocations: 1.688 kB / 1.058 GB, free: 153.1 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.071e-05/1.127, allocations: 7.078 kB / 1.058 GB, free: 153.1 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009929/1.128, allocations: 0.8723 MB / 1.059 GB, free: 152.9 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.391e-06/1.128, allocations: 0 / 1.059 GB, free: 152.9 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000594/1.128, allocations: 142.1 kB / 1.059 GB, free: 152.9 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005288/1.129, allocations: 87.97 kB / 1.059 GB, free: 152.9 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.019e-05/1.129, allocations: 22.28 kB / 1.06 GB, free: 152.9 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001545/1.13, allocations: 1.562 MB / 1.061 GB, free: 151.6 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/1.13, allocations: 0 / 1.061 GB, free: 151.6 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001824/1.132, allocations: 0.8748 MB / 1.062 GB, free: 151.5 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004237/1.133, allocations: 281.8 kB / 1.062 GB, free: 151.4 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.613e-05/1.133, allocations: 14.83 kB / 1.062 GB, free: 151.4 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005636/1.133, allocations: 69.11 kB / 1.062 GB, free: 151.4 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001571/1.133, allocations: 61.03 kB / 1.062 GB, free: 151.4 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.756e-05/1.134, allocations: 32.64 kB / 1.062 GB, free: 151.4 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0006281/1.134, allocations: 445.7 kB / 1.063 GB, free: 151.3 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.3e-07/1.134, allocations: 3.25 kB / 1.063 GB, free: 151.3 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0008096/1.135, allocations: 269.7 kB / 1.063 GB, free: 151.2 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.003211/1.138, allocations: 1.885 MB / 1.065 GB, free: 150.5 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.001673/1.14, allocations: 0.7538 MB / 1.066 GB, free: 150.3 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 3.938e-06/1.14, allocations: 3.938 kB / 1.066 GB, free: 150.3 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0009318/1.141, allocations: 0.4963 MB / 1.066 GB, free: 150.2 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00139/1.142, allocations: 261.4 kB / 1.066 GB, free: 150.2 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01254/1.155, allocations: 4.972 MB / 1.071 GB, free: 148.6 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007857/1.156, allocations: 1.017 MB / 1.072 GB, free: 147.9 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.001183/1.157, allocations: 244.6 kB / 1.072 GB, free: 147.8 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005928/1.157, allocations: 374.8 kB / 1.073 GB, free: 147.8 MB / 0.698 GB Notification: Performance of SimCode: time 1.253e-06/1.157, allocations: 0 / 1.073 GB, free: 147.8 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0548/1.212, allocations: 20.4 MB / 1.093 GB, free: 136.6 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002663/1.213, allocations: 283 kB / 1.093 GB, free: 136.3 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.867/4.08, allocations: 0 / 1.093 GB, free: 136.3 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)