Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/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.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: translateModel(Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic") translateModel(Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.764/1.764, allocations: 288.4 MB / 303.4 MB, free: 8.188 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.0009322/0.000932, allocations: 176.5 kB / 372 MB, free: 10.29 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.616/1.616, allocations: 205.4 MB / 0.6307 GB, free: 10.01 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.0008261/0.0008262, allocations: 86.36 kB / 0.7441 GB, free: 5.949 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004192/0.0004192, allocations: 12.78 kB / 0.867 GB, free: 142.2 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2491/0.2495, allocations: 115.3 MB / 0.9796 GB, free: 27.7 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic): time 0.005818/0.2554, allocations: 5.027 MB / 0.9845 GB, free: 22.64 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.6564/0.9118, allocations: 140.2 MB / 1.121 GB, free: 2.188 MB / 0.6823 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001228/0.913, allocations: 20.84 kB / 1.121 GB, free: 2.18 MB / 0.6823 GB Notification: Performance of NFTyping.typeComponents: time 0.003999/0.917, allocations: 1.495 MB / 1.123 GB, free: 1.934 MB / 0.6823 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.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.0.1-maint.8.0.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.0.1-maint.8.0.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.0.1-maint.8.0.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.001661/0.9187, allocations: 0.5474 MB / 1.123 GB, free: 1.805 MB / 0.6823 GB Notification: Performance of NFTyping.typeClassSections: time 0.002201/0.9209, allocations: 0.7194 MB / 1.124 GB, free: 1.758 MB / 0.6823 GB Notification: Performance of NFFlatten.flatten: time 0.003209/0.9241, allocations: 2.87 MB / 1.127 GB, free: 1.496 MB / 0.6823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009398/0.9251, allocations: 0.6891 MB / 1.128 GB, free: 1.359 MB / 0.6823 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001417/0.9265, allocations: 0.8981 MB / 1.129 GB, free: 1.176 MB / 0.6823 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009287/0.9275, allocations: 0.7603 MB / 1.129 GB, free: 1.02 MB / 0.6823 GB Notification: Performance of NFPackage.collectConstants: time 0.0001459/0.9276, allocations: 43.34 kB / 1.129 GB, free: 1.02 MB / 0.6823 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002983/0.9306, allocations: 1.735 MB / 1.131 GB, free: 0.9531 MB / 0.6823 GB Notification: Performance of NFScalarize.scalarize: time 0.001224/0.9318, allocations: 1.768 MB / 1.133 GB, free: 0.8711 MB / 0.6823 GB Notification: Performance of NFVerifyModel.verify: time 0.000379/0.9322, allocations: 364.6 kB / 1.133 GB, free: 0.7656 MB / 0.6823 GB Notification: Performance of NFConvertDAE.convert: time 0.004847/0.9371, allocations: 3.135 MB / 1.136 GB, free: 0 / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.9371, allocations: 1.5 kB / 1.136 GB, free: 0 / 0.6823 GB Notification: Performance of FrontEnd: time 1.633e-06/0.9371, allocations: 64 / 1.136 GB, free: 0 / 0.6823 GB Notification: Performance of Transformations before backend: time 5.206e-05/0.9372, allocations: 112 / 1.136 GB, free: 0 / 0.6823 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.003873/0.9411, allocations: 2.395 MB / 1.138 GB, free: 14.42 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 3.315e-05/0.9411, allocations: 12.56 kB / 1.138 GB, free: 14.41 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000804/0.9419, allocations: 295.6 kB / 1.139 GB, free: 14.27 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005186/0.9471, allocations: 4.451 MB / 1.143 GB, free: 13.41 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001056/0.9472, allocations: 125.1 kB / 1.143 GB, free: 13.41 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002765/0.9475, allocations: 178.1 kB / 1.143 GB, free: 13.4 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002347/0.9499, allocations: 1.33 MB / 1.145 GB, free: 12.99 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.353e-05/0.9499, allocations: 0 / 1.145 GB, free: 12.99 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000109/0.95, allocations: 49.98 kB / 1.145 GB, free: 12.98 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.057e-05/0.9501, allocations: 26.38 kB / 1.145 GB, free: 12.98 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002383/0.9525, allocations: 1.417 MB / 1.146 GB, free: 12.66 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01016/0.9626, allocations: 6.775 MB / 1.153 GB, free: 10.5 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001648/0.9643, allocations: 1.128 MB / 1.154 GB, free: 10.33 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007654/0.9651, allocations: 0.6515 MB / 1.155 GB, free: 10.27 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 8.551e-05/0.9652, allocations: 41.44 kB / 1.155 GB, free: 10.25 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009803/0.9662, allocations: 0.6593 MB / 1.155 GB, free: 10.07 MB / 0.698 GB Notification: Performance of pre-optimization done (n=106): time 3.386e-06/0.9662, allocations: 0 / 1.155 GB, free: 10.07 MB / 0.698 GB Notification: Performance of matching and sorting (n=106): time 0.003245/0.9695, allocations: 1.99 MB / 1.157 GB, free: 9.684 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002196/0.9697, allocations: 348.4 kB / 1.157 GB, free: 9.41 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009369/0.9791, allocations: 7.312 MB / 1.165 GB, free: 8.52 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 0.0005899/0.9797, allocations: 69.36 kB / 1.165 GB, free: 8.488 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007154/0.9804, allocations: 0.7519 MB / 1.165 GB, free: 8.145 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003757/0.9808, allocations: 363.3 kB / 1.166 GB, free: 7.883 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001184/0.9809, allocations: 44.91 kB / 1.166 GB, free: 7.883 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0002078/0.9812, allocations: 419.7 kB / 1.166 GB, free: 7.543 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004243/0.9854, allocations: 4.425 MB / 1.171 GB, free: 3.758 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004783/0.9902, allocations: 5.162 MB / 1.176 GB, free: 14.27 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004756/0.995, allocations: 4.859 MB / 1.18 GB, free: 9.41 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.119e-05/0.995, allocations: 4 kB / 1.18 GB, free: 9.406 MB / 0.7136 GB Notification: Performance of matching and sorting (n=303) (initialization): time 0.01054/1.006, allocations: 10.09 MB / 1.19 GB, free: 15.3 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002029/1.006, allocations: 187.1 kB / 1.19 GB, free: 15.11 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.915e-05/1.006, allocations: 20.59 kB / 1.19 GB, free: 15.09 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.568e-05/1.006, allocations: 36 kB / 1.19 GB, free: 15.05 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001825/1.008, allocations: 0.4913 MB / 1.191 GB, free: 14.56 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.338e-05/1.008, allocations: 51.8 kB / 1.191 GB, free: 14.51 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00157/1.009, allocations: 278.1 kB / 1.191 GB, free: 14.24 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000211/1.01, allocations: 120 kB / 1.191 GB, free: 14.12 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.00158/1.011, allocations: 1.24 MB / 1.193 GB, free: 12.87 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002745/1.011, allocations: 171.5 kB / 1.193 GB, free: 12.7 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003271/1.015, allocations: 2.141 MB / 1.195 GB, free: 10.54 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.053e-05/1.015, allocations: 16 kB / 1.195 GB, free: 10.53 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.052e-06/1.015, allocations: 0 / 1.195 GB, free: 10.53 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.028e-05/1.015, allocations: 3.984 kB / 1.195 GB, free: 10.52 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005094/1.02, allocations: 3.629 MB / 1.198 GB, free: 6.855 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.389e-06/1.02, allocations: 4 kB / 1.198 GB, free: 6.852 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008173/1.021, allocations: 151.8 kB / 1.198 GB, free: 6.703 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.077e-06/1.021, allocations: 3.938 kB / 1.198 GB, free: 6.699 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001122/1.021, allocations: 35.97 kB / 1.199 GB, free: 6.664 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.358e-06/1.021, allocations: 4 kB / 1.199 GB, free: 6.66 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/1.021, allocations: 0 / 1.199 GB, free: 6.66 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004641/1.026, allocations: 2.096 MB / 1.201 GB, free: 4.543 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001151/1.027, allocations: 438.3 kB / 1.201 GB, free: 4.094 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003603/1.027, allocations: 24 kB / 1.201 GB, free: 4.07 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001199/1.028, allocations: 81.73 kB / 1.201 GB, free: 3.992 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002307/1.029, allocations: 68.03 kB / 1.201 GB, free: 3.926 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001429/1.029, allocations: 43.98 kB / 1.201 GB, free: 3.883 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.007556/1.036, allocations: 4.6 MB / 1.206 GB, free: 15.29 MB / 0.7448 GB Notification: Performance of sort global known variables: time 8.42e-07/1.036, allocations: 0 / 1.206 GB, free: 15.29 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.005576/1.042, allocations: 0.9827 MB / 1.207 GB, free: 14.31 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.003501/1.046, allocations: 0.9106 MB / 1.208 GB, free: 13.59 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0119/1.057, allocations: 7.321 MB / 1.215 GB, free: 6.262 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.041e-05/1.058, allocations: 0 / 1.215 GB, free: 6.262 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.003734/1.061, allocations: 1.963 MB / 1.217 GB, free: 4.289 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003351/1.065, allocations: 297.3 kB / 1.217 GB, free: 3.996 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01686/1.082, allocations: 9.134 MB / 1.226 GB, free: 10.84 MB / 0.7605 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]