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.0009907/0.000995, allocations: 90.67 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.007857/0.007858, allocations: 169.1 kB / 16.26 MB, free: 6.68 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.586/1.586, allocations: 223.3 MB / 240.3 MB, free: 5.332 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.571/2.571, allocations: 437.8 MB / 0.7121 GB, free: 7.004 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003401/0.00034, allocations: 16 kB / 0.873 GB, free: 3.207 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6226/0.623, allocations: 153.8 MB / 1.023 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController): time 0.007733/0.6308, allocations: 6.903 MB / 1.03 GB, free: 8.926 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.1547/0.7855, allocations: 147.8 MB / 1.174 GB, free: 4.574 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001168/0.7867, allocations: 27.88 kB / 1.174 GB, free: 4.547 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0009623/0.7877, allocations: 222.2 kB / 1.174 GB, free: 4.328 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.002519/0.7902, allocations: 0.703 MB / 1.175 GB, free: 3.625 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.002177/0.7924, allocations: 0.9967 MB / 1.176 GB, free: 2.633 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.002264/0.7947, allocations: 2.17 MB / 1.178 GB, free: 464 kB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001611/0.7963, allocations: 1.087 MB / 1.179 GB, free: 15.32 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001044/0.7974, allocations: 0.5909 MB / 1.18 GB, free: 14.73 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000941/0.7983, allocations: 0.6916 MB / 1.181 GB, free: 14.03 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 0.0001196/0.7984, allocations: 44 kB / 1.181 GB, free: 13.99 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008227/0.7993, allocations: 407.6 kB / 1.181 GB, free: 13.59 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0002645/0.7996, allocations: 310.4 kB / 1.181 GB, free: 13.29 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0006836/0.8002, allocations: 0.8016 MB / 1.182 GB, free: 12.47 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.002381/0.8026, allocations: 2.826 MB / 1.185 GB, free: 9.637 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.046e-06/0.8026, allocations: 0 / 1.185 GB, free: 9.637 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.542e-06/0.8027, allocations: 0 / 1.185 GB, free: 9.637 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 2.094e-05/0.8027, allocations: 0 / 1.185 GB, free: 9.637 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.003782/0.8065, allocations: 1.849 MB / 1.187 GB, free: 7.727 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.176e-05/0.8065, allocations: 8.031 kB / 1.187 GB, free: 7.719 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003052/0.8068, allocations: 236.7 kB / 1.187 GB, free: 7.477 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006213/0.8131, allocations: 0.935 MB / 1.188 GB, free: 6.539 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00229/0.8154, allocations: 1.094 MB / 1.189 GB, free: 5.402 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001565/0.8155, allocations: 115.3 kB / 1.189 GB, free: 5.289 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004242/0.816, allocations: 164 kB / 1.189 GB, free: 5.129 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007451/0.8234, allocations: 2.078 MB / 1.191 GB, free: 3 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.165e-05/0.8235, allocations: 0 / 1.191 GB, free: 3 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002954/0.8238, allocations: 68 kB / 1.191 GB, free: 2.934 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.171e-05/0.8239, allocations: 40 kB / 1.191 GB, free: 2.895 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01059/0.8345, allocations: 2.51 MB / 1.194 GB, free: 388 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.01557/0.8501, allocations: 5.744 MB / 1.199 GB, free: 10.46 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004702/0.8548, allocations: 1.722 MB / 1.201 GB, free: 8.734 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002357/0.8572, allocations: 0.8207 MB / 1.202 GB, free: 7.906 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008333/0.858, allocations: 490.7 kB / 1.202 GB, free: 7.336 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003118/0.8612, allocations: 1.079 MB / 1.203 GB, free: 6.234 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=139): time 4.278e-06/0.8612, allocations: 0 / 1.203 GB, free: 6.234 MB / 0.9512 GB Notification: Performance of matching and sorting (n=139): time 0.008306/0.8695, allocations: 2.633 MB / 1.206 GB, free: 3.578 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001356/0.8697, allocations: 197.2 kB / 1.206 GB, free: 3.344 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001609/0.8713, allocations: 0.8824 MB / 1.207 GB, free: 2.438 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 0.0001649/0.8715, allocations: 57.69 kB / 1.207 GB, free: 2.375 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005308/0.872, allocations: 0.6251 MB / 1.208 GB, free: 1.738 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004106/0.8724, allocations: 449.5 kB / 1.208 GB, free: 1.293 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001816/0.8726, allocations: 97.67 kB / 1.208 GB, free: 1.191 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001327/0.8728, allocations: 361.9 kB / 1.208 GB, free: 0.832 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002072/0.8748, allocations: 0.6779 MB / 1.209 GB, free: 156 kB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002161/0.877, allocations: 0.8392 MB / 1.21 GB, free: 15.28 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004171/0.8812, allocations: 1.451 MB / 1.211 GB, free: 13.82 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.551e-06/0.8812, allocations: 4 kB / 1.211 GB, free: 13.81 MB / 0.9669 GB Notification: Performance of matching and sorting (n=155) (initialization): time 0.005178/0.8864, allocations: 1.804 MB / 1.213 GB, free: 12 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 2.368e-05/0.8865, allocations: 5.875 kB / 1.213 GB, free: 11.99 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.16e-05/0.8865, allocations: 4 kB / 1.213 GB, free: 11.99 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006184/0.8871, allocations: 92.77 kB / 1.213 GB, free: 11.89 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001864/0.889, allocations: 343.4 kB / 1.214 GB, free: 11.56 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002188/0.8912, allocations: 1.549 MB / 1.215 GB, free: 9.871 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001899/0.8931, allocations: 230.7 kB / 1.215 GB, free: 9.645 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001668/0.8933, allocations: 59.94 kB / 1.215 GB, free: 9.586 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.0008613/0.8941, allocations: 388.3 kB / 1.216 GB, free: 9.199 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003164/0.8945, allocations: 126.4 kB / 1.216 GB, free: 9.074 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006348/0.9008, allocations: 2.237 MB / 1.218 GB, free: 6.82 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.414e-05/0.9008, allocations: 16 kB / 1.218 GB, free: 6.805 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.255e-06/0.9009, allocations: 7.984 kB / 1.218 GB, free: 6.797 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.362e-05/0.9009, allocations: 3.984 kB / 1.218 GB, free: 6.793 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002357/0.9032, allocations: 1.784 MB / 1.22 GB, free: 4.961 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.578e-06/0.9033, allocations: 0 / 1.22 GB, free: 4.961 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001793/0.9051, allocations: 319.5 kB / 1.22 GB, free: 4.648 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005736/0.9056, allocations: 88.77 kB / 1.22 GB, free: 4.559 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001298/0.9058, allocations: 43.95 kB / 1.22 GB, free: 4.516 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001848/0.9076, allocations: 1.563 MB / 1.222 GB, free: 2.812 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.9077, allocations: 0 / 1.222 GB, free: 2.812 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005343/0.913, allocations: 1.937 MB / 1.224 GB, free: 0.8555 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007646/0.9138, allocations: 462.8 kB / 1.224 GB, free: 392 kB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002713/0.9141, allocations: 32 kB / 1.224 GB, free: 360 kB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001694/0.9158, allocations: 181.6 kB / 1.224 GB, free: 180 kB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002323/0.916, allocations: 113.1 kB / 1.224 GB, free: 68 kB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001347/0.9162, allocations: 55.95 kB / 1.224 GB, free: 12 kB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.001001/0.9172, allocations: 0.6423 MB / 1.225 GB, free: 15.36 MB / 0.9825 GB Notification: Performance of sort global known variables: time 7.22e-07/0.9172, allocations: 0 / 1.225 GB, free: 15.36 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.001644/0.9188, allocations: 0.5103 MB / 1.226 GB, free: 14.85 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.007576/0.9264, allocations: 3.024 MB / 1.228 GB, free: 11.98 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.005099/0.9315, allocations: 1.81 MB / 1.23 GB, free: 10.15 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/0.9316, allocations: 0 / 1.23 GB, free: 10.15 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.002681/0.9343, allocations: 1.076 MB / 1.231 GB, free: 9.066 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001966/0.9362, allocations: 352.1 kB / 1.232 GB, free: 8.727 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02906/0.9653, allocations: 12.49 MB / 1.244 GB, free: 11.89 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001085/0.9664, allocations: 1.264 MB / 1.245 GB, free: 10.59 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.002007/0.9685, allocations: 394.3 kB / 1.245 GB, free: 10.2 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001248/0.9697, allocations: 0.6593 MB / 1.246 GB, free: 9.543 MB / 0.9981 GB Notification: Performance of SimCode: time 1.041e-06/0.9697, allocations: 0 / 1.246 GB, free: 9.543 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.543/1.513, allocations: 32.35 MB / 1.278 GB, free: 220.6 MB / 0.9981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001566/1.513, allocations: 300.2 kB / 1.278 GB, free: 220.2 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.818/4.331, allocations: 0 / 1.278 GB, free: 220.2 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)