Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: translateModel(Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController") translateModel(Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001111/0.001111, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001203/0.001203, allocations: 194 kB / 16.25 MB, free: 6.625 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.635/1.635, allocations: 205.1 MB / 222.1 MB, free: 4.664 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.706/1.706, allocations: 292.2 MB / 0.5485 GB, free: 13.64 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001402/0.001403, allocations: 67.27 kB / 0.671 GB, free: 26.29 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3497/0.3511, allocations: 114.5 MB / 0.7829 GB, free: 13.93 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController): time 0.007933/0.3591, allocations: 4.45 MB / 0.7872 GB, free: 9.453 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.859/1.218, allocations: 148.4 MB / 0.9321 GB, free: 5.336 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001425/1.22, allocations: 17.62 kB / 0.9321 GB, free: 5.336 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.001065/1.221, allocations: 167 kB / 0.9323 GB, free: 5.336 MB / 0.7325 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/BoundaryConditions/WeatherData/BaseClasses/getHeaderElementTMY3.mo:2:1-105:25:writable] Warning: Pure function ‘Buildings.BoundaryConditions.WeatherData.BaseClasses.getHeaderElementTMY3‘ contains a call to impure function ‘Modelica.Utilities.Streams.readLine‘. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/BoundaryConditions/WeatherData/BaseClasses/getLongitudeTMY3.mo:2:1-48:21:writable] Warning: Pure function ‘Buildings.BoundaryConditions.WeatherData.BaseClasses.getLongitudeTMY3‘ contains a call to impure function ‘Buildings.BoundaryConditions.WeatherData.BaseClasses.getHeaderElementTMY3‘. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/BoundaryConditions/WeatherData/BaseClasses/getLatitudeTMY3.mo:2:1-48:20:writable] Warning: Pure function ‘Buildings.BoundaryConditions.WeatherData.BaseClasses.getLatitudeTMY3‘ contains a call to impure function ‘Buildings.BoundaryConditions.WeatherData.BaseClasses.getHeaderElementTMY3‘. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/BoundaryConditions/WeatherData/BaseClasses/getTimeZoneTMY3.mo:2:1-47:20:writable] Warning: Pure function ‘Buildings.BoundaryConditions.WeatherData.BaseClasses.getTimeZoneTMY3‘ contains a call to impure function ‘Buildings.BoundaryConditions.WeatherData.BaseClasses.getHeaderElementTMY3‘. Notification: Performance of NFTyping.typeBindings: time 0.002536/1.223, allocations: 440 kB / 0.9327 GB, free: 5.328 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.002821/1.226, allocations: 0.7016 MB / 0.9334 GB, free: 5.32 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.002628/1.229, allocations: 1.211 MB / 0.9346 GB, free: 5.312 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001165/1.23, allocations: 0.6264 MB / 0.9352 GB, free: 5.184 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001264/1.231, allocations: 443.6 kB / 0.9356 GB, free: 5.184 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008644/1.232, allocations: 464.2 kB / 0.9361 GB, free: 5.184 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.000166/1.232, allocations: 106.6 kB / 0.9362 GB, free: 5.184 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001178/1.233, allocations: 404.8 kB / 0.9365 GB, free: 5.172 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0003391/1.234, allocations: 275.4 kB / 0.9368 GB, free: 5.172 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0006418/1.234, allocations: 0.5134 MB / 0.9373 GB, free: 5.172 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.002338/1.237, allocations: 1.466 MB / 0.9387 GB, free: 5.082 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 7.424e-06/1.237, allocations: 0 / 0.9387 GB, free: 5.082 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.954e-06/1.237, allocations: 0 / 0.9387 GB, free: 5.082 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.737e-05/1.237, allocations: 0 / 0.9387 GB, free: 5.082 MB / 0.7325 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.003253/1.24, allocations: 1.368 MB / 0.9401 GB, free: 20.33 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 6.2e-05/1.24, allocations: 8.562 kB / 0.9401 GB, free: 20.33 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00108/1.241, allocations: 185.9 kB / 0.9403 GB, free: 20.27 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001218/1.242, allocations: 0.7282 MB / 0.941 GB, free: 19.95 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.828e-05/1.243, allocations: 61.88 kB / 0.941 GB, free: 19.95 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000122/1.243, allocations: 80.2 kB / 0.9411 GB, free: 19.95 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001649/1.244, allocations: 0.8667 MB / 0.9419 GB, free: 19.8 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.285e-05/1.244, allocations: 5.781 kB / 0.942 GB, free: 19.8 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.118e-05/1.244, allocations: 32.7 kB / 0.942 GB, free: 19.8 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.858e-05/1.245, allocations: 21.44 kB / 0.942 GB, free: 19.8 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001885/1.246, allocations: 1.074 MB / 0.9431 GB, free: 19.79 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004454/1.251, allocations: 2.423 MB / 0.9454 GB, free: 19.01 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001433/1.252, allocations: 0.7491 MB / 0.9462 GB, free: 18.97 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005979/1.253, allocations: 286.9 kB / 0.9464 GB, free: 18.96 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002312/1.253, allocations: 112.2 kB / 0.9465 GB, free: 18.87 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001038/1.254, allocations: 441.8 kB / 0.947 GB, free: 18.79 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=73): time 3.867e-06/1.254, allocations: 0 / 0.947 GB, free: 18.79 MB / 0.7481 GB Notification: Performance of matching and sorting (n=73): time 0.003418/1.258, allocations: 1.119 MB / 0.948 GB, free: 18.59 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001386/1.258, allocations: 192.3 kB / 0.9482 GB, free: 18.37 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001086/1.259, allocations: 0.631 MB / 0.9488 GB, free: 18.24 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 8.63e-05/1.259, allocations: 36.64 kB / 0.9489 GB, free: 18.21 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003978/1.259, allocations: 390.9 kB / 0.9493 GB, free: 18.03 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002183/1.26, allocations: 244.7 kB / 0.9495 GB, free: 17.88 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002721/1.26, allocations: 150.2 kB / 0.9496 GB, free: 17.86 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0002061/1.26, allocations: 386 kB / 0.95 GB, free: 17.54 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005763/1.261, allocations: 250.8 kB / 0.9502 GB, free: 17.54 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007348/1.261, allocations: 341.3 kB / 0.9506 GB, free: 17.49 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001324/1.263, allocations: 0.5798 MB / 0.9511 GB, free: 17.44 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.997e-06/1.263, allocations: 0.5312 kB / 0.9511 GB, free: 17.44 MB / 0.7481 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.002437/1.265, allocations: 0.8066 MB / 0.9519 GB, free: 17.33 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 2.794e-05/1.265, allocations: 5.625 kB / 0.9519 GB, free: 17.33 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.368e-05/1.265, allocations: 1.594 kB / 0.9519 GB, free: 17.33 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006418/1.266, allocations: 85.16 kB / 0.952 GB, free: 17.32 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000685/1.267, allocations: 156.4 kB / 0.9522 GB, free: 17.31 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002703/1.269, allocations: 1.642 MB / 0.9538 GB, free: 15.92 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001013/1.27, allocations: 82.11 kB / 0.9538 GB, free: 15.89 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.256e-05/1.271, allocations: 32.23 kB / 0.9539 GB, free: 15.89 MB / 0.7481 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 8 (weaDat.conTim.canRepeatWeatherFile,weaDat.conTimMin.canRepeatWeatherFile,weaDat.conTim.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTimMin.tNext,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 83 * 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.0009366/1.271, allocations: 264.4 kB / 0.9541 GB, free: 15.77 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002484/1.272, allocations: 84.23 kB / 0.9542 GB, free: 15.73 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00295/1.275, allocations: 1.002 MB / 0.9552 GB, free: 15.61 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.672e-05/1.275, allocations: 8.688 kB / 0.9552 GB, free: 15.61 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.698e-06/1.275, allocations: 3.594 kB / 0.9552 GB, free: 15.61 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.234e-05/1.275, allocations: 3.594 kB / 0.9552 GB, free: 15.61 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001809/1.277, allocations: 0.8786 MB / 0.9561 GB, free: 15.39 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.7e-06/1.277, allocations: 0 / 0.9561 GB, free: 15.39 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006905/1.277, allocations: 146 kB / 0.9562 GB, free: 15.39 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005312/1.278, allocations: 71.33 kB / 0.9563 GB, free: 15.38 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.551e-05/1.278, allocations: 20.64 kB / 0.9563 GB, free: 15.38 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002391/1.28, allocations: 1.677 MB / 0.9579 GB, free: 13.98 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.538e-06/1.28, allocations: 1.094 kB / 0.9579 GB, free: 13.98 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002665/1.283, allocations: 0.8689 MB / 0.9588 GB, free: 13.83 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000544/1.284, allocations: 262.8 kB / 0.959 GB, free: 13.68 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001229/1.284, allocations: 15.12 kB / 0.959 GB, free: 13.68 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005744/1.284, allocations: 58.53 kB / 0.9591 GB, free: 13.68 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000206/1.284, allocations: 60.38 kB / 0.9591 GB, free: 13.68 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.775e-05/1.285, allocations: 33.97 kB / 0.9592 GB, free: 13.68 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0008068/1.285, allocations: 456.8 kB / 0.9596 GB, free: 13.58 MB / 0.7481 GB Notification: Performance of sort global known variables: time 2.6e-07/1.285, allocations: 0 / 0.9596 GB, free: 13.58 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.001099/1.286, allocations: 281.3 kB / 0.9599 GB, free: 13.53 MB / 0.7481 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of discrete states: 2 (weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 81 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001507/1.288, allocations: 0.5649 MB / 0.9604 GB, free: 13.32 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.002805/1.291, allocations: 0.9672 MB / 0.9614 GB, free: 13.17 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 6.172e-06/1.291, allocations: 0 / 0.9614 GB, free: 13.17 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.001049/1.292, allocations: 499.5 kB / 0.9619 GB, free: 13.05 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001709/1.294, allocations: 304.4 kB / 0.9621 GB, free: 13.02 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004737/1.298, allocations: 2.153 MB / 0.9642 GB, free: 11.97 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009285/1.299, allocations: 1.01 MB / 0.9652 GB, free: 11.26 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.001207/1.301, allocations: 253.4 kB / 0.9655 GB, free: 11.19 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002688/1.301, allocations: 100.5 kB / 0.9656 GB, free: 11.18 MB / 0.7481 GB Notification: Performance of SimCode: time 2.425e-06/1.301, allocations: 0 / 0.9656 GB, free: 11.18 MB / 0.7481 GB Notification: Performance of Templates: time 0.02856/1.329, allocations: 13.87 MB / 0.9791 GB, free: 8.461 MB / 0.7481 GB make -j1 -f Buildings_8_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.makefile (rm -f Buildings_8_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.pipe ; mkfifo Buildings_8_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.pipe >> ../files/Buildings_8_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.sim & ./Buildings_8_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.pipe 2>&1)