Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic.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.AbsorbedRadiationElectrochromic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic") translateModel(Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008665/0.0008665, allocations: 91.38 kB / 15.06 MB, free: 1.098 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.0008558/0.0008558, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.311/1.311, allocations: 205.4 MB / 222.1 MB, free: 5.652 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.661/1.661, allocations: 292.7 MB / 0.5499 GB, free: 14.56 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.0004982/0.0004984, allocations: 21.56 kB / 0.6737 GB, free: 26.13 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2209/0.2214, allocations: 116.3 MB / 0.7873 GB, free: 11.95 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic): time 0.005622/0.2271, allocations: 5.027 MB / 0.7922 GB, free: 6.895 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.5724/0.7996, allocations: 140.2 MB / 0.9291 GB, free: 3.262 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005129/0.8001, allocations: 19.56 kB / 0.9292 GB, free: 3.254 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.003133/0.8032, allocations: 1.493 MB / 0.9306 GB, free: 3.008 MB / 0.7169 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.001161/0.8044, allocations: 0.5484 MB / 0.9312 GB, free: 2.875 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.001651/0.8061, allocations: 0.7241 MB / 0.9319 GB, free: 2.824 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.002835/0.8089, allocations: 2.864 MB / 0.9347 GB, free: 2.562 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00108/0.81, allocations: 0.7008 MB / 0.9353 GB, free: 2.422 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001801/0.8118, allocations: 0.8952 MB / 0.9362 GB, free: 2.242 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001407/0.8132, allocations: 0.7538 MB / 0.937 GB, free: 2.09 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 0.0002406/0.8135, allocations: 48.59 kB / 0.937 GB, free: 2.086 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004684/0.8182, allocations: 1.737 MB / 0.9387 GB, free: 2.02 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.002371/0.8206, allocations: 1.763 MB / 0.9404 GB, free: 1.938 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0007319/0.8213, allocations: 368.9 kB / 0.9408 GB, free: 1.832 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.005101/0.8264, allocations: 3.007 MB / 0.9437 GB, free: 1.609 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.8265, allocations: 1.156 kB / 0.9437 GB, free: 1.609 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.803e-06/0.8265, allocations: 0 / 0.9437 GB, free: 1.609 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.215e-05/0.8266, allocations: 0 / 0.9437 GB, free: 1.609 MB / 0.7169 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.005474/0.832, allocations: 2.395 MB / 0.9461 GB, free: 16.3 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.084e-05/0.8321, allocations: 13.34 kB / 0.9461 GB, free: 16.3 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001124/0.8332, allocations: 292.4 kB / 0.9463 GB, free: 16.18 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006675/0.8399, allocations: 4.456 MB / 0.9507 GB, free: 15.74 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001187/0.8401, allocations: 123.6 kB / 0.9508 GB, free: 15.74 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003291/0.8404, allocations: 176.9 kB / 0.951 GB, free: 15.73 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002203/0.8426, allocations: 1.324 MB / 0.9523 GB, free: 15.55 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.07e-05/0.8427, allocations: 0 / 0.9523 GB, free: 15.55 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.173e-05/0.8428, allocations: 46.81 kB / 0.9523 GB, free: 15.55 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.562e-05/0.8428, allocations: 27.38 kB / 0.9523 GB, free: 15.55 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001992/0.8448, allocations: 1.417 MB / 0.9537 GB, free: 15.53 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008201/0.853, allocations: 6.773 MB / 0.9603 GB, free: 13.92 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001373/0.8544, allocations: 1.127 MB / 0.9614 GB, free: 13.76 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006657/0.8551, allocations: 0.657 MB / 0.9621 GB, free: 13.69 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 8.491e-05/0.8552, allocations: 31.75 kB / 0.9621 GB, free: 13.69 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000852/0.856, allocations: 0.6654 MB / 0.9628 GB, free: 13.5 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=106): time 2.505e-06/0.856, allocations: 3.938 kB / 0.9628 GB, free: 13.5 MB / 0.7325 GB Notification: Performance of matching and sorting (n=106): time 0.002599/0.8586, allocations: 1.985 MB / 0.9647 GB, free: 13.11 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000198/0.8589, allocations: 347.6 kB / 0.965 GB, free: 12.84 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008449/0.8673, allocations: 7.319 MB / 0.9722 GB, free: 11.94 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 0.0002523/0.8676, allocations: 66.02 kB / 0.9722 GB, free: 11.91 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005888/0.8682, allocations: 0.7533 MB / 0.973 GB, free: 11.57 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.000287/0.8685, allocations: 356.5 kB / 0.9733 GB, free: 11.31 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001058/0.8686, allocations: 43.94 kB / 0.9734 GB, free: 11.31 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0002459/0.8688, allocations: 421.5 kB / 0.9738 GB, free: 10.97 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003511/0.8724, allocations: 4.424 MB / 0.9781 GB, free: 10.62 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003988/0.8764, allocations: 5.161 MB / 0.9831 GB, free: 9.391 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004359/0.8807, allocations: 4.854 MB / 0.9879 GB, free: 7.254 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-05/0.8808, allocations: 8 kB / 0.9879 GB, free: 7.246 MB / 0.7325 GB Notification: Performance of matching and sorting (n=303) (initialization): time 0.009655/0.8904, allocations: 10.1 MB / 0.9977 GB, free: 15.32 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001823/0.8906, allocations: 186.1 kB / 0.9979 GB, free: 15.16 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.39e-05/0.8907, allocations: 24 kB / 0.9979 GB, free: 15.13 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.39e-05/0.8907, allocations: 36 kB / 0.998 GB, free: 15.1 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001588/0.8923, allocations: 499.3 kB / 0.9984 GB, free: 14.62 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.701e-05/0.8924, allocations: 43.86 kB / 0.9985 GB, free: 14.58 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00135/0.8937, allocations: 285.4 kB / 0.9988 GB, free: 14.34 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001878/0.8939, allocations: 120.9 kB / 0.9989 GB, free: 14.24 MB / 0.7481 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.00143/0.8954, allocations: 1.233 MB / 1 GB, free: 13.25 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002158/0.8956, allocations: 172.5 kB / 1 GB, free: 13.08 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003012/0.8986, allocations: 2.143 MB / 1.002 GB, free: 11.41 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.818e-06/0.8986, allocations: 8 kB / 1.002 GB, free: 11.41 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/0.8986, allocations: 0 / 1.002 GB, free: 11.41 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.019e-05/0.8987, allocations: 3.984 kB / 1.002 GB, free: 11.4 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004502/0.9032, allocations: 3.635 MB / 1.006 GB, free: 8.629 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.108e-06/0.9032, allocations: 4 kB / 1.006 GB, free: 8.625 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005714/0.9038, allocations: 149 kB / 1.006 GB, free: 8.484 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.438e-06/0.9038, allocations: 4 kB / 1.006 GB, free: 8.48 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.2e-05/0.9039, allocations: 30.17 kB / 1.006 GB, free: 8.461 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.483e-06/0.9039, allocations: 8 kB / 1.006 GB, free: 8.453 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.991e-06/0.9039, allocations: 7.984 kB / 1.006 GB, free: 8.445 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002682/0.9066, allocations: 2.094 MB / 1.008 GB, free: 6.754 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006006/0.9072, allocations: 446.2 kB / 1.009 GB, free: 6.367 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001772/0.9074, allocations: 23.5 kB / 1.009 GB, free: 6.355 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006315/0.908, allocations: 68.69 kB / 1.009 GB, free: 6.301 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001384/0.9082, allocations: 72.41 kB / 1.009 GB, free: 6.238 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.887e-05/0.9083, allocations: 46.55 kB / 1.009 GB, free: 6.199 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.00419/0.9124, allocations: 4.602 MB / 1.013 GB, free: 2.664 MB / 0.7481 GB Notification: Performance of sort global known variables: time 2.71e-07/0.9125, allocations: 0 / 1.013 GB, free: 2.664 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.003086/0.9156, allocations: 0.9865 MB / 1.014 GB, free: 1.746 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.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.002048/0.9176, allocations: 0.8957 MB / 1.015 GB, free: 1.082 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.006339/0.924, allocations: 7.326 MB / 1.022 GB, free: 12.1 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 3.937e-06/0.924, allocations: 4.312 kB / 1.022 GB, free: 12.1 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.00162/0.9256, allocations: 1.962 MB / 1.024 GB, free: 11 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00137/0.927, allocations: 298.9 kB / 1.024 GB, free: 10.79 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01014/0.9371, allocations: 9.14 MB / 1.033 GB, free: 2.414 MB / 0.7637 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:754:5-754:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]