Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic.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.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic") translateModel(Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001033/0.001033, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001074/0.001074, allocations: 193 kB / 16.13 MB, free: 6.652 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.345/1.345, allocations: 205.1 MB / 222 MB, free: 4.734 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.662/1.662, 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.001627/0.001627, allocations: 64.3 kB / 0.6708 GB, free: 26.56 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2308/0.2325, allocations: 114.5 MB / 0.7827 GB, free: 14 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic): time 0.008606/0.2411, allocations: 7.011 MB / 0.7895 GB, free: 6.945 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.6149/0.8561, allocations: 156.9 MB / 0.9427 GB, free: 4.93 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001693/0.8578, allocations: 34.06 kB / 0.9428 GB, free: 4.93 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.006475/0.8643, allocations: 1.781 MB / 0.9445 GB, free: 4.895 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.00493/0.8693, allocations: 0.9698 MB / 0.9454 GB, free: 4.867 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.004226/0.8735, allocations: 1.188 MB / 0.9466 GB, free: 4.824 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.006535/0.8801, allocations: 5.045 MB / 0.9515 GB, free: 4.547 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002131/0.8822, allocations: 1.214 MB / 0.9527 GB, free: 4.281 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003408/0.8857, allocations: 1.38 MB / 0.9541 GB, free: 4.18 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002869/0.8886, allocations: 1.409 MB / 0.9554 GB, free: 4.152 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.0007528/0.8893, allocations: 127.6 kB / 0.9556 GB, free: 4.152 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005824/0.8952, allocations: 2.2 MB / 0.9577 GB, free: 4.059 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.005202/0.9004, allocations: 4.183 MB / 0.9618 GB, free: 4.035 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.004049/0.9045, allocations: 1.435 MB / 0.9632 GB, free: 3.617 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.01063/0.9152, allocations: 5.761 MB / 0.9688 GB, free: 2.895 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/0.9152, allocations: 1.625 kB / 0.9688 GB, free: 2.895 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.673e-06/0.9152, allocations: 4 kB / 0.9688 GB, free: 2.891 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 0.0001774/0.9154, allocations: 0 / 0.9688 GB, free: 2.891 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: 400 * Number of variables: 400 Notification: Performance of Generate backend data structure: time 0.009583/0.925, allocations: 3.989 MB / 0.9727 GB, free: 17.08 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 4.085e-05/0.925, allocations: 13.53 kB / 0.9727 GB, free: 17.07 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001881/0.9269, allocations: 411.8 kB / 0.9731 GB, free: 16.89 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01313/0.9401, allocations: 12.25 MB / 0.9851 GB, free: 14.64 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002585/0.9404, allocations: 173.4 kB / 0.9853 GB, free: 14.55 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001142/0.9416, allocations: 227.2 kB / 0.9855 GB, free: 14.48 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004218/0.9458, allocations: 2.26 MB / 0.9877 GB, free: 13.26 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.884e-05/0.9458, allocations: 2.906 kB / 0.9877 GB, free: 13.26 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001814/0.946, allocations: 62.94 kB / 0.9877 GB, free: 13.21 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.071e-05/0.9461, allocations: 35.28 kB / 0.9878 GB, free: 13.21 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003678/0.9497, allocations: 2.383 MB / 0.9901 GB, free: 12.18 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02013/0.9699, allocations: 14.77 MB / 1.005 GB, free: 3.938 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003007/0.9729, allocations: 1.852 MB / 1.006 GB, free: 2.074 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001619/0.9746, allocations: 1.238 MB / 1.008 GB, free: 0.8359 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001273/0.9748, allocations: 34.05 kB / 1.008 GB, free: 0.8086 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001936/0.9767, allocations: 1.265 MB / 1.009 GB, free: 15.53 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=126): time 3.748e-06/0.9767, allocations: 0 / 1.009 GB, free: 15.53 MB / 0.7637 GB Notification: Performance of matching and sorting (n=126): time 0.007264/0.984, allocations: 3.636 MB / 1.012 GB, free: 11.86 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002215/0.9842, allocations: 366.5 kB / 1.013 GB, free: 11.45 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03089/1.015, allocations: 20.52 MB / 1.033 GB, free: 6.906 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 0.0007828/1.016, allocations: 85.7 kB / 1.033 GB, free: 6.816 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.00177/1.018, allocations: 1.138 MB / 1.034 GB, free: 5.691 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006024/1.018, allocations: 439 kB / 1.034 GB, free: 5.27 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004331/1.023, allocations: 4.901 MB / 1.039 GB, free: 356 kB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001287/1.023, allocations: 305.1 kB / 1.039 GB, free: 48 kB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.03276/1.056, allocations: 38.63 MB / 1.077 GB, free: 9.402 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.03587/1.092, allocations: 40.03 MB / 1.116 GB, free: 1.113 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.04175/1.133, allocations: 47.65 MB / 1.163 GB, free: 0.9922 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.887e-05/1.133, allocations: 8 kB / 1.163 GB, free: 0.9844 MB / 0.9044 GB Notification: Performance of matching and sorting (n=1836) (initialization): time 0.1032/1.237, allocations: 90.86 MB / 1.252 GB, free: 5.75 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004007/1.237, allocations: 197.6 kB / 1.252 GB, free: 5.551 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.232e-05/1.237, allocations: 20.86 kB / 1.252 GB, free: 5.531 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006952/1.238, allocations: 116.9 kB / 1.252 GB, free: 5.414 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002792/1.241, allocations: 0.5928 MB / 1.252 GB, free: 4.82 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002166/1.243, allocations: 1.558 MB / 1.254 GB, free: 3.125 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003269/1.246, allocations: 356.6 kB / 1.254 GB, free: 2.781 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006905/1.247, allocations: 151.2 kB / 1.254 GB, free: 2.637 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 83 * 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 (380): * Single equations (assignments): 339 * Array equations: 39 * Algorithm blocks: 1 * 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.004003/1.251, allocations: 2.488 MB / 1.257 GB, free: 144 kB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007918/1.252, allocations: 248.8 kB / 1.257 GB, free: 15.89 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005492/1.257, allocations: 3.344 MB / 1.26 GB, free: 12.54 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.577e-05/1.257, allocations: 12 kB / 1.26 GB, free: 12.52 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/1.257, allocations: 0 / 1.26 GB, free: 12.52 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.245e-05/1.257, allocations: 7.984 kB / 1.26 GB, free: 12.52 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009011/1.266, allocations: 5.394 MB / 1.266 GB, free: 7.07 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.696e-06/1.266, allocations: 4 kB / 1.266 GB, free: 7.066 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008322/1.267, allocations: 195.7 kB / 1.266 GB, free: 6.875 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005389/1.268, allocations: 88.2 kB / 1.266 GB, free: 6.789 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001053/1.268, allocations: 35.98 kB / 1.266 GB, free: 6.754 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00186/1.27, allocations: 1.544 MB / 1.267 GB, free: 5.074 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/1.27, allocations: 0 / 1.267 GB, free: 5.074 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005016/1.275, allocations: 3.269 MB / 1.271 GB, free: 1.777 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001397/1.276, allocations: 0.5247 MB / 1.271 GB, free: 1.23 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004483/1.277, allocations: 24 kB / 1.271 GB, free: 1.207 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00104/1.278, allocations: 87.91 kB / 1.271 GB, free: 1.121 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002498/1.278, allocations: 80.89 kB / 1.271 GB, free: 1.039 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001471/1.278, allocations: 59.97 kB / 1.271 GB, free: 0.9805 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.01229/1.29, allocations: 12.75 MB / 1.284 GB, free: 4.238 MB / 1.029 GB Notification: Performance of sort global known variables: time 6.81e-07/1.29, allocations: 3.938 kB / 1.284 GB, free: 4.234 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.006606/1.297, allocations: 1.71 MB / 1.286 GB, free: 2.527 MB / 1.029 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 (111): * Single equations (assignments): 107 * Array equations: 0 * Algorithm blocks: 1 * 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.003084/1.3, allocations: 0.9526 MB / 1.286 GB, free: 1.781 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.4039/1.704, allocations: 50.79 MB / 1.336 GB, free: 436.3 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 1.014e-05/1.704, allocations: 0 / 1.336 GB, free: 436.3 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.002835/1.707, allocations: 2.652 MB / 1.339 GB, free: 435 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00234/1.709, allocations: 434.3 kB / 1.339 GB, free: 434.9 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02428/1.734, allocations: 21.02 MB / 1.36 GB, free: 416.8 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005525/1.739, allocations: 4.608 MB / 1.364 GB, free: 413.3 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.002167/1.741, allocations: 0.6368 MB / 1.365 GB, free: 412.8 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006033/1.742, allocations: 200.4 kB / 1.365 GB, free: 412.6 MB / 1.045 GB Notification: Performance of SimCode: time 8.71e-07/1.742, allocations: 4 kB / 1.365 GB, free: 412.6 MB / 1.045 GB Notification: Performance of Templates: time 0.1557/1.898, allocations: 56.84 MB / 1.42 GB, free: 358.3 MB / 1.045 GB make -j1 -f Buildings_8_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic.makefile (rm -f Buildings_8_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic.pipe ; mkfifo Buildings_8_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic.pipe ; head -c 1048576 < Buildings_8_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic.pipe >> ../files/Buildings_8_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic.sim & ./Buildings_8_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic.pipe 2>&1)