Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic") translateModel(Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008742/0.0008741, allocations: 91.92 kB / 15.06 MB, free: 1.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009661/0.0009661, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.329/1.329, allocations: 205.4 MB / 222.1 MB, free: 5.66 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.658/1.658, allocations: 292.7 MB / 0.5499 GB, free: 14.57 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004781/0.0004781, allocations: 14.44 kB / 0.6737 GB, free: 26.25 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2091/0.2096, allocations: 116.3 MB / 0.7873 GB, free: 11.93 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic): time 0.007578/0.2172, allocations: 6.153 MB / 0.7933 GB, free: 5.742 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.5498/0.7671, allocations: 141.1 MB / 0.9311 GB, free: 3.188 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001122/0.7682, allocations: 31.75 kB / 0.9311 GB, free: 3.172 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.003637/0.7719, allocations: 1.615 MB / 0.9327 GB, free: 2.891 MB / 0.7169 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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.1.4-maint.8.1.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.1.4-maint.8.1.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.1.4-maint.8.1.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.002141/0.774, allocations: 0.9013 MB / 0.9336 GB, free: 2.695 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.002552/0.7766, allocations: 1.006 MB / 0.9346 GB, free: 2.625 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.003936/0.7805, allocations: 4.576 MB / 0.939 GB, free: 2.242 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001369/0.7819, allocations: 0.9673 MB / 0.94 GB, free: 2.051 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002273/0.7842, allocations: 1.307 MB / 0.9412 GB, free: 1.781 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002145/0.7864, allocations: 1.195 MB / 0.9424 GB, free: 1.559 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 0.0003578/0.7867, allocations: 63.56 kB / 0.9425 GB, free: 1.559 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004006/0.7907, allocations: 1.972 MB / 0.9444 GB, free: 1.48 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.00375/0.7945, allocations: 4.231 MB / 0.9485 GB, free: 1.352 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.001329/0.7959, allocations: 0.5314 MB / 0.9491 GB, free: 1.215 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.007497/0.8034, allocations: 4.513 MB / 0.9535 GB, free: 0.6836 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.8034, allocations: 1.375 kB / 0.9535 GB, free: 0.6836 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.853e-06/0.8034, allocations: 0 / 0.9535 GB, free: 0.6836 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 0.0001502/0.8036, allocations: 0 / 0.9535 GB, free: 0.6836 MB / 0.7169 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.009243/0.8128, allocations: 3.368 MB / 0.9567 GB, free: 14.57 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.596e-05/0.8129, allocations: 9.281 kB / 0.9568 GB, free: 14.57 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001677/0.8145, allocations: 430.5 kB / 0.9572 GB, free: 14.35 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01037/0.8249, allocations: 12.16 MB / 0.969 GB, free: 12.75 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001105/0.8251, allocations: 168.4 kB / 0.9692 GB, free: 12.75 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003793/0.8254, allocations: 227.4 kB / 0.9694 GB, free: 12.75 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00307/0.8285, allocations: 1.999 MB / 0.9714 GB, free: 12.19 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.761e-05/0.8286, allocations: 10.48 kB / 0.9714 GB, free: 12.18 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001303/0.8287, allocations: 65.38 kB / 0.9715 GB, free: 12.18 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.266e-05/0.8287, allocations: 35.44 kB / 0.9715 GB, free: 12.18 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002874/0.8316, allocations: 2.125 MB / 0.9736 GB, free: 11.75 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01647/0.8481, allocations: 14.88 MB / 0.9881 GB, free: 8.266 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002348/0.8505, allocations: 1.49 MB / 0.9895 GB, free: 7.852 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001045/0.8516, allocations: 0.865 MB / 0.9904 GB, free: 7.309 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 9.191e-05/0.8517, allocations: 42.47 kB / 0.9904 GB, free: 7.277 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001381/0.853, allocations: 1.009 MB / 0.9914 GB, free: 6.508 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=126): time 2.565e-06/0.8531, allocations: 4 kB / 0.9914 GB, free: 6.504 MB / 0.7325 GB Notification: Performance of matching and sorting (n=126): time 0.005561/0.8586, allocations: 2.882 MB / 0.9942 GB, free: 4.211 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001986/0.8588, allocations: 362.3 kB / 0.9946 GB, free: 3.844 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02997/0.8888, allocations: 20.54 MB / 1.015 GB, free: 4.523 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 0.0006506/0.8895, allocations: 80.83 kB / 1.015 GB, free: 4.477 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.001592/0.8911, allocations: 1.13 MB / 1.016 GB, free: 3.844 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005587/0.8917, allocations: 433 kB / 1.016 GB, free: 3.48 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002206/0.8919, allocations: 61.38 kB / 1.016 GB, free: 3.465 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0002694/0.8922, allocations: 457 kB / 1.017 GB, free: 3.062 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009638/0.9018, allocations: 12.09 MB / 1.029 GB, free: 10.1 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01117/0.913, allocations: 13.08 MB / 1.041 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01131/0.9244, allocations: 12.63 MB / 1.054 GB, free: 6.477 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.158e-05/0.9245, allocations: 8 kB / 1.054 GB, free: 6.469 MB / 0.7794 GB Notification: Performance of matching and sorting (n=411) (initialization): time 0.02544/0.9499, allocations: 25.91 MB / 1.079 GB, free: 15.25 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002123/0.9502, allocations: 205.6 kB / 1.079 GB, free: 15.05 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.229e-05/0.9502, allocations: 32 kB / 1.079 GB, free: 15.02 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005736/0.9508, allocations: 133 kB / 1.079 GB, free: 14.88 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002705/0.9535, allocations: 0.6854 MB / 1.08 GB, free: 14.2 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001878/0.9554, allocations: 1.587 MB / 1.082 GB, free: 12.48 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002515/0.958, allocations: 377.5 kB / 1.082 GB, free: 12.11 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003872/0.9584, allocations: 166 kB / 1.082 GB, free: 11.96 MB / 0.8106 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.003059/0.9614, allocations: 2.511 MB / 1.084 GB, free: 9.434 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005007/0.9619, allocations: 244.6 kB / 1.085 GB, free: 9.191 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004787/0.9667, allocations: 2.842 MB / 1.087 GB, free: 6.32 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.174e-05/0.9668, allocations: 16 kB / 1.088 GB, free: 6.305 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.928e-06/0.9668, allocations: 0 / 1.088 GB, free: 6.305 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.298e-05/0.9668, allocations: 3.984 kB / 1.088 GB, free: 6.301 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007856/0.9747, allocations: 4.882 MB / 1.092 GB, free: 1.383 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.43e-06/0.9747, allocations: 0 / 1.092 GB, free: 1.383 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007839/0.9755, allocations: 191.8 kB / 1.092 GB, free: 1.195 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004552/0.9759, allocations: 92.77 kB / 1.093 GB, free: 1.102 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.963e-05/0.976, allocations: 31.98 kB / 1.093 GB, free: 1.07 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001787/0.9778, allocations: 1.548 MB / 1.094 GB, free: 15.38 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.9779, allocations: 0 / 1.094 GB, free: 15.38 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004376/0.9822, allocations: 2.752 MB / 1.097 GB, free: 12.6 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001181/0.9834, allocations: 0.6025 MB / 1.097 GB, free: 11.97 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002906/0.9837, allocations: 26.8 kB / 1.097 GB, free: 11.95 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009133/0.9847, allocations: 103.9 kB / 1.097 GB, free: 11.85 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000189/0.9849, allocations: 84.88 kB / 1.098 GB, free: 11.77 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001276/0.985, allocations: 67.91 kB / 1.098 GB, free: 11.7 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.01144/0.9964, allocations: 12.74 MB / 1.11 GB, free: 14.95 MB / 0.8419 GB Notification: Performance of sort global known variables: time 4.5e-07/0.9965, allocations: 0 / 1.11 GB, free: 14.95 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.004721/1.001, allocations: 1.245 MB / 1.111 GB, free: 13.71 MB / 0.8419 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.002722/1.004, allocations: 0.9442 MB / 1.112 GB, free: 13 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.01404/1.018, allocations: 15.61 MB / 1.127 GB, free: 13.38 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 8.766e-06/1.018, allocations: 0 / 1.127 GB, free: 13.38 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.003082/1.021, allocations: 2.406 MB / 1.13 GB, free: 10.94 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002359/1.024, allocations: 428 kB / 1.13 GB, free: 10.53 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02689/1.05, allocations: 21.06 MB / 1.151 GB, free: 5.426 MB / 0.8731 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]