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 2.68/2.68, allocations: 287.5 MB / 302.4 MB, free: 8.328 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.001311/0.00131, allocations: 185.5 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.109/2.109, allocations: 205.4 MB / 0.6297 GB, free: 10.6 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.0009706/0.0009704, allocations: 97.05 kB / 0.743 GB, free: 6.602 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004914/0.0004916, allocations: 13.42 kB / 0.8658 GB, free: 140.7 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2153/0.2158, allocations: 115.3 MB / 0.9784 GB, free: 28.37 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic): time 0.008879/0.2248, allocations: 6.137 MB / 0.9843 GB, free: 22.2 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.9456/1.17, allocations: 141.1 MB / 1.122 GB, free: 1.504 MB / 0.6823 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001729/1.172, allocations: 29.28 kB / 1.122 GB, free: 1.492 MB / 0.6823 GB Notification: Performance of NFTyping.typeComponents: time 0.006543/1.179, allocations: 1.612 MB / 1.124 GB, free: 1.207 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.003929/1.183, allocations: 0.8914 MB / 1.125 GB, free: 1.016 MB / 0.6823 GB Notification: Performance of NFTyping.typeClassSections: time 0.004646/1.187, allocations: 1.019 MB / 1.126 GB, free: 0.9414 MB / 0.6823 GB Notification: Performance of NFFlatten.flatten: time 0.006824/1.194, allocations: 4.571 MB / 1.13 GB, free: 0.5664 MB / 0.6823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001983/1.196, allocations: 0.9858 MB / 1.131 GB, free: 364 kB / 0.6823 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003499/1.2, allocations: 1.299 MB / 1.132 GB, free: 96 kB / 0.6823 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003334/1.203, allocations: 1.214 MB / 1.134 GB, free: 15.91 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 0.0009342/1.204, allocations: 63.34 kB / 1.134 GB, free: 15.91 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006193/1.21, allocations: 1.977 MB / 1.135 GB, free: 15.83 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 0.00612/1.217, allocations: 4.218 MB / 1.14 GB, free: 15.54 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 0.001654/1.218, allocations: 0.5342 MB / 1.14 GB, free: 15.39 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.009611/1.228, allocations: 4.51 MB / 1.145 GB, free: 13.12 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/1.228, allocations: 4 kB / 1.145 GB, free: 13.12 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.783e-06/1.228, allocations: 0 / 1.145 GB, free: 13.12 MB / 0.698 GB Notification: Performance of Transformations before backend: time 0.0002073/1.228, allocations: 1 kB / 1.145 GB, free: 13.12 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.01169/1.24, allocations: 3.373 MB / 1.148 GB, free: 11 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.855e-05/1.24, allocations: 9.844 kB / 1.148 GB, free: 11 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003023/1.243, allocations: 425.3 kB / 1.148 GB, free: 10.79 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01763/1.261, allocations: 12.16 MB / 1.16 GB, free: 9.188 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002061/1.261, allocations: 163.7 kB / 1.16 GB, free: 9.184 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009225/1.262, allocations: 231.1 kB / 1.161 GB, free: 9.18 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006144/1.268, allocations: 2.004 MB / 1.162 GB, free: 8.621 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.685e-05/1.268, allocations: 3.938 kB / 1.162 GB, free: 8.617 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002838/1.269, allocations: 65.28 kB / 1.163 GB, free: 8.617 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.959e-05/1.269, allocations: 39.64 kB / 1.163 GB, free: 8.613 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007457/1.276, allocations: 2.125 MB / 1.165 GB, free: 8.18 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0397/1.316, allocations: 14.89 MB / 1.179 GB, free: 11.23 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004528/1.32, allocations: 1.478 MB / 1.181 GB, free: 9.746 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002289/1.323, allocations: 0.8822 MB / 1.181 GB, free: 8.859 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001676/1.323, allocations: 44.45 kB / 1.182 GB, free: 8.824 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002795/1.326, allocations: 1 MB / 1.183 GB, free: 7.809 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=126): time 3.908e-06/1.326, allocations: 0 / 1.183 GB, free: 7.809 MB / 0.7136 GB Notification: Performance of matching and sorting (n=126): time 0.01029/1.336, allocations: 2.89 MB / 1.185 GB, free: 4.879 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003732/1.336, allocations: 354.5 kB / 1.186 GB, free: 4.484 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.04682/1.383, allocations: 20.54 MB / 1.206 GB, free: 15.93 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 0.0008708/1.384, allocations: 85.64 kB / 1.206 GB, free: 15.84 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.002524/1.387, allocations: 1.138 MB / 1.207 GB, free: 14.71 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008936/1.388, allocations: 432.8 kB / 1.207 GB, free: 14.3 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006049/1.388, allocations: 64 kB / 1.207 GB, free: 14.23 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0005351/1.389, allocations: 452.7 kB / 1.208 GB, free: 13.79 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01751/1.406, allocations: 12.09 MB / 1.22 GB, free: 1.695 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02159/1.428, allocations: 13.09 MB / 1.232 GB, free: 4.184 MB / 0.7605 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01861/1.447, allocations: 12.62 MB / 1.245 GB, free: 7.562 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.198e-05/1.447, allocations: 12 kB / 1.245 GB, free: 7.551 MB / 0.7761 GB Notification: Performance of matching and sorting (n=411) (initialization): time 0.04153/1.488, allocations: 25.9 MB / 1.27 GB, free: 13.63 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004006/1.489, allocations: 205.6 kB / 1.27 GB, free: 13.42 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.699e-05/1.489, allocations: 32 kB / 1.27 GB, free: 13.39 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001106/1.49, allocations: 136.9 kB / 1.27 GB, free: 13.25 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005551/1.496, allocations: 0.6897 MB / 1.271 GB, free: 12.57 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003359/1.499, allocations: 1.572 MB / 1.273 GB, free: 10.86 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004193/1.503, allocations: 381.7 kB / 1.273 GB, free: 10.49 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001106/1.504, allocations: 170.8 kB / 1.273 GB, free: 10.32 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.005542/1.51, allocations: 2.515 MB / 1.276 GB, free: 7.797 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008816/1.511, allocations: 252.6 kB / 1.276 GB, free: 7.547 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009439/1.52, allocations: 2.831 MB / 1.279 GB, free: 4.688 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.218e-05/1.52, allocations: 12 kB / 1.279 GB, free: 4.676 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.072e-05/1.52, allocations: 3.984 kB / 1.279 GB, free: 4.672 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.714e-05/1.521, allocations: 3.984 kB / 1.279 GB, free: 4.668 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01541/1.536, allocations: 4.88 MB / 1.283 GB, free: 15.74 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.298e-05/1.536, allocations: 4 kB / 1.283 GB, free: 15.74 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001848/1.538, allocations: 195.7 kB / 1.284 GB, free: 15.55 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009214/1.539, allocations: 84.77 kB / 1.284 GB, free: 15.46 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003873/1.539, allocations: 35.98 kB / 1.284 GB, free: 15.43 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003004/1.542, allocations: 1.552 MB / 1.285 GB, free: 13.73 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/1.542, allocations: 0 / 1.285 GB, free: 13.73 MB / 0.823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008457/1.551, allocations: 2.756 MB / 1.288 GB, free: 10.95 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002168/1.553, allocations: 0.591 MB / 1.288 GB, free: 10.34 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008947/1.554, allocations: 28 kB / 1.288 GB, free: 10.31 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002507/1.556, allocations: 103.9 kB / 1.289 GB, free: 10.21 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005503/1.557, allocations: 88.88 kB / 1.289 GB, free: 10.12 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002633/1.557, allocations: 59.97 kB / 1.289 GB, free: 10.07 MB / 0.823 GB Notification: Performance of sorting global known variables: time 0.01933/1.577, allocations: 12.75 MB / 1.301 GB, free: 13.31 MB / 0.8386 GB Notification: Performance of sort global known variables: time 5.91e-07/1.577, allocations: 0 / 1.301 GB, free: 13.31 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.006419/1.583, allocations: 1.238 MB / 1.302 GB, free: 12.08 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.004598/1.588, allocations: 0.9551 MB / 1.303 GB, free: 11.34 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.02613/1.614, allocations: 15.6 MB / 1.319 GB, free: 11.72 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.067e-05/1.614, allocations: 0 / 1.319 GB, free: 11.72 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.005062/1.619, allocations: 2.41 MB / 1.321 GB, free: 9.285 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004176/1.623, allocations: 422.7 kB / 1.321 GB, free: 8.871 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04435/1.668, allocations: 21.06 MB / 1.342 GB, free: 3.762 MB / 0.8698 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]