Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: translateModel(Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic") translateModel(Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 1.707/1.707, allocations: 287.5 MB / 302.6 MB, free: 8.266 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00136/0.00136, allocations: 189.5 kB / 371.2 MB, free: 10.86 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.503/1.503, allocations: 205.4 MB / 0.6299 GB, free: 10.5 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007658/0.0007659, allocations: 82.38 kB / 0.7432 GB, free: 6.512 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004171/0.0004175, allocations: 13.47 kB / 0.8661 GB, free: 140.6 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2377/0.2381, allocations: 115.3 MB / 0.9787 GB, free: 28.23 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic): time 0.005736/0.2439, allocations: 5.023 MB / 0.9836 GB, free: 23.17 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.6877/0.9317, allocations: 140.2 MB / 1.121 GB, free: 1.625 MB / 0.6823 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0012/0.9329, allocations: 21.78 kB / 1.121 GB, free: 1.617 MB / 0.6823 GB Notification: Performance of NFTyping.typeComponents: time 0.004506/0.9375, allocations: 1.495 MB / 1.122 GB, free: 1.367 MB / 0.6823 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0.0/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.0.0/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.0.0/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.002138/0.9396, allocations: 0.545 MB / 1.123 GB, free: 1.238 MB / 0.6823 GB Notification: Performance of NFTyping.typeClassSections: time 0.002494/0.9421, allocations: 0.7294 MB / 1.123 GB, free: 1.188 MB / 0.6823 GB Notification: Performance of NFFlatten.flatten: time 0.003444/0.9456, allocations: 2.89 MB / 1.126 GB, free: 0.918 MB / 0.6823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001173/0.9467, allocations: 0.8639 MB / 1.127 GB, free: 0.7031 MB / 0.6823 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001703/0.9485, allocations: 0.8981 MB / 1.128 GB, free: 0.5195 MB / 0.6823 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001114/0.9496, allocations: 0.7531 MB / 1.129 GB, free: 372 kB / 0.6823 GB Notification: Performance of NFPackage.collectConstants: time 0.0001704/0.9498, allocations: 42.88 kB / 1.129 GB, free: 372 kB / 0.6823 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003865/0.9536, allocations: 1.737 MB / 1.13 GB, free: 304 kB / 0.6823 GB Notification: Performance of NFScalarize.scalarize: time 0.001517/0.9552, allocations: 1.768 MB / 1.132 GB, free: 220 kB / 0.6823 GB Notification: Performance of NFVerifyModel.verify: time 0.0005509/0.9557, allocations: 369.1 kB / 1.132 GB, free: 108 kB / 0.6823 GB Notification: Performance of NFConvertDAE.convert: time 0.005659/0.9614, allocations: 3.009 MB / 1.135 GB, free: 15.75 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 5.641e-06/0.9615, allocations: 4 kB / 1.135 GB, free: 15.75 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.714e-06/0.9615, allocations: 0 / 1.135 GB, free: 15.75 MB / 0.698 GB Notification: Performance of Transformations before backend: time 8.991e-05/0.9616, allocations: 1.312 kB / 1.135 GB, free: 15.75 MB / 0.698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 309 * Number of variables: 309 Notification: Performance of Generate backend data structure: time 0.005928/0.9675, allocations: 2.366 MB / 1.138 GB, free: 14.16 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.521e-05/0.9676, allocations: 8.938 kB / 1.138 GB, free: 14.16 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001093/0.9687, allocations: 308.1 kB / 1.138 GB, free: 14.01 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006201/0.9749, allocations: 4.498 MB / 1.142 GB, free: 13.1 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001131/0.975, allocations: 125 kB / 1.142 GB, free: 13.1 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003463/0.9754, allocations: 173.9 kB / 1.143 GB, free: 13.09 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00279/0.9782, allocations: 1.558 MB / 1.144 GB, free: 12.66 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.656e-05/0.9782, allocations: 0 / 1.144 GB, free: 12.66 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001025/0.9783, allocations: 47.44 kB / 1.144 GB, free: 12.66 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.895e-05/0.9784, allocations: 26.47 kB / 1.144 GB, free: 12.66 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002512/0.9809, allocations: 1.639 MB / 1.146 GB, free: 12.32 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01134/0.9922, allocations: 6.771 MB / 1.152 GB, free: 10.16 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001936/0.9942, allocations: 1.462 MB / 1.154 GB, free: 9.996 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001087/0.9953, allocations: 0.9967 MB / 1.155 GB, free: 9.906 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 8.457e-05/0.9954, allocations: 36.88 kB / 1.155 GB, free: 9.898 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00122/0.9967, allocations: 0.8867 MB / 1.156 GB, free: 9.699 MB / 0.698 GB Notification: Performance of pre-optimization done (n=106): time 3.287e-06/0.9967, allocations: 0 / 1.156 GB, free: 9.699 MB / 0.698 GB Notification: Performance of matching and sorting (n=106): time 0.004383/1.001, allocations: 2.671 MB / 1.158 GB, free: 9.254 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002637/1.001, allocations: 351.5 kB / 1.159 GB, free: 8.977 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01034/1.012, allocations: 7.312 MB / 1.166 GB, free: 7.531 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 0.0007839/1.013, allocations: 68.52 kB / 1.166 GB, free: 7.488 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.001105/1.014, allocations: 0.7511 MB / 1.167 GB, free: 7.023 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005278/1.014, allocations: 364.3 kB / 1.167 GB, free: 6.715 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001395/1.014, allocations: 43.25 kB / 1.167 GB, free: 6.703 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0003056/1.015, allocations: 410.5 kB / 1.167 GB, free: 6.336 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005111/1.02, allocations: 4.657 MB / 1.172 GB, free: 2.168 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005322/1.025, allocations: 5.397 MB / 1.177 GB, free: 12.45 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007296/1.032, allocations: 6.776 MB / 1.184 GB, free: 5.348 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.373e-05/1.032, allocations: 13.8 kB / 1.184 GB, free: 5.336 MB / 0.7136 GB Notification: Performance of matching and sorting (n=303) (initialization): time 0.0117/1.044, allocations: 10.56 MB / 1.194 GB, free: 10.77 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002242/1.044, allocations: 185.6 kB / 1.194 GB, free: 10.58 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.786e-05/1.045, allocations: 24 kB / 1.194 GB, free: 10.56 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.884e-05/1.045, allocations: 35.94 kB / 1.194 GB, free: 10.52 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001823/1.046, allocations: 495.2 kB / 1.195 GB, free: 10.04 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.602e-05/1.046, allocations: 51.73 kB / 1.195 GB, free: 9.988 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001839/1.048, allocations: 277.2 kB / 1.195 GB, free: 9.719 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002211/1.049, allocations: 120 kB / 1.195 GB, free: 9.602 MB / 0.7292 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 101 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,$PRE.weaDat.conTimMin.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTim.tNext,weaDat.conTimMin.canRepeatWeatherFile,weaDat.conTim.canRepeatWeatherFile) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (274): * Single equations (assignments): 273 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001748/1.05, allocations: 1.239 MB / 1.196 GB, free: 8.348 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003019/1.051, allocations: 169.8 kB / 1.197 GB, free: 8.18 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003833/1.054, allocations: 2.599 MB / 1.199 GB, free: 5.562 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.135e-05/1.054, allocations: 8 kB / 1.199 GB, free: 5.555 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.088e-06/1.054, allocations: 3.938 kB / 1.199 GB, free: 5.551 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.428e-06/1.055, allocations: 3.984 kB / 1.199 GB, free: 5.547 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005624/1.06, allocations: 4.093 MB / 1.203 GB, free: 1.414 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.709e-06/1.06, allocations: 0 / 1.203 GB, free: 1.414 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006243/1.061, allocations: 151.8 kB / 1.203 GB, free: 1.266 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.186e-06/1.061, allocations: 3.938 kB / 1.203 GB, free: 1.262 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.472e-05/1.061, allocations: 39.97 kB / 1.203 GB, free: 1.223 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.573e-06/1.061, allocations: 4 kB / 1.203 GB, free: 1.219 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/1.061, allocations: 0 / 1.203 GB, free: 1.219 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003238/1.064, allocations: 2.565 MB / 1.206 GB, free: 14.63 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006857/1.065, allocations: 438.2 kB / 1.206 GB, free: 14.18 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001896/1.065, allocations: 24 kB / 1.206 GB, free: 14.16 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007181/1.066, allocations: 71.94 kB / 1.206 GB, free: 14.09 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001615/1.066, allocations: 68.91 kB / 1.206 GB, free: 14.02 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.198e-05/1.066, allocations: 39.98 kB / 1.206 GB, free: 13.98 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.004378/1.07, allocations: 4.607 MB / 1.211 GB, free: 9.387 MB / 0.7448 GB Notification: Performance of sort global known variables: time 3.3e-07/1.07, allocations: 0 / 1.211 GB, free: 9.387 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.003682/1.074, allocations: 0.9875 MB / 1.212 GB, free: 8.406 MB / 0.7448 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.conTim.tNext,weaDat.conTimMin.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (90): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002796/1.077, allocations: 0.9045 MB / 1.213 GB, free: 7.727 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.008785/1.086, allocations: 7.79 MB / 1.22 GB, free: 15.93 MB / 0.7605 GB Notification: Performance of simCode: created event and clocks part: time 9.187e-06/1.086, allocations: 8.062 kB / 1.22 GB, free: 15.92 MB / 0.7605 GB Notification: Performance of simCode: created simulation system equations: time 0.002566/1.088, allocations: 2.18 MB / 1.223 GB, free: 13.73 MB / 0.7605 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002512/1.091, allocations: 298.1 kB / 1.223 GB, free: 13.43 MB / 0.7605 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01534/1.106, allocations: 9.369 MB / 1.232 GB, free: 4.027 MB / 0.7605 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:762:5-762:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]