Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.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_7.0.0_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.291/2.291, allocations: 251.3 MB / 266.2 MB, free: 11.54 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00141/0.00141, allocations: 185.7 kB / 325.8 MB, free: 2.816 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.366/2.366, allocations: 205.4 MB / 0.5767 GB, free: 20.71 MB / 426.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009144/0.0009143, allocations: 102.7 kB / 0.6812 GB, free: 13.6 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.000477/0.0004774, allocations: 12.44 kB / 0.7953 GB, free: 135.5 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1992/0.1997, allocations: 106.3 MB / 0.899 GB, free: 65.46 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic): time 0.008628/0.2084, allocations: 6.166 MB / 0.9051 GB, free: 59.27 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.2144/0.4229, allocations: 141.1 MB / 1.043 GB, free: 13.76 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001586/0.4245, allocations: 27.81 kB / 1.043 GB, free: 13.73 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 0.006987/0.4315, allocations: 1.608 MB / 1.044 GB, free: 12.12 MB / 0.698 GB [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/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‘. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/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‘. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/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‘. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/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.005803/0.4374, allocations: 0.8975 MB / 1.045 GB, free: 11.22 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.006469/0.4439, allocations: 1.009 MB / 1.046 GB, free: 10.22 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 0.01096/0.4549, allocations: 4.612 MB / 1.051 GB, free: 5.602 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004387/0.4594, allocations: 1.147 MB / 1.052 GB, free: 4.414 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00514/0.4646, allocations: 1.3 MB / 1.053 GB, free: 3.109 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004696/0.4693, allocations: 1.198 MB / 1.054 GB, free: 1.906 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 0.0009291/0.4703, allocations: 60 kB / 1.054 GB, free: 1.848 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 0.751/1.221, allocations: 1.969 MB / 1.056 GB, free: 6.676 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 0.005229/1.227, allocations: 4.221 MB / 1.06 GB, free: 6.676 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 0.001303/1.228, allocations: 0.5303 MB / 1.061 GB, free: 6.645 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.009825/1.238, allocations: 4.519 MB / 1.065 GB, free: 6.441 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 8.466e-06/1.238, allocations: 4.016 kB / 1.065 GB, free: 6.441 MB / 0.698 GB Notification: Performance of FrontEnd: time 3.206e-06/1.238, allocations: 0 / 1.065 GB, free: 6.441 MB / 0.698 GB Notification: Performance of Transformations before backend: time 0.0002139/1.238, allocations: 0.6562 kB / 1.065 GB, free: 6.441 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.01317/1.251, allocations: 3.363 MB / 1.069 GB, free: 4.75 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.821e-05/1.251, allocations: 9.844 kB / 1.069 GB, free: 4.75 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003489/1.255, allocations: 423.8 kB / 1.069 GB, free: 4.574 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01841/1.273, allocations: 12.17 MB / 1.081 GB, free: 4.02 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001979/1.274, allocations: 168.8 kB / 1.081 GB, free: 4.012 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008938/1.274, allocations: 228.6 kB / 1.081 GB, free: 4.012 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005948/1.28, allocations: 2.261 MB / 1.084 GB, free: 3.812 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.371e-05/1.281, allocations: 2.438 kB / 1.084 GB, free: 3.812 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002757/1.281, allocations: 66.91 kB / 1.084 GB, free: 3.809 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.433e-05/1.281, allocations: 34.91 kB / 1.084 GB, free: 3.809 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00611/1.287, allocations: 2.391 MB / 1.086 GB, free: 3.789 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03028/1.317, allocations: 14.87 MB / 1.101 GB, free: 2.402 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004191/1.322, allocations: 1.869 MB / 1.102 GB, free: 2.355 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002237/1.324, allocations: 1.242 MB / 1.104 GB, free: 2.348 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001457/1.324, allocations: 39.73 kB / 1.104 GB, free: 2.348 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002508/1.327, allocations: 1.269 MB / 1.105 GB, free: 2.262 MB / 0.698 GB Notification: Performance of pre-optimization done (n=126): time 4.218e-06/1.327, allocations: 0 / 1.105 GB, free: 2.262 MB / 0.698 GB Notification: Performance of matching and sorting (n=126): time 0.01024/1.337, allocations: 3.657 MB / 1.108 GB, free: 1.914 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002839/1.337, allocations: 366.3 kB / 1.109 GB, free: 1.66 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.04122/1.378, allocations: 20.52 MB / 1.129 GB, free: 9.809 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 0.0009419/1.379, allocations: 82.83 kB / 1.129 GB, free: 9.762 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.002327/1.382, allocations: 1.143 MB / 1.13 GB, free: 9.234 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008138/1.383, allocations: 432.8 kB / 1.13 GB, free: 8.906 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004632/1.383, allocations: 58.25 kB / 1.131 GB, free: 8.895 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0004609/1.383, allocations: 456.5 kB / 1.131 GB, free: 8.535 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01623/1.4, allocations: 12.36 MB / 1.143 GB, free: 172 kB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02154/1.421, allocations: 13.54 MB / 1.156 GB, free: 6.188 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01766/1.439, allocations: 12.89 MB / 1.169 GB, free: 12.68 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.399e-05/1.439, allocations: 8 kB / 1.169 GB, free: 12.67 MB / 0.7448 GB Notification: Performance of matching and sorting (n=411) (initialization): time 0.03936/1.478, allocations: 26.43 MB / 1.195 GB, free: 9.082 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003697/1.479, allocations: 207.8 kB / 1.195 GB, free: 8.91 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.243e-05/1.479, allocations: 32 kB / 1.195 GB, free: 8.879 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00106/1.48, allocations: 127.6 kB / 1.195 GB, free: 8.762 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005708/1.486, allocations: 0.6897 MB / 1.196 GB, free: 8.145 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003164/1.489, allocations: 1.581 MB / 1.197 GB, free: 6.57 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004599/1.494, allocations: 379.9 kB / 1.198 GB, free: 6.246 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001289/1.495, allocations: 166.7 kB / 1.198 GB, free: 6.109 MB / 0.7605 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.005435/1.5, allocations: 2.508 MB / 1.2 GB, free: 4.254 MB / 0.7605 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008708/1.501, allocations: 244.6 kB / 1.2 GB, free: 4.012 MB / 0.7605 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009291/1.511, allocations: 3.365 MB / 1.204 GB, free: 1.527 MB / 0.7605 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.621e-05/1.511, allocations: 15.98 kB / 1.204 GB, free: 1.512 MB / 0.7605 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/1.511, allocations: 0 / 1.204 GB, free: 1.512 MB / 0.7605 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.959e-05/1.511, allocations: 7.969 kB / 1.204 GB, free: 1.504 MB / 0.7605 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01494/1.526, allocations: 5.407 MB / 1.209 GB, free: 13.53 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.018e-05/1.526, allocations: 0 / 1.209 GB, free: 13.53 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001843/1.528, allocations: 209.3 kB / 1.209 GB, free: 13.35 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009145/1.529, allocations: 84.08 kB / 1.209 GB, free: 13.27 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000306/1.529, allocations: 38.84 kB / 1.209 GB, free: 13.25 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002762/1.532, allocations: 1.539 MB / 1.211 GB, free: 11.72 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.415e-06/1.532, allocations: 0 / 1.211 GB, free: 11.72 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00864/1.54, allocations: 3.283 MB / 1.214 GB, free: 9.191 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002138/1.543, allocations: 0.5907 MB / 1.215 GB, free: 8.695 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008442/1.543, allocations: 30.88 kB / 1.215 GB, free: 8.68 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00232/1.546, allocations: 109.6 kB / 1.215 GB, free: 8.59 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004041/1.546, allocations: 79.64 kB / 1.215 GB, free: 8.52 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002349/1.546, allocations: 61.59 kB / 1.215 GB, free: 8.469 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 0.01799/1.564, allocations: 12.75 MB / 1.227 GB, free: 15.05 MB / 0.7917 GB Notification: Performance of sort global known variables: time 7.21e-07/1.565, allocations: 6.516 kB / 1.227 GB, free: 15.04 MB / 0.7917 GB Notification: Performance of remove unused functions: time 0.006794/1.571, allocations: 1.231 MB / 1.229 GB, free: 13.89 MB / 0.7917 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.004539/1.576, allocations: 0.9604 MB / 1.229 GB, free: 13.21 MB / 0.7917 GB Notification: Performance of simCode: created initialization part: time 0.02441/1.6, allocations: 16.13 MB / 1.245 GB, free: 15.96 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.062e-05/1.6, allocations: 6 kB / 1.245 GB, free: 15.96 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 0.005423/1.606, allocations: 2.662 MB / 1.248 GB, free: 13.3 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003995/1.61, allocations: 427.5 kB / 1.248 GB, free: 12.88 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04629/1.656, allocations: 21.33 MB / 1.269 GB, free: 7.516 MB / 0.823 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]