Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic.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.WindowRadiationElectrochromic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic") translateModel(Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 1.687/1.687, allocations: 287.5 MB / 302.6 MB, free: 8.301 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.0009315/0.0009316, allocations: 182.3 kB / 371.2 MB, free: 10.83 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.466/1.466, allocations: 205.4 MB / 0.6298 GB, free: 10.61 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.0009136/0.0009138, allocations: 102.5 kB / 0.7432 GB, free: 6.594 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004772/0.0004779, allocations: 11.84 kB / 0.8661 GB, free: 140.8 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2342/0.2347, allocations: 115.3 MB / 0.9787 GB, free: 28.2 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic): time 0.006407/0.2412, allocations: 6.142 MB / 0.9847 GB, free: 22.02 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.6341/0.8754, allocations: 141.1 MB / 1.122 GB, free: 1.594 MB / 0.6823 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001828/0.8772, allocations: 29.88 kB / 1.123 GB, free: 1.582 MB / 0.6823 GB Notification: Performance of NFTyping.typeComponents: time 0.005558/0.8828, allocations: 1.616 MB / 1.124 GB, free: 1.293 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.00337/0.8862, allocations: 0.8827 MB / 1.125 GB, free: 1.109 MB / 0.6823 GB Notification: Performance of NFTyping.typeClassSections: time 0.004105/0.8903, allocations: 1.016 MB / 1.126 GB, free: 1.039 MB / 0.6823 GB Notification: Performance of NFFlatten.flatten: time 0.005603/0.896, allocations: 4.604 MB / 1.13 GB, free: 0.6484 MB / 0.6823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002198/0.8982, allocations: 1.2 MB / 1.132 GB, free: 360 kB / 0.6823 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003133/0.9013, allocations: 1.3 MB / 1.133 GB, free: 88 kB / 0.6823 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003163/0.9045, allocations: 1.203 MB / 1.134 GB, free: 15.94 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 0.001039/0.9056, allocations: 65.84 kB / 1.134 GB, free: 15.94 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00563/0.9112, allocations: 1.978 MB / 1.136 GB, free: 15.86 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 0.004976/0.9162, allocations: 4.224 MB / 1.14 GB, free: 15.61 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 0.001705/0.918, allocations: 0.5322 MB / 1.141 GB, free: 15.47 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.008566/0.9266, allocations: 4.517 MB / 1.145 GB, free: 13.19 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 8.285e-06/0.9266, allocations: 1.375 kB / 1.145 GB, free: 13.19 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.144e-06/0.9266, allocations: 0 / 1.145 GB, free: 13.19 MB / 0.698 GB Notification: Performance of Transformations before backend: time 0.0002305/0.9268, allocations: 0 / 1.145 GB, free: 13.19 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: 400 * Number of variables: 400 Notification: Performance of Generate backend data structure: time 0.009787/0.9366, allocations: 3.336 MB / 1.148 GB, free: 11.05 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 3.984e-05/0.9367, allocations: 13.75 kB / 1.148 GB, free: 11.04 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002351/0.9391, allocations: 424.6 kB / 1.149 GB, free: 10.83 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01458/0.9537, allocations: 12.24 MB / 1.161 GB, free: 9.148 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001646/0.9539, allocations: 166.5 kB / 1.161 GB, free: 9.145 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008086/0.9547, allocations: 229.3 kB / 1.161 GB, free: 9.141 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00481/0.9595, allocations: 2.265 MB / 1.163 GB, free: 8.559 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.774e-05/0.9596, allocations: 0 / 1.163 GB, free: 8.559 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002502/0.9598, allocations: 63.28 kB / 1.163 GB, free: 8.559 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.94e-05/0.9599, allocations: 35.09 kB / 1.163 GB, free: 8.559 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003787/0.9637, allocations: 2.386 MB / 1.166 GB, free: 8.105 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02201/0.9857, allocations: 14.89 MB / 1.18 GB, free: 10.37 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004068/0.9898, allocations: 1.86 MB / 1.182 GB, free: 8.504 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001817/0.9917, allocations: 1.242 MB / 1.183 GB, free: 7.258 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001196/0.9918, allocations: 33.72 kB / 1.183 GB, free: 7.234 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00194/0.9938, allocations: 1.27 MB / 1.185 GB, free: 5.945 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=126): time 3.387e-06/0.9938, allocations: 0 / 1.185 GB, free: 5.945 MB / 0.7136 GB Notification: Performance of matching and sorting (n=126): time 0.006475/1, allocations: 3.662 MB / 1.188 GB, free: 2.25 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002108/1.001, allocations: 358.5 kB / 1.189 GB, free: 1.848 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03048/1.031, allocations: 20.53 MB / 1.209 GB, free: 13.29 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 0.0006806/1.032, allocations: 81.7 kB / 1.209 GB, free: 13.21 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.001924/1.034, allocations: 1.135 MB / 1.21 GB, free: 12.08 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006749/1.034, allocations: 436.8 kB / 1.21 GB, free: 11.66 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005665/1.035, allocations: 64 kB / 1.21 GB, free: 11.6 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0004386/1.035, allocations: 448.7 kB / 1.211 GB, free: 11.15 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01125/1.047, allocations: 12.36 MB / 1.223 GB, free: 14.79 MB / 0.7605 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01269/1.059, allocations: 13.34 MB / 1.236 GB, free: 1.031 MB / 0.7605 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01629/1.076, allocations: 15.1 MB / 1.251 GB, free: 1.5 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.48e-05/1.076, allocations: 8 kB / 1.251 GB, free: 1.492 MB / 0.7761 GB Notification: Performance of matching and sorting (n=411) (initialization): time 0.02874/1.105, allocations: 26.43 MB / 1.276 GB, free: 7.055 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003347/1.105, allocations: 209.9 kB / 1.277 GB, free: 6.844 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.089e-05/1.105, allocations: 32 kB / 1.277 GB, free: 6.812 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007579/1.106, allocations: 128.7 kB / 1.277 GB, free: 6.684 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003249/1.109, allocations: 0.685 MB / 1.277 GB, free: 6 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002323/1.111, allocations: 1.59 MB / 1.279 GB, free: 4.273 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003533/1.115, allocations: 371.6 kB / 1.279 GB, free: 3.914 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008621/1.116, allocations: 166.8 kB / 1.279 GB, free: 3.754 MB / 0.8073 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 135 * 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 (380): * Single equations (assignments): 378 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.004134/1.12, allocations: 2.511 MB / 1.282 GB, free: 1.23 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007705/1.121, allocations: 256.5 kB / 1.282 GB, free: 0.9766 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006106/1.127, allocations: 3.369 MB / 1.285 GB, free: 13.59 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.168e-05/1.127, allocations: 8 kB / 1.285 GB, free: 13.58 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.958e-06/1.127, allocations: 0 / 1.285 GB, free: 13.58 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.341e-05/1.127, allocations: 7.984 kB / 1.285 GB, free: 13.57 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01048/1.138, allocations: 5.399 MB / 1.291 GB, free: 8.121 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.935e-06/1.138, allocations: 0 / 1.291 GB, free: 8.121 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008716/1.138, allocations: 195.8 kB / 1.291 GB, free: 7.93 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005296/1.139, allocations: 84.77 kB / 1.291 GB, free: 7.844 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001163/1.139, allocations: 35.98 kB / 1.291 GB, free: 7.809 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00192/1.141, allocations: 1.548 MB / 1.292 GB, free: 6.125 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.744e-06/1.141, allocations: 0 / 1.292 GB, free: 6.125 MB / 0.823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005286/1.146, allocations: 3.281 MB / 1.296 GB, free: 2.812 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001451/1.148, allocations: 0.5986 MB / 1.296 GB, free: 2.191 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006296/1.149, allocations: 23.98 kB / 1.296 GB, free: 2.168 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001488/1.15, allocations: 103.9 kB / 1.296 GB, free: 2.066 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002528/1.15, allocations: 88.16 kB / 1.296 GB, free: 1.98 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001546/1.15, allocations: 63.97 kB / 1.297 GB, free: 1.918 MB / 0.823 GB Notification: Performance of sorting global known variables: time 0.01276/1.163, allocations: 12.75 MB / 1.309 GB, free: 5.168 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.964e-06/1.163, allocations: 0 / 1.309 GB, free: 5.168 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.004648/1.168, allocations: 1.242 MB / 1.31 GB, free: 3.93 MB / 0.8386 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.003041/1.171, allocations: 0.946 MB / 1.311 GB, free: 3.195 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.01477/1.186, allocations: 16.14 MB / 1.327 GB, free: 3.047 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 8.646e-06/1.186, allocations: 0 / 1.327 GB, free: 3.047 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.003101/1.189, allocations: 2.661 MB / 1.329 GB, free: 368 kB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0023/1.191, allocations: 419.9 kB / 1.33 GB, free: 15.95 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.027/1.218, allocations: 21.33 MB / 1.351 GB, free: 10.57 MB / 0.8855 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]