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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001562/0.001562, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001936/0.001936, allocations: 195.2 kB / 16.53 MB, free: 6.664 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.38/1.38, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.743/2.743, allocations: 461.9 MB / 0.7347 GB, free: 14.7 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001431/0.001431, allocations: 68.19 kB / 0.8992 GB, free: 36.92 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3217/0.3231, allocations: 157.4 MB / 1.053 GB, free: 8.305 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController): time 0.01024/0.3334, allocations: 7.385 MB / 1.06 GB, free: 0.8867 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.1789/0.5123, allocations: 151.7 MB / 1.208 GB, free: 8.555 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001821/0.5142, allocations: 23.88 kB / 1.208 GB, free: 8.531 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.001478/0.5157, allocations: 301.1 kB / 1.209 GB, free: 8.234 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.003552/0.5193, allocations: 0.8179 MB / 1.209 GB, free: 7.418 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.003023/0.5223, allocations: 1.122 MB / 1.21 GB, free: 6.301 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.003511/0.5258, allocations: 2.341 MB / 1.213 GB, free: 3.949 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002139/0.528, allocations: 1.144 MB / 1.214 GB, free: 2.754 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001454/0.5295, allocations: 0.9034 MB / 1.215 GB, free: 1.848 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001652/0.5311, allocations: 0.9881 MB / 1.216 GB, free: 0.8555 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.000662/0.5318, allocations: 264 kB / 1.216 GB, free: 0.5977 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001591/0.5334, allocations: 0.6091 MB / 1.217 GB, free: 15.98 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0007634/0.5342, allocations: 0.5452 MB / 1.217 GB, free: 15.44 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.001648/0.5358, allocations: 1.062 MB / 1.218 GB, free: 14.38 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.003652/0.5395, allocations: 3.061 MB / 1.221 GB, free: 11.3 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.5395, allocations: 4 kB / 1.221 GB, free: 11.3 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.673e-06/0.5395, allocations: 0 / 1.221 GB, free: 11.3 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 2.623e-05/0.5396, allocations: 0 / 1.221 GB, free: 11.3 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.004308/0.5439, allocations: 2.239 MB / 1.223 GB, free: 9.004 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 5.121e-05/0.5439, allocations: 8.625 kB / 1.223 GB, free: 8.996 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002796/0.5442, allocations: 236.7 kB / 1.224 GB, free: 8.754 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005884/0.5501, allocations: 0.8608 MB / 1.224 GB, free: 7.891 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001861/0.552, allocations: 1.09 MB / 1.225 GB, free: 6.758 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.724e-05/0.5521, allocations: 123.3 kB / 1.226 GB, free: 6.637 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002271/0.5523, allocations: 160 kB / 1.226 GB, free: 6.48 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00434/0.5567, allocations: 2.055 MB / 1.228 GB, free: 4.375 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.754e-05/0.5567, allocations: 3.984 kB / 1.228 GB, free: 4.371 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001715/0.5569, allocations: 71.98 kB / 1.228 GB, free: 4.301 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.574e-05/0.5569, allocations: 40 kB / 1.228 GB, free: 4.262 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005787/0.5627, allocations: 2.452 MB / 1.23 GB, free: 1.805 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.009574/0.5723, allocations: 5.692 MB / 1.236 GB, free: 11.93 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004148/0.5765, allocations: 1.715 MB / 1.237 GB, free: 10.21 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001854/0.5784, allocations: 0.7977 MB / 1.238 GB, free: 9.414 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006353/0.579, allocations: 495.1 kB / 1.239 GB, free: 8.836 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002233/0.5813, allocations: 1.075 MB / 1.24 GB, free: 7.742 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=139): time 2.885e-06/0.5813, allocations: 0 / 1.24 GB, free: 7.742 MB / 0.9981 GB Notification: Performance of matching and sorting (n=139): time 0.00723/0.5885, allocations: 2.598 MB / 1.242 GB, free: 5.121 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001167/0.5886, allocations: 201.2 kB / 1.243 GB, free: 4.879 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001246/0.5899, allocations: 0.8785 MB / 1.243 GB, free: 3.977 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001181/0.59, allocations: 57.64 kB / 1.243 GB, free: 3.914 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005577/0.5906, allocations: 0.629 MB / 1.244 GB, free: 3.273 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004014/0.591, allocations: 457.4 kB / 1.244 GB, free: 2.82 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004215/0.5914, allocations: 242.8 kB / 1.245 GB, free: 2.578 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001498/0.5916, allocations: 361.9 kB / 1.245 GB, free: 2.219 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001864/0.5934, allocations: 0.674 MB / 1.246 GB, free: 1.543 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001972/0.5954, allocations: 0.8197 MB / 1.247 GB, free: 0.6953 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.5801/1.175, allocations: 1.432 MB / 1.248 GB, free: 191.1 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.25e-06/1.176, allocations: 0.5938 kB / 1.248 GB, free: 191.1 MB / 0.9981 GB Notification: Performance of matching and sorting (n=155) (initialization): time 0.005311/1.181, allocations: 1.787 MB / 1.25 GB, free: 191 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 3.225e-05/1.181, allocations: 10.47 kB / 1.25 GB, free: 191 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.332e-05/1.181, allocations: 1.938 kB / 1.25 GB, free: 191 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000625/1.182, allocations: 93.97 kB / 1.25 GB, free: 191 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001832/1.183, allocations: 335.7 kB / 1.25 GB, free: 191 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001662/1.185, allocations: 1.642 MB / 1.252 GB, free: 189.6 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001669/1.187, allocations: 193.9 kB / 1.252 GB, free: 189.6 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001203/1.187, allocations: 60.92 kB / 1.252 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.0007396/1.188, allocations: 393.4 kB / 1.252 GB, free: 189.5 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002521/1.188, allocations: 124.9 kB / 1.252 GB, free: 189.5 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005363/1.193, allocations: 2.219 MB / 1.255 GB, free: 189.4 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.171e-05/1.193, allocations: 17.44 kB / 1.255 GB, free: 189.4 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/1.193, allocations: 7.766 kB / 1.255 GB, free: 189.4 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.705e-05/1.193, allocations: 10.03 kB / 1.255 GB, free: 189.4 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002221/1.196, allocations: 1.776 MB / 1.256 GB, free: 189.1 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.706e-06/1.196, allocations: 0 / 1.256 GB, free: 189.1 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001674/1.197, allocations: 310.2 kB / 1.257 GB, free: 189.1 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004601/1.198, allocations: 84.47 kB / 1.257 GB, free: 189.1 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001225/1.198, allocations: 46.66 kB / 1.257 GB, free: 189.1 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001594/1.199, allocations: 1.67 MB / 1.258 GB, free: 187.7 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.073e-06/1.199, allocations: 0 / 1.258 GB, free: 187.7 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004838/1.204, allocations: 1.924 MB / 1.26 GB, free: 187.5 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006476/1.205, allocations: 439.2 kB / 1.261 GB, free: 187.3 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002308/1.205, allocations: 30.98 kB / 1.261 GB, free: 187.3 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001454/1.207, allocations: 147.8 kB / 1.261 GB, free: 187.3 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002673/1.207, allocations: 113 kB / 1.261 GB, free: 187.3 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001345/1.207, allocations: 67.73 kB / 1.261 GB, free: 187.3 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0008336/1.208, allocations: 0.6456 MB / 1.262 GB, free: 187.2 MB / 0.9981 GB Notification: Performance of sort global known variables: time 4.1e-07/1.208, allocations: 0 / 1.262 GB, free: 187.2 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.001288/1.209, allocations: 0.5067 MB / 1.262 GB, free: 187.1 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.007089/1.216, allocations: 3.01 MB / 1.265 GB, free: 186.3 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.007562/1.224, allocations: 2.133 MB / 1.267 GB, free: 186.1 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 7.714e-06/1.224, allocations: 1 kB / 1.267 GB, free: 186.1 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.003135/1.227, allocations: 1.051 MB / 1.268 GB, free: 186 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00191/1.229, allocations: 380.7 kB / 1.269 GB, free: 185.9 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0222/1.251, allocations: 11.71 MB / 1.28 GB, free: 180.6 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000878/1.252, allocations: 1.25 MB / 1.281 GB, free: 179.8 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.001975/1.254, allocations: 401.3 kB / 1.282 GB, free: 179.7 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001055/1.255, allocations: 0.6619 MB / 1.282 GB, free: 179.2 MB / 0.9981 GB Notification: Performance of SimCode: time 8.21e-07/1.255, allocations: 0 / 1.282 GB, free: 179.2 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06135/1.317, allocations: 34.01 MB / 1.315 GB, free: 154.4 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.29/13.6, allocations: 11.75 kB / 1.316 GB, free: 154.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)