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 2.568/2.568, allocations: 287.5 MB / 302.4 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.001328/0.001328, allocations: 186 kB / 371 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 2.121/2.121, allocations: 205.4 MB / 0.6297 GB, free: 10.62 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.0008651/0.0008648, allocations: 90.16 kB / 0.743 GB, free: 6.617 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004821/0.0004823, allocations: 12.44 kB / 0.8658 GB, free: 140.7 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2493/0.2498, allocations: 115.3 MB / 0.9784 GB, free: 28.37 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic): time 0.01088/0.2608, allocations: 5.027 MB / 0.9833 GB, free: 23.31 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.8611/1.122, allocations: 140.2 MB / 1.12 GB, free: 1.512 MB / 0.6823 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001269/1.123, allocations: 21.12 kB / 1.12 GB, free: 1.504 MB / 0.6823 GB Notification: Performance of NFTyping.typeComponents: time 0.006171/1.129, allocations: 1.496 MB / 1.122 GB, free: 1.258 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.00272/1.132, allocations: 0.5469 MB / 1.122 GB, free: 1.125 MB / 0.6823 GB Notification: Performance of NFTyping.typeClassSections: time 0.003427/1.136, allocations: 0.7322 MB / 1.123 GB, free: 1.07 MB / 0.6823 GB Notification: Performance of NFFlatten.flatten: time 0.00449/1.14, allocations: 2.863 MB / 1.126 GB, free: 0.8164 MB / 0.6823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001434/1.142, allocations: 0.6905 MB / 1.126 GB, free: 0.6836 MB / 0.6823 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002286/1.144, allocations: 0.8996 MB / 1.127 GB, free: 0.5 MB / 0.6823 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001961/1.146, allocations: 0.7513 MB / 1.128 GB, free: 356 kB / 0.6823 GB Notification: Performance of NFPackage.collectConstants: time 0.0005302/1.146, allocations: 43.28 kB / 1.128 GB, free: 356 kB / 0.6823 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004954/1.151, allocations: 1.742 MB / 1.13 GB, free: 284 kB / 0.6823 GB Notification: Performance of NFScalarize.scalarize: time 0.002493/1.154, allocations: 1.763 MB / 1.131 GB, free: 204 kB / 0.6823 GB Notification: Performance of NFVerifyModel.verify: time 0.0007973/1.155, allocations: 367.5 kB / 1.132 GB, free: 92 kB / 0.6823 GB Notification: Performance of NFConvertDAE.convert: time 0.006214/1.161, allocations: 3.011 MB / 1.135 GB, free: 15.7 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 6.542e-06/1.161, allocations: 1.375 kB / 1.135 GB, free: 15.7 MB / 0.698 GB Notification: Performance of FrontEnd: time 3.026e-06/1.161, allocations: 0 / 1.135 GB, free: 15.7 MB / 0.698 GB Notification: Performance of Transformations before backend: time 0.0001231/1.161, allocations: 0 / 1.135 GB, free: 15.7 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.00773/1.169, allocations: 2.389 MB / 1.137 GB, free: 14.13 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 5.198e-05/1.169, allocations: 13.8 kB / 1.137 GB, free: 14.13 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00197/1.171, allocations: 301.7 kB / 1.137 GB, free: 13.98 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008285/1.179, allocations: 4.458 MB / 1.142 GB, free: 13.11 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001524/1.18, allocations: 129.1 kB / 1.142 GB, free: 13.11 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004886/1.18, allocations: 171.8 kB / 1.142 GB, free: 13.11 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003741/1.184, allocations: 1.324 MB / 1.143 GB, free: 12.7 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.746e-05/1.184, allocations: 0 / 1.143 GB, free: 12.7 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001807/1.184, allocations: 49.03 kB / 1.143 GB, free: 12.7 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.479e-05/1.184, allocations: 26.81 kB / 1.143 GB, free: 12.7 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003954/1.188, allocations: 1.414 MB / 1.145 GB, free: 12.37 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01705/1.205, allocations: 6.769 MB / 1.151 GB, free: 10.21 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002799/1.208, allocations: 1.125 MB / 1.153 GB, free: 10.05 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001347/1.21, allocations: 0.6594 MB / 1.153 GB, free: 9.977 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001328/1.21, allocations: 35.66 kB / 1.153 GB, free: 9.969 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00155/1.211, allocations: 0.6581 MB / 1.154 GB, free: 9.785 MB / 0.698 GB Notification: Performance of pre-optimization done (n=106): time 4.228e-06/1.211, allocations: 0 / 1.154 GB, free: 9.785 MB / 0.698 GB Notification: Performance of matching and sorting (n=106): time 0.005148/1.216, allocations: 2.001 MB / 1.156 GB, free: 9.383 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003032/1.217, allocations: 342.8 kB / 1.156 GB, free: 9.113 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01396/1.231, allocations: 7.316 MB / 1.163 GB, free: 8.219 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 0.0005781/1.231, allocations: 69.8 kB / 1.163 GB, free: 8.188 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.001159/1.233, allocations: 0.7487 MB / 1.164 GB, free: 7.844 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.000597/1.233, allocations: 357.5 kB / 1.164 GB, free: 7.59 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002116/1.233, allocations: 45.78 kB / 1.164 GB, free: 7.59 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0003128/1.234, allocations: 420.2 kB / 1.165 GB, free: 7.25 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006619/1.24, allocations: 4.42 MB / 1.169 GB, free: 4.406 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008479/1.249, allocations: 5.171 MB / 1.174 GB, free: 15.17 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008113/1.257, allocations: 4.849 MB / 1.179 GB, free: 10.31 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.731e-05/1.257, allocations: 9.859 kB / 1.179 GB, free: 10.3 MB / 0.7136 GB Notification: Performance of matching and sorting (n=303) (initialization): time 0.01798/1.275, allocations: 10.09 MB / 1.189 GB, free: 200 kB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003315/1.275, allocations: 186.3 kB / 1.189 GB, free: 8 kB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.799e-05/1.276, allocations: 24.05 kB / 1.189 GB, free: 15.98 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.369e-05/1.276, allocations: 40 kB / 1.189 GB, free: 15.94 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003766/1.279, allocations: 500 kB / 1.19 GB, free: 15.46 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.761e-05/1.28, allocations: 43.86 kB / 1.19 GB, free: 15.41 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002829/1.282, allocations: 281.2 kB / 1.19 GB, free: 15.14 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007007/1.283, allocations: 127.1 kB / 1.19 GB, free: 15.02 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.003088/1.286, allocations: 1.237 MB / 1.191 GB, free: 13.77 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005736/1.287, allocations: 165.8 kB / 1.191 GB, free: 13.6 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006046/1.293, allocations: 2.149 MB / 1.193 GB, free: 11.44 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.076e-05/1.293, allocations: 8 kB / 1.193 GB, free: 11.43 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.696e-06/1.293, allocations: 0 / 1.193 GB, free: 11.43 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.637e-05/1.293, allocations: 3.984 kB / 1.193 GB, free: 11.43 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009185/1.302, allocations: 3.635 MB / 1.197 GB, free: 7.75 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.057e-05/1.302, allocations: 3.984 kB / 1.197 GB, free: 7.746 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001236/1.304, allocations: 147.8 kB / 1.197 GB, free: 7.602 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.561e-05/1.304, allocations: 4 kB / 1.197 GB, free: 7.598 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001376/1.304, allocations: 34.88 kB / 1.197 GB, free: 7.566 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.126e-06/1.304, allocations: 0 / 1.197 GB, free: 7.566 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.09e-06/1.304, allocations: 4 kB / 1.197 GB, free: 7.562 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005164/1.309, allocations: 2.1 MB / 1.199 GB, free: 5.445 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001421/1.31, allocations: 438.3 kB / 1.2 GB, free: 4.996 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003984/1.311, allocations: 24 kB / 1.2 GB, free: 4.973 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001359/1.312, allocations: 75.94 kB / 1.2 GB, free: 4.898 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000243/1.312, allocations: 60.86 kB / 1.2 GB, free: 4.836 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001493/1.313, allocations: 47.97 kB / 1.2 GB, free: 4.789 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.007572/1.32, allocations: 4.603 MB / 1.204 GB, free: 200 kB / 0.7292 GB Notification: Performance of sort global known variables: time 1.022e-06/1.32, allocations: 0 / 1.204 GB, free: 200 kB / 0.7292 GB Notification: Performance of remove unused functions: time 0.00479/1.325, allocations: 0.991 MB / 1.205 GB, free: 15.21 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.003914/1.329, allocations: 0.9008 MB / 1.206 GB, free: 14.54 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.01278/1.342, allocations: 7.324 MB / 1.213 GB, free: 7.195 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.288e-05/1.342, allocations: 6.812 kB / 1.213 GB, free: 7.191 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.003625/1.346, allocations: 1.952 MB / 1.215 GB, free: 5.23 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002834/1.348, allocations: 303 kB / 1.216 GB, free: 4.93 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02437/1.373, allocations: 9.135 MB / 1.224 GB, free: 11.76 MB / 0.7605 GB [/var/lib/jenkins1/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]