Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 8.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: translateModel(Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic") translateModel(Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 1.703/1.703, allocations: 291.7 MB / 306.8 MB, free: 7.688 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001033/0.001033, allocations: 179 kB / 375.4 MB, free: 5.117 MB / 298.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.405/1.405, allocations: 225.7 MB / 0.6538 GB, free: 13.62 MB / 490.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000763/0.0007633, allocations: 102.2 kB / 0.7699 GB, free: 50.41 MB / 0.5417 GB Notification: Performance of FrontEnd - loaded program: time 0.000541/0.000541, allocations: 16 kB / 0.8956 GB, free: 11.89 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7331/0.7337, allocations: 118.1 MB / 1.011 GB, free: 57.78 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic): time 0.006544/0.7403, allocations: 4.981 MB / 1.016 GB, free: 57.4 MB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.1331/0.8735, allocations: 140.4 MB / 1.153 GB, free: 8.945 MB / 0.7605 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008717/0.8744, allocations: 23.88 kB / 1.153 GB, free: 8.938 MB / 0.7605 GB Notification: Performance of NFTyping.typeComponents: time 0.003687/0.8781, allocations: 1.499 MB / 1.154 GB, free: 8.348 MB / 0.7605 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-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‘. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-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‘. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-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‘. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-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.001521/0.8796, allocations: 0.5478 MB / 1.155 GB, free: 8.043 MB / 0.7605 GB Notification: Performance of NFTyping.typeClassSections: time 0.001789/0.8814, allocations: 0.7502 MB / 1.156 GB, free: 7.688 MB / 0.7605 GB Notification: Performance of NFFlatten.flatten: time 0.002329/0.8837, allocations: 2.901 MB / 1.158 GB, free: 6.477 MB / 0.7605 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000988/0.8847, allocations: 0.8605 MB / 1.159 GB, free: 6.082 MB / 0.7605 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001131/0.8859, allocations: 0.8965 MB / 1.16 GB, free: 5.762 MB / 0.7605 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008992/0.8868, allocations: 0.7579 MB / 1.161 GB, free: 5.48 MB / 0.7605 GB Notification: Performance of NFPackage.collectConstants: time 0.0001588/0.8869, allocations: 43.88 kB / 1.161 GB, free: 5.48 MB / 0.7605 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003095/0.89, allocations: 1.75 MB / 1.163 GB, free: 5.039 MB / 0.7605 GB Notification: Performance of NFScalarize.scalarize: time 0.001553/0.8916, allocations: 1.773 MB / 1.164 GB, free: 4.641 MB / 0.7605 GB Notification: Performance of NFVerifyModel.verify: time 0.0004501/0.8921, allocations: 365.4 kB / 1.165 GB, free: 4.414 MB / 0.7605 GB Notification: Performance of NFConvertDAE.convert: time 0.003811/0.8959, allocations: 3.009 MB / 1.168 GB, free: 3.793 MB / 0.7605 GB Notification: Performance of FrontEnd - DAE generated: time 5.05e-06/0.8959, allocations: 1.125 kB / 1.168 GB, free: 3.793 MB / 0.7605 GB Notification: Performance of FrontEnd: time 1.242e-06/0.8959, allocations: 0 / 1.168 GB, free: 3.793 MB / 0.7605 GB Notification: Performance of Transformations before backend: time 3.508e-05/0.896, allocations: 0 / 1.168 GB, free: 3.793 MB / 0.7605 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.004256/0.9002, allocations: 2.383 MB / 1.17 GB, free: 2.273 MB / 0.7605 GB Notification: Performance of prepare preOptimizeDAE: time 3.781e-05/0.9003, allocations: 9.094 kB / 1.17 GB, free: 2.273 MB / 0.7605 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007886/0.9011, allocations: 303.8 kB / 1.17 GB, free: 2.141 MB / 0.7605 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00522/0.9063, allocations: 4.495 MB / 1.175 GB, free: 0.6406 MB / 0.7605 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.745e-05/0.9064, allocations: 125.7 kB / 1.175 GB, free: 0.582 MB / 0.7605 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002402/0.9067, allocations: 171.8 kB / 1.175 GB, free: 0.5273 MB / 0.7605 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002564/0.9092, allocations: 1.552 MB / 1.176 GB, free: 15.91 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.387e-05/0.9093, allocations: 1.094 kB / 1.176 GB, free: 15.91 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001025/0.9094, allocations: 49.19 kB / 1.177 GB, free: 15.88 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.596e-05/0.9094, allocations: 26.94 kB / 1.177 GB, free: 15.88 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002434/0.9118, allocations: 1.649 MB / 1.178 GB, free: 15.48 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01069/0.9225, allocations: 6.776 MB / 1.185 GB, free: 13.11 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002234/0.9248, allocations: 1.471 MB / 1.186 GB, free: 12.53 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001235/0.9261, allocations: 1 MB / 1.187 GB, free: 12.13 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 8.341e-05/0.9262, allocations: 35.61 kB / 1.187 GB, free: 12.12 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001247/0.9274, allocations: 0.8806 MB / 1.188 GB, free: 11.88 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=106): time 4.128e-06/0.9274, allocations: 96 / 1.188 GB, free: 11.88 MB / 0.7761 GB Notification: Performance of matching and sorting (n=106): time 0.004355/0.9318, allocations: 2.67 MB / 1.191 GB, free: 11.12 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002346/0.9321, allocations: 342.7 kB / 1.191 GB, free: 10.85 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009875/0.9419, allocations: 7.318 MB / 1.198 GB, free: 5.516 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 0.0004691/0.9424, allocations: 73.7 kB / 1.198 GB, free: 5.438 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 0.000703/0.9431, allocations: 0.7518 MB / 1.199 GB, free: 4.754 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003526/0.9435, allocations: 355.2 kB / 1.199 GB, free: 4.434 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001178/0.9436, allocations: 44 kB / 1.199 GB, free: 4.391 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0002098/0.9438, allocations: 411.4 kB / 1.2 GB, free: 4.012 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004564/0.9484, allocations: 4.657 MB / 1.204 GB, free: 15.7 MB / 0.7917 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005097/0.9535, allocations: 5.395 MB / 1.21 GB, free: 10.37 MB / 0.7917 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006927/0.9605, allocations: 6.776 MB / 1.216 GB, free: 3.707 MB / 0.7917 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.817e-05/0.9605, allocations: 8 kB / 1.216 GB, free: 3.699 MB / 0.7917 GB Notification: Performance of matching and sorting (n=303) (initialization): time 0.01077/0.9713, allocations: 10.57 MB / 1.226 GB, free: 9.906 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001997/0.9715, allocations: 186.6 kB / 1.227 GB, free: 9.75 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.367e-05/0.9716, allocations: 24 kB / 1.227 GB, free: 9.727 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.773e-05/0.9716, allocations: 32 kB / 1.227 GB, free: 9.695 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001723/0.9734, allocations: 0.495 MB / 1.227 GB, free: 9.273 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.995e-05/0.9734, allocations: 49.02 kB / 1.227 GB, free: 9.23 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001589/0.975, allocations: 269.5 kB / 1.228 GB, free: 8.977 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002175/0.9752, allocations: 124 kB / 1.228 GB, free: 8.863 MB / 0.8073 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.001626/0.9769, allocations: 1.233 MB / 1.229 GB, free: 7.727 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002947/0.9772, allocations: 167.4 kB / 1.229 GB, free: 7.562 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003746/0.9809, allocations: 2.6 MB / 1.232 GB, free: 5.27 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.54e-05/0.981, allocations: 11.94 kB / 1.232 GB, free: 5.258 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/0.981, allocations: 4.75 kB / 1.232 GB, free: 5.254 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.187e-05/0.981, allocations: 4.078 kB / 1.232 GB, free: 5.254 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00596/0.987, allocations: 4.086 MB / 1.236 GB, free: 1.762 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.138e-06/0.987, allocations: 4.594 kB / 1.236 GB, free: 1.758 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006184/0.9876, allocations: 156.8 kB / 1.236 GB, free: 1.625 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.44e-06/0.9876, allocations: 4 kB / 1.236 GB, free: 1.621 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.239e-05/0.9877, allocations: 33.86 kB / 1.236 GB, free: 1.594 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.761e-06/0.9877, allocations: 4 kB / 1.236 GB, free: 1.59 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.9877, allocations: 0 / 1.236 GB, free: 1.59 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003251/0.991, allocations: 2.563 MB / 1.238 GB, free: 15.24 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000719/0.9917, allocations: 444.2 kB / 1.239 GB, free: 14.84 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001888/0.9919, allocations: 20.61 kB / 1.239 GB, free: 14.82 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007189/0.9926, allocations: 71.7 kB / 1.239 GB, free: 14.77 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000163/0.9928, allocations: 67.83 kB / 1.239 GB, free: 14.72 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.511e-05/0.9929, allocations: 46.52 kB / 1.239 GB, free: 14.68 MB / 0.823 GB Notification: Performance of sorting global known variables: time 0.004489/0.9974, allocations: 4.603 MB / 1.243 GB, free: 10.5 MB / 0.823 GB Notification: Performance of sort global known variables: time 1.7e-07/0.9974, allocations: 0 / 1.243 GB, free: 10.5 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.002879/1, allocations: 0.9878 MB / 1.244 GB, free: 9.535 MB / 0.823 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.002159/1.002, allocations: 0.9748 MB / 1.245 GB, free: 8.848 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.007738/1.01, allocations: 7.791 MB / 1.253 GB, free: 1.605 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 5.941e-06/1.01, allocations: 4 kB / 1.253 GB, free: 1.602 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 0.00215/1.012, allocations: 2.19 MB / 1.255 GB, free: 15.55 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001674/1.014, allocations: 298.9 kB / 1.255 GB, free: 15.32 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01145/1.026, allocations: 9.369 MB / 1.264 GB, free: 6.121 MB / 0.8386 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]