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.001543/0.001543, 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.002069/0.002069, allocations: 197 kB / 16.14 MB, free: 6.703 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.668/1.668, allocations: 205.1 MB / 222 MB, free: 5 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.735/1.735, allocations: 292.2 MB / 0.5484 GB, free: 13.68 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.00138/0.00138, allocations: 67.69 kB / 0.6708 GB, free: 26.17 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3009/0.3023, allocations: 114.5 MB / 0.7827 GB, free: 14.01 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController): time 0.00605/0.3084, allocations: 4.454 MB / 0.787 GB, free: 9.527 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.8615/1.17, allocations: 148.3 MB / 0.9318 GB, free: 5.332 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001148/1.171, allocations: 17.66 kB / 0.9319 GB, free: 5.332 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0008123/1.172, allocations: 161.1 kB / 0.932 GB, free: 5.332 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.001834/1.174, allocations: 424.4 kB / 0.9324 GB, free: 5.328 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.002115/1.176, allocations: 0.6836 MB / 0.9331 GB, free: 5.316 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.001742/1.178, allocations: 1.13 MB / 0.9342 GB, free: 5.309 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008658/1.179, allocations: 0.5987 MB / 0.9348 GB, free: 5.184 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008324/1.179, allocations: 390.1 kB / 0.9351 GB, free: 5.18 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006439/1.18, allocations: 432.2 kB / 0.9356 GB, free: 5.18 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.0001256/1.18, allocations: 52.28 kB / 0.9356 GB, free: 5.18 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008987/1.181, allocations: 349.6 kB / 0.9359 GB, free: 5.172 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0002774/1.181, allocations: 223.5 kB / 0.9362 GB, free: 5.172 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0005621/1.182, allocations: 470.5 kB / 0.9366 GB, free: 5.172 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.001954/1.184, allocations: 1.411 MB / 0.938 GB, free: 5.086 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/1.184, allocations: 0.7031 kB / 0.938 GB, free: 5.086 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.174e-06/1.184, allocations: 1.203 kB / 0.938 GB, free: 5.086 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.7e-05/1.184, allocations: 9.625 kB / 0.938 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.002799/1.187, allocations: 1.369 MB / 0.9393 GB, free: 20.33 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 5.434e-05/1.187, allocations: 10.56 kB / 0.9393 GB, free: 20.33 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009776/1.188, allocations: 180.3 kB / 0.9395 GB, free: 20.27 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001039/1.189, allocations: 0.7373 MB / 0.9402 GB, free: 19.96 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.089e-05/1.189, allocations: 56.75 kB / 0.9403 GB, free: 19.95 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.069e-05/1.189, allocations: 76.75 kB / 0.9404 GB, free: 19.95 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001552/1.191, allocations: 0.867 MB / 0.9412 GB, free: 19.8 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.928e-05/1.191, allocations: 0.5625 kB / 0.9412 GB, free: 19.8 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.398e-05/1.191, allocations: 32.44 kB / 0.9412 GB, free: 19.8 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.577e-05/1.191, allocations: 19.19 kB / 0.9413 GB, free: 19.8 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001906/1.193, allocations: 1.078 MB / 0.9423 GB, free: 19.79 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00403/1.197, allocations: 2.427 MB / 0.9447 GB, free: 19.02 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001283/1.198, allocations: 0.7474 MB / 0.9454 GB, free: 18.98 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005217/1.199, allocations: 285.9 kB / 0.9457 GB, free: 18.97 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002014/1.199, allocations: 114.8 kB / 0.9458 GB, free: 18.88 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001048/1.2, allocations: 442 kB / 0.9462 GB, free: 18.8 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=73): time 2.635e-06/1.2, allocations: 0 / 0.9462 GB, free: 18.8 MB / 0.7481 GB Notification: Performance of matching and sorting (n=73): time 0.003599/1.203, allocations: 1.118 MB / 0.9473 GB, free: 18.6 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001054/1.204, allocations: 196.3 kB / 0.9475 GB, free: 18.38 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009868/1.205, allocations: 0.6233 MB / 0.9481 GB, free: 18.24 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 9.183e-05/1.205, allocations: 39.77 kB / 0.9481 GB, free: 18.21 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003364/1.205, allocations: 397.2 kB / 0.9485 GB, free: 18.03 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001827/1.205, allocations: 246.6 kB / 0.9487 GB, free: 17.88 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000251/1.206, allocations: 149.5 kB / 0.9489 GB, free: 17.86 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001803/1.206, allocations: 385.9 kB / 0.9493 GB, free: 17.54 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005399/1.206, allocations: 248.7 kB / 0.9495 GB, free: 17.54 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006532/1.207, allocations: 345.8 kB / 0.9498 GB, free: 17.49 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001236/1.208, allocations: 0.5768 MB / 0.9504 GB, free: 17.44 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/1.208, allocations: 0.5 kB / 0.9504 GB, free: 17.44 MB / 0.7481 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.002577/1.211, allocations: 0.8073 MB / 0.9512 GB, free: 17.32 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 2.916e-05/1.211, allocations: 7 kB / 0.9512 GB, free: 17.32 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.688e-06/1.211, allocations: 0.6562 kB / 0.9512 GB, free: 17.32 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006965/1.212, allocations: 83.58 kB / 0.9513 GB, free: 17.31 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008585/1.212, allocations: 148.7 kB / 0.9514 GB, free: 17.31 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002586/1.215, allocations: 1.527 MB / 0.9529 GB, free: 16.02 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009385/1.216, allocations: 85.5 kB / 0.953 GB, free: 15.99 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.367e-05/1.216, allocations: 40.36 kB / 0.953 GB, free: 15.98 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.0007036/1.217, allocations: 258.8 kB / 0.9533 GB, free: 15.87 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001979/1.217, allocations: 86 kB / 0.9533 GB, free: 15.82 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002334/1.219, allocations: 1.004 MB / 0.9543 GB, free: 15.71 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.082e-05/1.219, allocations: 8.656 kB / 0.9543 GB, free: 15.71 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.046e-06/1.219, allocations: 0 / 0.9543 GB, free: 15.71 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.728e-06/1.219, allocations: 4.562 kB / 0.9543 GB, free: 15.71 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001181/1.221, allocations: 0.8732 MB / 0.9552 GB, free: 15.49 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.09e-06/1.221, allocations: 3.047 kB / 0.9552 GB, free: 15.49 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006326/1.221, allocations: 143.7 kB / 0.9553 GB, free: 15.49 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005453/1.222, allocations: 85.64 kB / 0.9554 GB, free: 15.47 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.659e-05/1.222, allocations: 24.47 kB / 0.9554 GB, free: 15.47 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001977/1.224, allocations: 1.56 MB / 0.957 GB, free: 14.17 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/1.224, allocations: 0 / 0.957 GB, free: 14.17 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002176/1.226, allocations: 0.8715 MB / 0.9578 GB, free: 14.02 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004256/1.226, allocations: 263.1 kB / 0.9581 GB, free: 13.87 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001256/1.227, allocations: 15.44 kB / 0.9581 GB, free: 13.87 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005523/1.227, allocations: 58.91 kB / 0.9581 GB, free: 13.87 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001521/1.227, allocations: 63.88 kB / 0.9582 GB, free: 13.86 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.36e-05/1.227, allocations: 32.2 kB / 0.9582 GB, free: 13.86 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0006805/1.228, allocations: 451.7 kB / 0.9587 GB, free: 13.77 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.2e-07/1.228, allocations: 0 / 0.9587 GB, free: 13.77 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.001104/1.229, allocations: 280.3 kB / 0.9589 GB, free: 13.73 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.001304/1.23, allocations: 0.5591 MB / 0.9595 GB, free: 13.52 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.001723/1.232, allocations: 0.7834 MB / 0.9602 GB, free: 13.38 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 4.969e-06/1.232, allocations: 1.781 kB / 0.9602 GB, free: 13.38 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0009572/1.233, allocations: 498.6 kB / 0.9607 GB, free: 13.26 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001334/1.235, allocations: 275.6 kB / 0.961 GB, free: 13.24 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004158/1.239, allocations: 2.155 MB / 0.9631 GB, free: 12.2 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006731/1.239, allocations: 1.016 MB / 0.9641 GB, free: 11.48 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.001013/1.24, allocations: 253.1 kB / 0.9643 GB, free: 11.41 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002741/1.241, allocations: 96.05 kB / 0.9644 GB, free: 11.4 MB / 0.7481 GB Notification: Performance of SimCode: time 1.873e-06/1.241, allocations: 0 / 0.9644 GB, free: 11.4 MB / 0.7481 GB Notification: Performance of Templates: time 0.02481/1.266, allocations: 13.39 MB / 0.9775 GB, free: 8.414 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)