Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/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_10_Buildings_Fluid_SolarCollectors_Controls_Examples_SolarPumpController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController,fileNamePrefix="Buildings_10_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.001524/0.001525, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001867/0.001867, allocations: 193.5 kB / 16.14 MB, free: 6.711 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.434/1.434, allocations: 222.9 MB / 239.8 MB, free: 4.629 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.766/2.766, allocations: 437 MB / 0.7099 GB, free: 5.391 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001584/0.001584, allocations: 67.89 kB / 0.8687 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6232/0.6248, allocations: 151.6 MB / 1.017 GB, free: 2.832 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController): time 0.008716/0.6336, allocations: 7.374 MB / 1.024 GB, free: 11.42 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.1556/0.7892, allocations: 149.4 MB / 1.17 GB, free: 5.453 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001458/0.7907, allocations: 19.88 kB / 1.17 GB, free: 5.434 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.001206/0.792, allocations: 230.2 kB / 1.17 GB, free: 5.207 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.00282/0.7948, allocations: 0.7007 MB / 1.171 GB, free: 4.508 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.002538/0.7974, allocations: 0.9975 MB / 1.172 GB, free: 3.516 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.002721/0.8001, allocations: 2.173 MB / 1.174 GB, free: 1.332 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001816/0.802, allocations: 1.11 MB / 1.175 GB, free: 184 kB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001329/0.8033, allocations: 0.7548 MB / 1.176 GB, free: 15.42 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001551/0.8049, allocations: 0.8882 MB / 1.177 GB, free: 14.53 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 0.000507/0.8054, allocations: 116 kB / 1.177 GB, free: 14.42 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001335/0.8067, allocations: 483.6 kB / 1.177 GB, free: 13.95 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0005749/0.8073, allocations: 410.4 kB / 1.177 GB, free: 13.54 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.001399/0.8087, allocations: 0.921 MB / 1.178 GB, free: 12.62 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.003674/0.8124, allocations: 2.94 MB / 1.181 GB, free: 9.668 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.8124, allocations: 0 / 1.181 GB, free: 9.668 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.373e-06/0.8124, allocations: 4 kB / 1.181 GB, free: 9.664 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 2.958e-05/0.8125, allocations: 4 kB / 1.181 GB, free: 9.66 MB / 0.9356 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.004515/0.817, allocations: 2.235 MB / 1.183 GB, free: 7.363 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.447e-05/0.817, allocations: 8.031 kB / 1.183 GB, free: 7.355 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000278/0.8173, allocations: 236.7 kB / 1.184 GB, free: 7.113 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006107/0.8234, allocations: 0.8647 MB / 1.185 GB, free: 6.246 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001642/0.8251, allocations: 1.086 MB / 1.186 GB, free: 5.117 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.296e-05/0.8252, allocations: 127.2 kB / 1.186 GB, free: 4.992 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002276/0.8254, allocations: 152 kB / 1.186 GB, free: 4.844 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004639/0.8301, allocations: 2.055 MB / 1.188 GB, free: 2.738 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.708e-05/0.8301, allocations: 0 / 1.188 GB, free: 2.738 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001821/0.8303, allocations: 72 kB / 1.188 GB, free: 2.668 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.867e-05/0.8303, allocations: 40 kB / 1.188 GB, free: 2.629 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005974/0.8363, allocations: 2.444 MB / 1.19 GB, free: 184 kB / 0.9356 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.00997/0.8463, allocations: 5.707 MB / 1.196 GB, free: 10.3 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004256/0.8506, allocations: 1.708 MB / 1.198 GB, free: 8.586 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002039/0.8526, allocations: 0.7973 MB / 1.198 GB, free: 7.781 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008292/0.8535, allocations: 0.4912 MB / 1.199 GB, free: 7.199 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002687/0.8562, allocations: 1.071 MB / 1.2 GB, free: 6.105 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=139): time 2.715e-06/0.8562, allocations: 0 / 1.2 GB, free: 6.105 MB / 0.9512 GB Notification: Performance of matching and sorting (n=139): time 0.007926/0.8641, allocations: 2.598 MB / 1.202 GB, free: 3.484 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001287/0.8643, allocations: 201.2 kB / 1.203 GB, free: 3.246 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001338/0.8656, allocations: 0.8824 MB / 1.203 GB, free: 2.34 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 0.0001419/0.8658, allocations: 53.7 kB / 1.204 GB, free: 2.281 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005677/0.8664, allocations: 0.6367 MB / 1.204 GB, free: 1.633 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004895/0.8669, allocations: 449.5 kB / 1.205 GB, free: 1.188 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004774/0.8673, allocations: 250.7 kB / 1.205 GB, free: 0.9336 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0002381/0.8676, allocations: 357.9 kB / 1.205 GB, free: 0.5781 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001871/0.8695, allocations: 0.6701 MB / 1.206 GB, free: 15.91 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002067/0.8715, allocations: 0.8235 MB / 1.207 GB, free: 15.05 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003924/0.8755, allocations: 1.439 MB / 1.208 GB, free: 13.6 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.979e-06/0.8755, allocations: 0 / 1.208 GB, free: 13.6 MB / 0.9669 GB Notification: Performance of matching and sorting (n=155) (initialization): time 0.005164/0.8807, allocations: 1.793 MB / 1.21 GB, free: 11.8 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 2.791e-05/0.8807, allocations: 4 kB / 1.21 GB, free: 11.79 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.104e-05/0.8807, allocations: 4 kB / 1.21 GB, free: 11.79 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000635/0.8814, allocations: 88.77 kB / 1.21 GB, free: 11.7 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001877/0.8833, allocations: 335.5 kB / 1.21 GB, free: 11.37 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002332/0.8856, allocations: 1.542 MB / 1.212 GB, free: 9.691 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0018/0.8874, allocations: 212.8 kB / 1.212 GB, free: 9.484 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001293/0.8876, allocations: 55.94 kB / 1.212 GB, free: 9.43 MB / 0.9669 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.000925/0.8885, allocations: 388.5 kB / 1.212 GB, free: 9.043 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003023/0.8888, allocations: 134.3 kB / 1.212 GB, free: 8.91 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006038/0.8949, allocations: 2.214 MB / 1.215 GB, free: 6.68 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.472e-05/0.8949, allocations: 16 kB / 1.215 GB, free: 6.664 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.72e-06/0.8949, allocations: 3.984 kB / 1.215 GB, free: 6.66 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.287e-05/0.8949, allocations: 3.984 kB / 1.215 GB, free: 6.656 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002403/0.8973, allocations: 1.784 MB / 1.216 GB, free: 4.82 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.29e-06/0.8973, allocations: 0 / 1.216 GB, free: 4.82 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001741/0.8991, allocations: 319.5 kB / 1.217 GB, free: 4.508 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005347/0.8996, allocations: 84.77 kB / 1.217 GB, free: 4.422 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001256/0.8998, allocations: 47.95 kB / 1.217 GB, free: 4.375 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001933/0.9017, allocations: 1.559 MB / 1.218 GB, free: 2.68 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.9017, allocations: 0 / 1.218 GB, free: 2.68 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005011/0.9067, allocations: 1.921 MB / 1.22 GB, free: 0.7383 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006619/0.9074, allocations: 434.9 kB / 1.221 GB, free: 300 kB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002314/0.9077, allocations: 39.94 kB / 1.221 GB, free: 260 kB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001512/0.9092, allocations: 147.8 kB / 1.221 GB, free: 112 kB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002638/0.9095, allocations: 113.2 kB / 1.221 GB, free: 15.99 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001371/0.9096, allocations: 63.84 kB / 1.221 GB, free: 15.93 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0009149/0.9105, allocations: 0.6501 MB / 1.222 GB, free: 15.27 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.7e-07/0.9105, allocations: 3.938 kB / 1.222 GB, free: 15.27 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.001343/0.9119, allocations: 0.5102 MB / 1.222 GB, free: 14.76 MB / 0.9825 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.006624/0.9185, allocations: 3.01 MB / 1.225 GB, free: 11.9 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.004617/0.9231, allocations: 1.782 MB / 1.227 GB, free: 10.11 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.9232, allocations: 0 / 1.227 GB, free: 10.11 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.002441/0.9256, allocations: 1.056 MB / 1.228 GB, free: 9.039 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001429/0.927, allocations: 343.9 kB / 1.228 GB, free: 8.703 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02427/0.9513, allocations: 12.41 MB / 1.24 GB, free: 11.95 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008291/0.9522, allocations: 1.26 MB / 1.242 GB, free: 10.66 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.001827/0.954, allocations: 398.2 kB / 1.242 GB, free: 10.26 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001089/0.9551, allocations: 0.6593 MB / 1.243 GB, free: 9.602 MB / 0.9981 GB Notification: Performance of SimCode: time 8.02e-07/0.9551, allocations: 0 / 1.243 GB, free: 9.602 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5511/1.506, allocations: 32.79 MB / 1.275 GB, free: 223.1 MB / 0.9981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001557/1.506, allocations: 302.2 kB / 1.275 GB, free: 222.8 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.815/4.322, allocations: 6.188 kB / 1.275 GB, free: 222.8 MB / 0.9981 GB (rm -f Buildings_10_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.pipe ; mkfifo Buildings_10_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.pipe >> ../files/Buildings_10_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_SolarCollectors_Controls_Examples_SolarPumpController_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Fluid_SolarCollectors_Controls_Examples_SolarPumpController.fmu > Buildings_10_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.pipe 2>&1)