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.002099/0.002099, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.002362/0.002362, allocations: 195.6 kB / 16.25 MB, free: 6.637 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.793/2.793, allocations: 222.9 MB / 239.9 MB, free: 4.504 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 5.662/5.662, allocations: 461.9 MB / 0.7344 GB, free: 14.91 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002502/0.002502, allocations: 66.36 kB / 0.8987 GB, free: 37.13 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4866/0.4891, allocations: 157.4 MB / 1.052 GB, free: 8.613 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController): time 0.01277/0.502, allocations: 7.345 MB / 1.06 GB, free: 1.234 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.2159/0.7179, allocations: 149.5 MB / 1.206 GB, free: 11.18 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002389/0.7204, allocations: 23.88 kB / 1.206 GB, free: 11.16 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0017/0.7221, allocations: 234.2 kB / 1.206 GB, free: 10.93 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.004451/0.7266, allocations: 0.7104 MB / 1.207 GB, free: 10.21 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.004218/0.7308, allocations: 1.025 MB / 1.208 GB, free: 9.195 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.006173/0.737, allocations: 2.338 MB / 1.21 GB, free: 6.848 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00379/0.7409, allocations: 1.156 MB / 1.211 GB, free: 5.641 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002731/0.7436, allocations: 0.8955 MB / 1.212 GB, free: 4.742 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002833/0.7465, allocations: 0.9843 MB / 1.213 GB, free: 3.754 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.0008714/0.7474, allocations: 267.9 kB / 1.213 GB, free: 3.492 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002846/0.7503, allocations: 0.6168 MB / 1.214 GB, free: 2.875 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0009423/0.7512, allocations: 0.5414 MB / 1.214 GB, free: 2.332 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.002342/0.7536, allocations: 1.065 MB / 1.215 GB, free: 1.262 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.006229/0.7598, allocations: 3.061 MB / 1.218 GB, free: 14.19 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 9.348e-06/0.7599, allocations: 3.938 kB / 1.218 GB, free: 14.19 MB / 0.9825 GB Notification: Performance of FrontEnd: time 3.667e-06/0.7599, allocations: 0 / 1.218 GB, free: 14.19 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 8.555e-05/0.76, allocations: 0 / 1.218 GB, free: 14.19 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.008528/0.7685, allocations: 2.227 MB / 1.22 GB, free: 11.9 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 7.968e-05/0.7686, allocations: 12.62 kB / 1.22 GB, free: 11.89 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004676/0.7691, allocations: 232.7 kB / 1.221 GB, free: 11.65 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01018/0.7793, allocations: 0.8686 MB / 1.221 GB, free: 10.78 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004133/0.7835, allocations: 1.094 MB / 1.223 GB, free: 9.645 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001964/0.7838, allocations: 127.2 kB / 1.223 GB, free: 9.52 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006045/0.7844, allocations: 160 kB / 1.223 GB, free: 9.363 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009318/0.7937, allocations: 2.051 MB / 1.225 GB, free: 7.262 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.55e-05/0.7939, allocations: 0 / 1.225 GB, free: 7.262 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003053/0.7942, allocations: 68 kB / 1.225 GB, free: 7.195 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.951e-05/0.7943, allocations: 40 kB / 1.225 GB, free: 7.156 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01069/0.805, allocations: 2.452 MB / 1.227 GB, free: 4.699 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.02195/0.827, allocations: 5.693 MB / 1.233 GB, free: 14.82 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008506/0.8355, allocations: 1.713 MB / 1.235 GB, free: 13.11 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003974/0.8396, allocations: 0.8056 MB / 1.235 GB, free: 12.31 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00137/0.841, allocations: 490.9 kB / 1.236 GB, free: 11.73 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004978/0.846, allocations: 1.067 MB / 1.237 GB, free: 10.65 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=139): time 9.729e-06/0.8461, allocations: 0 / 1.237 GB, free: 10.65 MB / 0.9981 GB Notification: Performance of matching and sorting (n=139): time 0.01381/0.8599, allocations: 2.605 MB / 1.239 GB, free: 8.02 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002069/0.8602, allocations: 197.2 kB / 1.24 GB, free: 7.781 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002797/0.863, allocations: 0.8824 MB / 1.24 GB, free: 6.875 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0003918/0.8635, allocations: 53.7 kB / 1.24 GB, free: 6.816 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.001073/0.8646, allocations: 0.6329 MB / 1.241 GB, free: 6.172 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009696/0.8656, allocations: 449.4 kB / 1.242 GB, free: 5.727 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001118/0.8667, allocations: 250.8 kB / 1.242 GB, free: 5.477 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0002679/0.867, allocations: 361.9 kB / 1.242 GB, free: 5.117 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00346/0.8705, allocations: 0.6662 MB / 1.243 GB, free: 4.449 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003732/0.8742, allocations: 0.8197 MB / 1.244 GB, free: 3.598 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006737/0.881, allocations: 1.447 MB / 1.245 GB, free: 2.133 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.18e-05/0.881, allocations: 4 kB / 1.245 GB, free: 2.129 MB / 0.9981 GB Notification: Performance of matching and sorting (n=155) (initialization): time 0.009354/0.8904, allocations: 1.785 MB / 1.247 GB, free: 340 kB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 5.901e-05/0.8905, allocations: 8 kB / 1.247 GB, free: 332 kB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.924e-05/0.8906, allocations: 0 / 1.247 GB, free: 332 kB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001026/0.8916, allocations: 88.78 kB / 1.247 GB, free: 240 kB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.025/1.917, allocations: 331 kB / 1.247 GB, free: 191.5 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003078/1.92, allocations: 1.649 MB / 1.249 GB, free: 190.2 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003522/1.923, allocations: 210.8 kB / 1.249 GB, free: 190.2 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004125/1.924, allocations: 59.75 kB / 1.249 GB, free: 190.2 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.001589/1.925, allocations: 388 kB / 1.249 GB, free: 190.1 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007062/1.926, allocations: 124.4 kB / 1.249 GB, free: 190.1 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01128/1.937, allocations: 2.226 MB / 1.252 GB, free: 190 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.171e-05/1.938, allocations: 17.5 kB / 1.252 GB, free: 190 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.828e-06/1.938, allocations: 3.062 kB / 1.252 GB, free: 190 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.992e-05/1.938, allocations: 10 kB / 1.252 GB, free: 190 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004541/1.942, allocations: 1.787 MB / 1.253 GB, free: 189.8 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.997e-05/1.942, allocations: 5.578 kB / 1.253 GB, free: 189.8 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002925/1.945, allocations: 312.4 kB / 1.254 GB, free: 189.8 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008866/1.946, allocations: 78.23 kB / 1.254 GB, free: 189.8 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00038/1.946, allocations: 45.72 kB / 1.254 GB, free: 189.8 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003205/1.95, allocations: 1.672 MB / 1.255 GB, free: 188.4 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.869e-06/1.95, allocations: 0.6094 kB / 1.255 GB, free: 188.4 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009616/1.959, allocations: 1.914 MB / 1.257 GB, free: 188.2 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002569/1.962, allocations: 440.5 kB / 1.258 GB, free: 188 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000724/1.963, allocations: 36.97 kB / 1.258 GB, free: 188 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002783/1.966, allocations: 153.8 kB / 1.258 GB, free: 188 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005285/1.966, allocations: 115.1 kB / 1.258 GB, free: 188 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002583/1.966, allocations: 62.88 kB / 1.258 GB, free: 188 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001735/1.968, allocations: 0.6523 MB / 1.259 GB, free: 187.9 MB / 0.9981 GB Notification: Performance of sort global known variables: time 2.31e-07/1.968, allocations: 0 / 1.259 GB, free: 187.9 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.002704/1.971, allocations: 0.5031 MB / 1.259 GB, free: 187.8 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.01063/1.982, allocations: 3.001 MB / 1.262 GB, free: 187 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.01209/1.994, allocations: 2.13 MB / 1.264 GB, free: 186.8 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 8.946e-06/1.994, allocations: 0.7188 kB / 1.264 GB, free: 186.8 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.004282/1.998, allocations: 1.06 MB / 1.265 GB, free: 186.7 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002843/2.001, allocations: 371.5 kB / 1.266 GB, free: 186.7 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04394/2.045, allocations: 12.4 MB / 1.278 GB, free: 181.4 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001612/2.047, allocations: 1.261 MB / 1.279 GB, free: 180.7 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.00362/2.05, allocations: 403.2 kB / 1.279 GB, free: 180.5 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001808/2.052, allocations: 0.6609 MB / 1.28 GB, free: 180 MB / 0.9981 GB Notification: Performance of SimCode: time 1.493e-06/2.052, allocations: 0 / 1.28 GB, free: 180 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 9.701/11.75, allocations: 33.71 MB / 1.313 GB, free: 157.2 MB / 0.9981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.2008/11.95, allocations: 316.5 kB / 1.313 GB, free: 156.8 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.19/28.14, allocations: 0 / 1.313 GB, free: 156.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)