Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.Examples.RenewableSources.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Electrical.Examples.RenewableSources,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.Examples.RenewableSources") translateModel(Buildings.Electrical.Examples.RenewableSources,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.Examples.RenewableSources") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.408/1.408, allocations: 251.5 MB / 267.4 MB, free: 11.07 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001287/0.001287, allocations: 171.1 kB / 326.5 MB, free: 2.727 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.647/1.647, allocations: 205 MB / 0.5766 GB, free: 21.03 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008199/0.0008197, allocations: 83.98 kB / 0.6804 GB, free: 14.76 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003423/0.0003423, allocations: 8.031 kB / 0.7938 GB, free: 136.5 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2135/0.2138, allocations: 105.4 MB / 0.8967 GB, free: 68.27 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Examples.RenewableSources): time 0.03292/0.2468, allocations: 43.93 MB / 0.9396 GB, free: 24.19 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.7109/0.9578, allocations: 169.7 MB / 1.105 GB, free: 7.91 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.008451/0.9663, allocations: 141.8 kB / 1.105 GB, free: 7.867 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 0.01219/0.9785, allocations: 4.86 MB / 1.11 GB, free: 7.098 MB / 0.698 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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 7.0.3-maint.7.0.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 7.0.3-maint.7.0.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 7.0.3-maint.7.0.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.02133/0.9999, allocations: 4.614 MB / 1.115 GB, free: 5.922 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.01508/1.015, allocations: 4.841 MB / 1.119 GB, free: 5.699 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 0.02056/1.036, allocations: 13.79 MB / 1.133 GB, free: 1.441 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 0.02021/1.056, allocations: 9.892 MB / 1.143 GB, free: 11.84 MB / 0.7136 GB Notification: Performance of NFEvalConstants.evaluate: time 0.07154/1.127, allocations: 7.019 MB / 1.149 GB, free: 9.574 MB / 0.7136 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01012/1.138, allocations: 4.893 MB / 1.154 GB, free: 6.922 MB / 0.7136 GB Notification: Performance of NFPackage.collectConstants: time 0.003319/1.141, allocations: 280.4 kB / 1.154 GB, free: 6.922 MB / 0.7136 GB Notification: Performance of NFFlatten.collectFunctions: time 0.009834/1.151, allocations: 2.519 MB / 1.157 GB, free: 5.914 MB / 0.7136 GB Notification: Performance of NFScalarize.scalarize: time 0.004993/1.156, allocations: 2.241 MB / 1.159 GB, free: 4.516 MB / 0.7136 GB Notification: Performance of NFVerifyModel.verify: time 0.009985/1.166, allocations: 4.312 MB / 1.163 GB, free: 1.406 MB / 0.7136 GB Notification: Performance of NFConvertDAE.convert: time 0.02645/1.192, allocations: 16.18 MB / 1.179 GB, free: 2.238 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 6.362e-06/1.192, allocations: 0 / 1.179 GB, free: 2.238 MB / 0.7292 GB Notification: Performance of FrontEnd: time 2.214e-06/1.192, allocations: 0 / 1.179 GB, free: 2.238 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 0.0007137/1.193, allocations: 0 / 1.179 GB, free: 2.238 MB / 0.7292 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2462 * Number of variables: 2462 Notification: Performance of Generate backend data structure: time 0.02562/1.219, allocations: 8.876 MB / 1.188 GB, free: 9.285 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 5.239e-05/1.219, allocations: 12.03 kB / 1.188 GB, free: 9.273 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05048/1.269, allocations: 8.481 MB / 1.196 GB, free: 0.7695 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01366/1.283, allocations: 5.588 MB / 1.202 GB, free: 11.21 MB / 0.7605 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007964/1.284, allocations: 0.6906 MB / 1.202 GB, free: 10.53 MB / 0.7605 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00375/1.288, allocations: 0.9062 MB / 1.203 GB, free: 9.633 MB / 0.7605 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04319/1.331, allocations: 14.4 MB / 1.217 GB, free: 10.9 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004064/1.331, allocations: 19.78 kB / 1.217 GB, free: 10.88 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002855/1.334, allocations: 403.9 kB / 1.218 GB, free: 10.5 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001276/1.335, allocations: 0.5833 MB / 1.218 GB, free: 9.91 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04807/1.383, allocations: 15.59 MB / 1.233 GB, free: 10.3 MB / 0.7917 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.116/1.499, allocations: 47.15 MB / 1.279 GB, free: 9.867 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03059/1.53, allocations: 9.873 MB / 1.289 GB, free: 15.97 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01689/1.547, allocations: 5.816 MB / 1.295 GB, free: 10.14 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001728/1.549, allocations: 0.7108 MB / 1.295 GB, free: 9.363 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.02074/1.57, allocations: 6.489 MB / 1.302 GB, free: 2.785 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=671): time 1.68e-05/1.57, allocations: 0 / 1.302 GB, free: 2.785 MB / 0.8542 GB Notification: Performance of matching and sorting (n=1187): time 2.543/4.112, allocations: 335.5 MB / 1.629 GB, free: 179.1 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002392/4.112, allocations: 0.7075 MB / 1.63 GB, free: 178.3 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008823/4.121, allocations: 5.53 MB / 1.635 GB, free: 172.8 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 0.004661/4.126, allocations: 229.7 kB / 1.636 GB, free: 172.5 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.00355/4.129, allocations: 3.908 MB / 1.64 GB, free: 168.6 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.008113/4.138, allocations: 3.906 MB / 1.643 GB, free: 164.7 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005808/4.143, allocations: 0.958 MB / 1.644 GB, free: 163.8 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 5.38e-05/4.144, allocations: 301.1 kB / 1.645 GB, free: 163.5 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.05618/4.2, allocations: 19.19 MB / 1.663 GB, free: 144.3 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.05793/4.258, allocations: 20.86 MB / 1.684 GB, free: 122.9 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.109/4.367, allocations: 38.07 MB / 1.721 GB, free: 84.39 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.517e-05/4.367, allocations: 8 kB / 1.721 GB, free: 84.39 MB / 0.948 GB Notification: Performance of matching and sorting (n=1533) (initialization): time 0.169/4.536, allocations: 52.09 MB / 1.772 GB, free: 32.23 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005651/4.537, allocations: 1.086 MB / 1.773 GB, free: 30.69 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.593e-05/4.537, allocations: 34.62 kB / 1.773 GB, free: 30.66 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.05584/4.593, allocations: 14.24 MB / 1.787 GB, free: 16.39 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.5041/5.097, allocations: 6.324 MB / 1.793 GB, free: 351.9 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07871/5.175, allocations: 41.51 MB / 1.833 GB, free: 340.2 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.03913/5.215, allocations: 4.424 MB / 1.838 GB, free: 340 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004516/5.219, allocations: 0.6336 MB / 1.838 GB, free: 339.9 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.361e-05/5.219, allocations: 3.969 kB / 1.838 GB, free: 339.9 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.156/5.375, allocations: 48.69 MB / 1.886 GB, free: 309.7 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001035/5.375, allocations: 32 kB / 1.886 GB, free: 309.7 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03969/5.415, allocations: 10.53 MB / 1.896 GB, free: 299.1 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.04139/5.456, allocations: 6.378 MB / 1.902 GB, free: 292.7 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04832/5.505, allocations: 31.75 MB / 1.933 GB, free: 261 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0367/5.542, allocations: 4.382 MB / 1.938 GB, free: 256.6 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004277/5.546, allocations: 0.6243 MB / 1.938 GB, free: 256 MB / 0.948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 143 * Number of states: 0 () * Number of discrete variables: 54 ($PRE.pow1.nextTimeEvent,$whenCondition7,$PRE.pow2.nextTimeEvent,$whenCondition6,$PRE.pow3.nextTimeEvent,$whenCondition5,$PRE.pow4.nextTimeEvent,$whenCondition4,$PRE.pow5.nextTimeEvent,$whenCondition3,$PRE.pow6.nextTimeEvent,$whenCondition2,$PRE.pow7.nextTimeEvent,$whenCondition1,weaDat.conTim.canRepeatWeatherFile,weaDat.conTimMin.canRepeatWeatherFile,line8.commercialCable.material,line7.commercialCable.material,line6.commercialCable.material,line5.commercialCable.material,line4.commercialCable.material,line3.commercialCable.material,line2.commercialCable.material,line1.commercialCable.material,pow7.nextTimeEventScaled,$PRE.pow7.nextTimeEventScaled,pow7.nextTimeEvent,pow6.nextTimeEventScaled,$PRE.pow6.nextTimeEventScaled,pow6.nextTimeEvent,pow5.nextTimeEventScaled,$PRE.pow5.nextTimeEventScaled,pow5.nextTimeEvent,pow4.nextTimeEventScaled,$PRE.pow4.nextTimeEventScaled,pow4.nextTimeEvent,pow3.nextTimeEventScaled,$PRE.pow3.nextTimeEventScaled,pow3.nextTimeEvent,pow2.nextTimeEventScaled,$PRE.pow2.nextTimeEventScaled,pow2.nextTimeEvent,pow1.nextTimeEventScaled,$PRE.pow1.nextTimeEventScaled,pow1.nextTimeEvent,weaDat.conTim.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTimMin.tNext,$whenCondition8,$whenCondition9,ELoa.local_reset,ESol.local_reset,EWin.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1314): * Single equations (assignments): 1303 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(23,67,20.4%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(23,67)} Notification: Performance of prepare postOptimizeDAE: time 0.009828/5.556, allocations: 2.463 MB / 1.941 GB, free: 253.5 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004598/5.56, allocations: 0.8433 MB / 1.942 GB, free: 253.1 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1724/5.733, allocations: 53.57 MB / 1.994 GB, free: 199.5 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002891/5.733, allocations: 55.78 kB / 1.994 GB, free: 199.5 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.004e-05/5.733, allocations: 3.938 kB / 1.994 GB, free: 199.5 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008582/5.742, allocations: 4.095 MB / 1.998 GB, free: 195.5 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004522/5.746, allocations: 215.3 kB / 1.998 GB, free: 195.3 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.03506/5.781, allocations: 4.378 MB / 2.002 GB, free: 191 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003365/5.785, allocations: 0.8673 MB / 2.003 GB, free: 190.1 MB / 0.948 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.1647/5.949, allocations: 49.48 MB / 2.052 GB, free: 140.7 MB / 0.948 GB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.178/6.127, allocations: 62.61 MB / 2.113 GB, free: 77.99 MB / 0.948 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.05339/6.181, allocations: 20.32 MB / 2.133 GB, free: 57.64 MB / 0.948 GB Notification: Performance of sorting global known variables: time 0.00526/6.186, allocations: 3.704 MB / 2.136 GB, free: 53.94 MB / 0.948 GB Notification: Performance of Backend: time 7.51e-07/6.186, allocations: 0 / 2.136 GB, free: 53.94 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.5609/6.747, allocations: 50.72 MB / 2.186 GB, free: 348.3 MB / 0.948 GB Notification: Performance of SimCode: time 0.04341/6.791, allocations: 24.43 MB / 2.21 GB, free: 336.5 MB / 0.948 GB Notification: Performance of Templates: time 1.156/7.947, allocations: 0.5416 GB / 2.751 GB, free: 192.5 MB / 0.948 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Electrical.Examples.RenewableSources.makefile (rm -f Buildings_maint.7.0.x_Buildings.Electrical.Examples.RenewableSources.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.Examples.RenewableSources.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.Examples.RenewableSources.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.Examples.RenewableSources.sim & ./Buildings_maint.7.0.x_Buildings.Electrical.Examples.RenewableSources -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Electrical.Examples.RenewableSources.pipe 2>&1)