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.001027/0.001027, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.008121/0.008121, allocations: 169.9 kB / 16.27 MB, free: 6.652 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.408/1.408, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.621/2.621, allocations: 462.6 MB / 0.7364 GB, free: 15.55 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003305/0.0003305, allocations: 7.938 kB / 0.9029 GB, free: 36.45 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2803/0.2806, allocations: 159.6 MB / 1.059 GB, free: 4.891 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController): time 0.007419/0.2881, allocations: 6.859 MB / 1.065 GB, free: 14 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.149/0.4371, allocations: 147.8 MB / 1.21 GB, free: 9.645 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001423/0.4386, allocations: 19.88 kB / 1.21 GB, free: 9.625 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.001082/0.4397, allocations: 234.2 kB / 1.21 GB, free: 9.395 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.002604/0.4423, allocations: 0.6944 MB / 1.211 GB, free: 8.699 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.00242/0.4447, allocations: 1.014 MB / 1.212 GB, free: 7.691 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.00276/0.4475, allocations: 2.158 MB / 1.214 GB, free: 5.523 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001792/0.4493, allocations: 1.087 MB / 1.215 GB, free: 4.391 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009938/0.4503, allocations: 0.5909 MB / 1.215 GB, free: 3.797 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001157/0.4515, allocations: 0.6916 MB / 1.216 GB, free: 3.102 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.0003502/0.4519, allocations: 44 kB / 1.216 GB, free: 3.059 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001359/0.4532, allocations: 407.6 kB / 1.217 GB, free: 2.66 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0005243/0.4538, allocations: 302.5 kB / 1.217 GB, free: 2.363 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.001112/0.4549, allocations: 0.7977 MB / 1.218 GB, free: 1.555 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.003/0.4579, allocations: 2.826 MB / 1.22 GB, free: 14.71 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.4579, allocations: 8 kB / 1.22 GB, free: 14.71 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.455e-06/0.4579, allocations: 0 / 1.22 GB, free: 14.71 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 2.642e-05/0.458, allocations: 0 / 1.22 GB, free: 14.71 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.004059/0.462, allocations: 1.849 MB / 1.222 GB, free: 12.8 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 5.456e-05/0.4621, allocations: 15.97 kB / 1.222 GB, free: 12.79 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003054/0.4624, allocations: 232.7 kB / 1.222 GB, free: 12.55 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005876/0.4683, allocations: 0.935 MB / 1.223 GB, free: 11.61 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001527/0.4698, allocations: 1.094 MB / 1.224 GB, free: 10.48 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.684e-05/0.4699, allocations: 123.3 kB / 1.225 GB, free: 10.36 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002435/0.4702, allocations: 156 kB / 1.225 GB, free: 10.2 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004406/0.4746, allocations: 2.082 MB / 1.227 GB, free: 8.07 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.774e-05/0.4746, allocations: 7.938 kB / 1.227 GB, free: 8.062 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001784/0.4748, allocations: 64 kB / 1.227 GB, free: 8 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.876e-05/0.4749, allocations: 40 kB / 1.227 GB, free: 7.961 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005995/0.4809, allocations: 2.506 MB / 1.229 GB, free: 5.449 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.009158/0.49, allocations: 5.732 MB / 1.235 GB, free: 15.54 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004316/0.4944, allocations: 1.733 MB / 1.237 GB, free: 13.79 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001995/0.4964, allocations: 0.8132 MB / 1.237 GB, free: 12.98 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006503/0.497, allocations: 486.7 kB / 1.238 GB, free: 12.41 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002418/0.4995, allocations: 1.079 MB / 1.239 GB, free: 11.31 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=139): time 2.835e-06/0.4995, allocations: 0 / 1.239 GB, free: 11.31 MB / 0.9981 GB Notification: Performance of matching and sorting (n=139): time 0.007482/0.507, allocations: 2.633 MB / 1.241 GB, free: 8.652 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.91e-05/0.5071, allocations: 201.2 kB / 1.242 GB, free: 8.41 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001132/0.5082, allocations: 0.8824 MB / 1.243 GB, free: 7.504 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001406/0.5084, allocations: 53.7 kB / 1.243 GB, free: 7.445 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005651/0.5089, allocations: 0.6329 MB / 1.243 GB, free: 6.801 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004109/0.5094, allocations: 457.4 kB / 1.244 GB, free: 6.348 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000173/0.5095, allocations: 93.67 kB / 1.244 GB, free: 6.25 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001459/0.5097, allocations: 357.9 kB / 1.244 GB, free: 5.895 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001967/0.5117, allocations: 0.6819 MB / 1.245 GB, free: 5.215 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002049/0.5137, allocations: 0.8275 MB / 1.246 GB, free: 4.355 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003957/0.5177, allocations: 1.459 MB / 1.247 GB, free: 2.883 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.772e-06/0.5177, allocations: 0 / 1.247 GB, free: 2.883 MB / 0.9981 GB Notification: Performance of matching and sorting (n=155) (initialization): time 0.005151/0.5229, allocations: 1.804 MB / 1.249 GB, free: 1.066 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.628e-05/0.5229, allocations: 8 kB / 1.249 GB, free: 1.059 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.108e-05/0.5229, allocations: 0 / 1.249 GB, free: 1.059 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006229/0.5236, allocations: 92.77 kB / 1.249 GB, free: 0.9648 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001766/0.5253, allocations: 335.5 kB / 1.249 GB, free: 0.6367 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4459/0.9713, allocations: 1.544 MB / 1.251 GB, free: 186.8 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001989/0.9733, allocations: 223.4 kB / 1.251 GB, free: 186.8 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001504/0.9734, allocations: 58.14 kB / 1.251 GB, free: 186.8 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.0007987/0.9742, allocations: 386.5 kB / 1.251 GB, free: 186.7 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000232/0.9745, allocations: 124.5 kB / 1.251 GB, free: 186.7 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006126/0.9806, allocations: 2.246 MB / 1.254 GB, free: 186.6 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.869e-05/0.9807, allocations: 15.5 kB / 1.254 GB, free: 186.6 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.449e-06/0.9807, allocations: 3.25 kB / 1.254 GB, free: 186.6 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.591e-05/0.9807, allocations: 7.719 kB / 1.254 GB, free: 186.6 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00192/0.9826, allocations: 1.795 MB / 1.255 GB, free: 186.4 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.141e-06/0.9826, allocations: 0 / 1.255 GB, free: 186.4 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001673/0.9843, allocations: 320.4 kB / 1.256 GB, free: 186.4 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005227/0.9848, allocations: 84.06 kB / 1.256 GB, free: 186.4 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001046/0.985, allocations: 47.75 kB / 1.256 GB, free: 186.4 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00145/0.9864, allocations: 1.562 MB / 1.257 GB, free: 185.1 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.9864, allocations: 3.938 kB / 1.257 GB, free: 185.1 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004818/0.9913, allocations: 1.931 MB / 1.259 GB, free: 184.9 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006146/0.9919, allocations: 466.1 kB / 1.26 GB, free: 184.7 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000204/0.9921, allocations: 30.23 kB / 1.26 GB, free: 184.7 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001599/0.9937, allocations: 173.5 kB / 1.26 GB, free: 184.7 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002409/0.994, allocations: 121.1 kB / 1.26 GB, free: 184.7 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001284/0.9941, allocations: 64.05 kB / 1.26 GB, free: 184.7 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.000791/0.9949, allocations: 0.6376 MB / 1.261 GB, free: 184.6 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.5e-07/0.9949, allocations: 0 / 1.261 GB, free: 184.6 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.001201/0.9961, allocations: 0.5159 MB / 1.261 GB, free: 184.6 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.006403/1.003, allocations: 3.032 MB / 1.264 GB, free: 183.7 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.005249/1.008, allocations: 1.815 MB / 1.266 GB, free: 183.6 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 5.16e-06/1.008, allocations: 0.8125 kB / 1.266 GB, free: 183.6 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.002814/1.011, allocations: 1.059 MB / 1.267 GB, free: 183.4 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001813/1.012, allocations: 340.5 kB / 1.267 GB, free: 183.4 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02572/1.038, allocations: 12.49 MB / 1.279 GB, free: 178.4 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000818/1.039, allocations: 1.26 MB / 1.281 GB, free: 177.6 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.001944/1.041, allocations: 389.2 kB / 1.281 GB, free: 177.5 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001015/1.042, allocations: 0.6622 MB / 1.282 GB, free: 177 MB / 0.9981 GB Notification: Performance of SimCode: time 5.31e-07/1.042, allocations: 0 / 1.282 GB, free: 177 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04796/1.09, allocations: 32.36 MB / 1.313 GB, free: 156.2 MB / 0.9981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001555/1.09, allocations: 304.9 kB / 1.314 GB, free: 155.8 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.725/3.815, allocations: 6.953 kB / 1.314 GB, free: 155.8 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)