Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.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/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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(Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController,fileNamePrefix="Buildings_latest_Buildings_Fluid_SolarCollectors_Controls_Examples_SolarPumpController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController,fileNamePrefix="Buildings_latest_Buildings_Fluid_SolarCollectors_Controls_Examples_SolarPumpController",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.001204/0.001204, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001145/0.001145, allocations: 193.6 kB / 16.14 MB, free: 6.699 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.357/1.357, allocations: 222.9 MB / 239.8 MB, free: 4.625 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.688/2.688, allocations: 461.8 MB / 0.7342 GB, free: 14.23 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001271/0.001271, allocations: 66.86 kB / 0.8985 GB, free: 36.95 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2709/0.2722, allocations: 157.4 MB / 1.052 GB, free: 8.242 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController): time 0.008787/0.281, allocations: 7.349 MB / 1.059 GB, free: 0.8555 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.1491/0.4302, allocations: 149.4 MB / 1.205 GB, free: 10.89 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001457/0.4317, allocations: 19.94 kB / 1.205 GB, free: 10.88 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0008851/0.4326, allocations: 242.2 kB / 1.206 GB, free: 10.64 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.002175/0.4348, allocations: 0.6928 MB / 1.206 GB, free: 9.945 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.002179/0.437, allocations: 0.9967 MB / 1.207 GB, free: 8.953 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.002397/0.4394, allocations: 2.166 MB / 1.209 GB, free: 6.777 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001472/0.4409, allocations: 1.122 MB / 1.21 GB, free: 5.609 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001029/0.4419, allocations: 0.7471 MB / 1.211 GB, free: 4.859 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009784/0.4429, allocations: 0.8866 MB / 1.212 GB, free: 3.969 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.0002228/0.4431, allocations: 119.9 kB / 1.212 GB, free: 3.852 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009989/0.4441, allocations: 475.7 kB / 1.213 GB, free: 3.387 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0003634/0.4445, allocations: 414.3 kB / 1.213 GB, free: 2.98 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0008212/0.4453, allocations: 0.9287 MB / 1.214 GB, free: 2.047 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.002527/0.4479, allocations: 2.94 MB / 1.217 GB, free: 15.1 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.4479, allocations: 0 / 1.217 GB, free: 15.1 MB / 0.9825 GB Notification: Performance of FrontEnd: time 8.61e-07/0.4479, allocations: 4 kB / 1.217 GB, free: 15.09 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 2.706e-05/0.4479, allocations: 0 / 1.217 GB, free: 15.09 MB / 0.9825 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 415 * Number of variables: 415 Notification: Performance of Generate backend data structure: time 0.004264/0.4522, allocations: 2.229 MB / 1.219 GB, free: 12.81 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.167e-05/0.4523, allocations: 15.97 kB / 1.219 GB, free: 12.79 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002745/0.4525, allocations: 236.6 kB / 1.219 GB, free: 12.55 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0063/0.4589, allocations: 0.8647 MB / 1.22 GB, free: 11.68 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001669/0.4605, allocations: 1.09 MB / 1.221 GB, free: 10.55 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001015/0.4607, allocations: 123.2 kB / 1.221 GB, free: 10.43 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002433/0.4609, allocations: 160 kB / 1.221 GB, free: 10.27 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00459/0.4655, allocations: 2.059 MB / 1.223 GB, free: 8.164 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.566e-05/0.4656, allocations: 0 / 1.223 GB, free: 8.164 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001709/0.4657, allocations: 64 kB / 1.223 GB, free: 8.102 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.917e-05/0.4658, allocations: 40 kB / 1.223 GB, free: 8.062 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00603/0.4718, allocations: 2.448 MB / 1.226 GB, free: 5.609 MB / 0.9825 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.009295/0.4811, allocations: 5.699 MB / 1.231 GB, free: 15.73 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004209/0.4853, allocations: 1.713 MB / 1.233 GB, free: 14.01 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001978/0.4873, allocations: 0.7973 MB / 1.234 GB, free: 13.21 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006929/0.488, allocations: 499.1 kB / 1.234 GB, free: 12.63 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002523/0.4906, allocations: 1.06 MB / 1.235 GB, free: 11.55 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=139): time 3.056e-06/0.4906, allocations: 0 / 1.235 GB, free: 11.55 MB / 0.9981 GB Notification: Performance of matching and sorting (n=139): time 0.007714/0.4983, allocations: 2.605 MB / 1.238 GB, free: 8.922 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001027/0.4984, allocations: 197.2 kB / 1.238 GB, free: 8.684 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001122/0.4996, allocations: 0.8902 MB / 1.239 GB, free: 7.77 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001305/0.4997, allocations: 53.7 kB / 1.239 GB, free: 7.711 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.000478/0.5002, allocations: 0.629 MB / 1.24 GB, free: 7.07 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003642/0.5006, allocations: 453.3 kB / 1.24 GB, free: 6.621 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004431/0.501, allocations: 254.8 kB / 1.24 GB, free: 6.367 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001313/0.5012, allocations: 353.9 kB / 1.241 GB, free: 6.016 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001913/0.5031, allocations: 0.6701 MB / 1.241 GB, free: 5.344 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002015/0.5051, allocations: 0.8237 MB / 1.242 GB, free: 4.492 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003804/0.5089, allocations: 1.439 MB / 1.243 GB, free: 3.035 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.408e-06/0.5089, allocations: 0 / 1.243 GB, free: 3.035 MB / 0.9981 GB Notification: Performance of matching and sorting (n=155) (initialization): time 0.005054/0.514, allocations: 1.789 MB / 1.245 GB, free: 1.234 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.191e-05/0.514, allocations: 5.094 kB / 1.245 GB, free: 1.23 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.195e-06/0.514, allocations: 0 / 1.245 GB, free: 1.23 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006222/0.5147, allocations: 88.78 kB / 1.245 GB, free: 1.141 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00183/0.5165, allocations: 343.5 kB / 1.246 GB, free: 0.8047 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5058/1.022, allocations: 1.537 MB / 1.247 GB, free: 189.6 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002026/1.024, allocations: 209.1 kB / 1.247 GB, free: 189.6 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001402/1.025, allocations: 57.23 kB / 1.247 GB, free: 189.6 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 23 (weaDat.decAng.tNext,$PRE.weaDat.decAng.tNext,weaDat.eqnTim.tNext,$PRE.weaDat.eqnTim.tNext,weaDat.conTim.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTimMin.tNext,weaDat.locTim.tNext,$PRE.weaDat.locTim.tNext,pumCon.hys.y,$PRE.pumCon.hys.y,pumCon.HDirTil.incAng.decAng.tNext,$PRE.pumCon.HDirTil.incAng.decAng.tNext,pumCon.HDifTilIso.incAng.decAng.tNext,$PRE.pumCon.HDifTilIso.incAng.decAng.tNext,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (153): * Single equations (assignments): 152 * 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.0007798/1.025, allocations: 386.9 kB / 1.248 GB, free: 189.4 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002817/1.026, allocations: 127 kB / 1.248 GB, free: 189.4 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006044/1.032, allocations: 2.218 MB / 1.25 GB, free: 189.4 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.621e-05/1.032, allocations: 18.34 kB / 1.25 GB, free: 189.4 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.299e-06/1.032, allocations: 0 / 1.25 GB, free: 189.4 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.533e-05/1.032, allocations: 8.516 kB / 1.25 GB, free: 189.4 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001906/1.034, allocations: 1.798 MB / 1.252 GB, free: 189.1 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.881e-06/1.034, allocations: 3.812 kB / 1.252 GB, free: 189.1 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001636/1.035, allocations: 310.2 kB / 1.252 GB, free: 189.1 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004932/1.036, allocations: 88.33 kB / 1.252 GB, free: 189.1 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001097/1.036, allocations: 44.81 kB / 1.252 GB, free: 189.1 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001526/1.037, allocations: 1.559 MB / 1.254 GB, free: 187.9 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/1.037, allocations: 3.812 kB / 1.254 GB, free: 187.9 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004854/1.042, allocations: 1.914 MB / 1.256 GB, free: 187.7 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006022/1.043, allocations: 434.5 kB / 1.256 GB, free: 187.5 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002192/1.043, allocations: 45.09 kB / 1.256 GB, free: 187.5 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001508/1.045, allocations: 149.4 kB / 1.256 GB, free: 187.5 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000272/1.045, allocations: 117.8 kB / 1.256 GB, free: 187.5 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001433/1.045, allocations: 57.33 kB / 1.256 GB, free: 187.5 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0008466/1.046, allocations: 0.6422 MB / 1.257 GB, free: 187.4 MB / 0.9981 GB Notification: Performance of sort global known variables: time 2.6e-07/1.046, allocations: 0 / 1.257 GB, free: 187.4 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.001221/1.047, allocations: 0.511 MB / 1.258 GB, free: 187.3 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,pumCon.HDifTilIso.incAng.decAng.tNext,pumCon.HDirTil.incAng.decAng.tNext,pumCon.hys.y,weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext) * Number of discrete states: 8 (pumCon.hys.y,pumCon.HDifTilIso.incAng.decAng.tNext,pumCon.HDirTil.incAng.decAng.tNext,weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (155): * Single equations (assignments): 147 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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.006412/1.054, allocations: 3.01 MB / 1.261 GB, free: 186.5 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.004796/1.058, allocations: 1.787 MB / 1.262 GB, free: 186.3 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 4.749e-06/1.058, allocations: 4.406 kB / 1.262 GB, free: 186.3 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.002684/1.061, allocations: 1.051 MB / 1.263 GB, free: 186.2 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001618/1.063, allocations: 339.5 kB / 1.264 GB, free: 186.2 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02526/1.088, allocations: 12.41 MB / 1.276 GB, free: 181.3 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009232/1.089, allocations: 1.256 MB / 1.277 GB, free: 180.5 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.002016/1.091, allocations: 398.2 kB / 1.277 GB, free: 180.4 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001025/1.092, allocations: 0.6645 MB / 1.278 GB, free: 179.9 MB / 0.9981 GB Notification: Performance of SimCode: time 7.72e-07/1.092, allocations: 0 / 1.278 GB, free: 179.9 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05226/1.144, allocations: 32.81 MB / 1.31 GB, free: 158.8 MB / 0.9981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001588/1.145, allocations: 308.2 kB / 1.31 GB, free: 158.4 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.761/3.906, allocations: 2.953 kB / 1.31 GB, free: 158.4 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.pipe ; mkfifo Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.pipe >> ../files/Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_SolarCollectors_Controls_Examples_SolarPumpController_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_SolarCollectors_Controls_Examples_SolarPumpController.fmu > Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.pipe 2>&1)