Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic.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.WindowRadiationElectrochromic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic") translateModel(Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.689/1.689, allocations: 288.4 MB / 303.4 MB, free: 8.109 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.0009831/0.0009833, allocations: 182.4 kB / 372 MB, free: 10.27 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.537/1.537, allocations: 205.4 MB / 0.6307 GB, free: 10.02 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.0008493/0.0008491, allocations: 90.36 kB / 0.7441 GB, free: 5.949 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004369/0.0004369, allocations: 13.22 kB / 0.867 GB, free: 142.1 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2624/0.2628, allocations: 115.3 MB / 0.9796 GB, free: 27.69 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic): time 0.00654/0.2694, allocations: 6.157 MB / 0.9856 GB, free: 21.5 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.6904/0.9599, allocations: 141.1 MB / 1.123 GB, free: 2.164 MB / 0.6823 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001162/0.9611, allocations: 29.5 kB / 1.123 GB, free: 2.152 MB / 0.6823 GB Notification: Performance of NFTyping.typeComponents: time 0.004043/0.9652, allocations: 1.617 MB / 1.125 GB, free: 1.859 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.001942/0.9671, allocations: 0.8941 MB / 1.126 GB, free: 1.672 MB / 0.6823 GB Notification: Performance of NFTyping.typeClassSections: time 0.002658/0.9698, allocations: 1.005 MB / 1.127 GB, free: 1.605 MB / 0.6823 GB Notification: Performance of NFFlatten.flatten: time 0.003528/0.9733, allocations: 4.576 MB / 1.131 GB, free: 1.23 MB / 0.6823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001043/0.9744, allocations: 0.9814 MB / 1.132 GB, free: 1.016 MB / 0.6823 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001592/0.976, allocations: 1.3 MB / 1.134 GB, free: 0.75 MB / 0.6823 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00122/0.9772, allocations: 1.199 MB / 1.135 GB, free: 0.5273 MB / 0.6823 GB Notification: Performance of NFPackage.collectConstants: time 0.0002104/0.9774, allocations: 68.44 kB / 1.135 GB, free: 0.5234 MB / 0.6823 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003378/0.9808, allocations: 1.975 MB / 1.137 GB, free: 236 kB / 0.6823 GB Notification: Performance of NFScalarize.scalarize: time 0.005832/0.9866, allocations: 4.406 MB / 1.141 GB, free: 0 / 0.6823 GB Notification: Performance of NFVerifyModel.verify: time 0.0007426/0.9874, allocations: 0.5394 MB / 1.142 GB, free: 15.86 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.005606/0.993, allocations: 4.507 MB / 1.146 GB, free: 13.59 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 6.012e-06/0.993, allocations: 1 kB / 1.146 GB, free: 13.59 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.485e-06/0.993, allocations: 4 kB / 1.146 GB, free: 13.58 MB / 0.698 GB Notification: Performance of Transformations before backend: time 5.159e-05/0.9931, allocations: 0 / 1.146 GB, free: 13.58 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.006439/0.9995, allocations: 3.369 MB / 1.149 GB, free: 11.44 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.737e-05/0.9996, allocations: 13.23 kB / 1.149 GB, free: 11.44 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001316/1.001, allocations: 425.7 kB / 1.15 GB, free: 11.23 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01133/1.012, allocations: 12.17 MB / 1.162 GB, free: 9.617 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001274/1.012, allocations: 164.1 kB / 1.162 GB, free: 9.613 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002948/1.013, allocations: 223.8 kB / 1.162 GB, free: 9.613 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003464/1.016, allocations: 2.008 MB / 1.164 GB, free: 9.051 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.007e-05/1.016, allocations: 7.125 kB / 1.164 GB, free: 9.047 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001471/1.016, allocations: 63.97 kB / 1.164 GB, free: 9.047 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.672e-05/1.016, allocations: 40.3 kB / 1.164 GB, free: 9.043 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003207/1.02, allocations: 2.125 MB / 1.166 GB, free: 8.094 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0196/1.039, allocations: 14.89 MB / 1.181 GB, free: 10.26 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002612/1.042, allocations: 1.482 MB / 1.182 GB, free: 8.77 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001173/1.043, allocations: 0.8785 MB / 1.183 GB, free: 7.891 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 9.196e-05/1.043, allocations: 37.66 kB / 1.183 GB, free: 7.859 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001546/1.045, allocations: 1.012 MB / 1.184 GB, free: 6.832 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=126): time 2.504e-06/1.045, allocations: 0 / 1.184 GB, free: 6.832 MB / 0.7136 GB Notification: Performance of matching and sorting (n=126): time 0.006287/1.051, allocations: 2.893 MB / 1.187 GB, free: 3.902 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002661/1.051, allocations: 362.5 kB / 1.187 GB, free: 3.5 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03019/1.082, allocations: 20.53 MB / 1.207 GB, free: 14.95 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 0.0008724/1.082, allocations: 81.7 kB / 1.207 GB, free: 14.86 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.001407/1.084, allocations: 1.134 MB / 1.208 GB, free: 13.74 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004783/1.084, allocations: 430.1 kB / 1.209 GB, free: 13.32 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001872/1.085, allocations: 68 kB / 1.209 GB, free: 13.25 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0002509/1.085, allocations: 448.7 kB / 1.209 GB, free: 12.81 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009779/1.095, allocations: 12.09 MB / 1.221 GB, free: 0.7148 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01148/1.106, allocations: 13.09 MB / 1.234 GB, free: 3.207 MB / 0.7605 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01303/1.119, allocations: 12.63 MB / 1.246 GB, free: 6.578 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.533e-05/1.119, allocations: 8 kB / 1.246 GB, free: 6.57 MB / 0.7761 GB Notification: Performance of matching and sorting (n=411) (initialization): time 0.02675/1.146, allocations: 25.9 MB / 1.271 GB, free: 12.66 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002817/1.146, allocations: 211 kB / 1.272 GB, free: 12.45 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.093e-05/1.146, allocations: 28 kB / 1.272 GB, free: 12.42 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007336/1.147, allocations: 137 kB / 1.272 GB, free: 12.28 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002986/1.15, allocations: 0.6891 MB / 1.272 GB, free: 11.59 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002194/1.152, allocations: 1.581 MB / 1.274 GB, free: 9.875 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002811/1.155, allocations: 383.8 kB / 1.274 GB, free: 9.504 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006551/1.156, allocations: 166.5 kB / 1.275 GB, free: 9.344 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.003683/1.16, allocations: 2.51 MB / 1.277 GB, free: 6.824 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007451/1.16, allocations: 248.6 kB / 1.277 GB, free: 6.578 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005329/1.166, allocations: 2.839 MB / 1.28 GB, free: 3.711 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.202e-05/1.166, allocations: 12 kB / 1.28 GB, free: 3.699 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/1.166, allocations: 0 / 1.28 GB, free: 3.699 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.518e-05/1.166, allocations: 7.969 kB / 1.28 GB, free: 3.691 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009127/1.175, allocations: 4.875 MB / 1.285 GB, free: 14.77 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.063e-06/1.175, allocations: 0 / 1.285 GB, free: 14.77 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008471/1.176, allocations: 199.8 kB / 1.285 GB, free: 14.57 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005551/1.176, allocations: 84.77 kB / 1.285 GB, free: 14.49 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001148/1.177, allocations: 35.98 kB / 1.285 GB, free: 14.45 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001894/1.178, allocations: 1.548 MB / 1.287 GB, free: 12.77 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.578e-06/1.178, allocations: 4.031 kB / 1.287 GB, free: 12.76 MB / 0.823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00481/1.183, allocations: 2.752 MB / 1.289 GB, free: 9.984 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001328/1.185, allocations: 0.5986 MB / 1.29 GB, free: 9.363 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005685/1.185, allocations: 24 kB / 1.29 GB, free: 9.34 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001332/1.187, allocations: 107.8 kB / 1.29 GB, free: 9.234 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001888/1.187, allocations: 84.83 kB / 1.29 GB, free: 9.152 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001394/1.187, allocations: 63.97 kB / 1.29 GB, free: 9.09 MB / 0.823 GB Notification: Performance of sorting global known variables: time 0.01244/1.199, allocations: 12.75 MB / 1.303 GB, free: 12.34 MB / 0.8386 GB Notification: Performance of sort global known variables: time 4.21e-07/1.199, allocations: 0 / 1.303 GB, free: 12.34 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.005543/1.205, allocations: 1.238 MB / 1.304 GB, free: 11.11 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.003322/1.208, allocations: 0.9438 MB / 1.305 GB, free: 10.34 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.01827/1.227, allocations: 15.61 MB / 1.32 GB, free: 10.71 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.1e-05/1.227, allocations: 0 / 1.32 GB, free: 10.71 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.003514/1.23, allocations: 2.406 MB / 1.322 GB, free: 8.281 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003541/1.234, allocations: 420.9 kB / 1.323 GB, free: 7.871 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02914/1.263, allocations: 21.07 MB / 1.343 GB, free: 2.762 MB / 0.8698 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]