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.WindowRadiationElectrochromic.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.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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 1.64/1.64, allocations: 291.7 MB / 306.8 MB, free: 7.676 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.0009728/0.0009727, allocations: 177.5 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.33/1.33, allocations: 225.7 MB / 0.6538 GB, free: 13.58 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.0009292/0.0009292, allocations: 95.55 kB / 0.7699 GB, free: 50.4 MB / 0.5417 GB Notification: Performance of FrontEnd - loaded program: time 0.0003907/0.0003907, allocations: 12 kB / 0.8956 GB, free: 11.86 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6394/0.6398, allocations: 118.1 MB / 1.011 GB, free: 57.83 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic): time 0.007611/0.6474, allocations: 6.107 MB / 1.017 GB, free: 57.34 MB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.1483/0.7958, allocations: 141.2 MB / 1.155 GB, free: 7.598 MB / 0.7605 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001392/0.7973, allocations: 28.12 kB / 1.155 GB, free: 7.586 MB / 0.7605 GB Notification: Performance of NFTyping.typeComponents: time 0.004411/0.8017, allocations: 1.616 MB / 1.156 GB, free: 6.934 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.002435/0.8041, allocations: 0.8881 MB / 1.157 GB, free: 6.453 MB / 0.7605 GB Notification: Performance of NFTyping.typeClassSections: time 0.003282/0.8074, allocations: 1.039 MB / 1.158 GB, free: 5.961 MB / 0.7605 GB Notification: Performance of NFFlatten.flatten: time 0.006447/0.8139, allocations: 4.614 MB / 1.163 GB, free: 4.02 MB / 0.7605 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002905/0.8168, allocations: 1.188 MB / 1.164 GB, free: 3.492 MB / 0.7605 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002905/0.8198, allocations: 1.298 MB / 1.165 GB, free: 3.031 MB / 0.7605 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002466/0.8223, allocations: 1.199 MB / 1.166 GB, free: 2.613 MB / 0.7605 GB Notification: Performance of NFPackage.collectConstants: time 0.0005134/0.8228, allocations: 62.69 kB / 1.166 GB, free: 2.613 MB / 0.7605 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005491/0.8283, allocations: 1.986 MB / 1.168 GB, free: 2.113 MB / 0.7605 GB Notification: Performance of NFScalarize.scalarize: time 0.005933/0.8343, allocations: 4.224 MB / 1.173 GB, free: 1.238 MB / 0.7605 GB Notification: Performance of NFVerifyModel.verify: time 0.001848/0.8362, allocations: 0.5316 MB / 1.173 GB, free: 0.8906 MB / 0.7605 GB Notification: Performance of NFConvertDAE.convert: time 0.009231/0.8454, allocations: 4.518 MB / 1.177 GB, free: 15.98 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 6.732e-06/0.8455, allocations: 0 / 1.177 GB, free: 15.98 MB / 0.7761 GB Notification: Performance of FrontEnd: time 2.094e-06/0.8455, allocations: 0 / 1.177 GB, free: 15.98 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 0.0002384/0.8457, allocations: 1 kB / 1.177 GB, free: 15.98 MB / 0.7761 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.01012/0.8558, allocations: 3.337 MB / 1.181 GB, free: 13.95 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 4.925e-05/0.8559, allocations: 10.56 kB / 1.181 GB, free: 13.95 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002162/0.8581, allocations: 428 kB / 1.181 GB, free: 13.77 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01546/0.8736, allocations: 12.24 MB / 1.193 GB, free: 9.871 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001456/0.8737, allocations: 166.8 kB / 1.193 GB, free: 9.793 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003977/0.8742, allocations: 227.4 kB / 1.193 GB, free: 9.723 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003641/0.8778, allocations: 2.272 MB / 1.196 GB, free: 8.203 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.819e-05/0.8778, allocations: 0 / 1.196 GB, free: 8.203 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001438/0.878, allocations: 64 kB / 1.196 GB, free: 8.141 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.789e-05/0.878, allocations: 37.81 kB / 1.196 GB, free: 8.105 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003856/0.8819, allocations: 2.38 MB / 1.198 GB, free: 6.145 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02259/0.9045, allocations: 14.89 MB / 1.213 GB, free: 9.152 MB / 0.7917 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003232/0.9078, allocations: 1.86 MB / 1.214 GB, free: 7.461 MB / 0.7917 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001588/0.9094, allocations: 1.248 MB / 1.216 GB, free: 6.305 MB / 0.7917 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001007/0.9095, allocations: 39.67 kB / 1.216 GB, free: 6.277 MB / 0.7917 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001948/0.9115, allocations: 1.258 MB / 1.217 GB, free: 5.203 MB / 0.7917 GB Notification: Performance of pre-optimization done (n=126): time 3.016e-06/0.9115, allocations: 4 kB / 1.217 GB, free: 5.199 MB / 0.7917 GB Notification: Performance of matching and sorting (n=126): time 0.006976/0.9185, allocations: 3.66 MB / 1.221 GB, free: 1.855 MB / 0.7917 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002562/0.9188, allocations: 363.7 kB / 1.221 GB, free: 1.469 MB / 0.7917 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03185/0.9506, allocations: 20.54 MB / 1.241 GB, free: 14.48 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 0.0006859/0.9514, allocations: 81.64 kB / 1.241 GB, free: 14.39 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 0.001593/0.953, allocations: 1.13 MB / 1.242 GB, free: 13.37 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 0.000529/0.9535, allocations: 437.8 kB / 1.243 GB, free: 12.98 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002276/0.9538, allocations: 60 kB / 1.243 GB, free: 12.92 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 0.0002834/0.954, allocations: 452.2 kB / 1.243 GB, free: 12.51 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01043/0.9645, allocations: 12.36 MB / 1.255 GB, free: 164 kB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01162/0.9761, allocations: 13.34 MB / 1.268 GB, free: 2.398 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01347/0.9896, allocations: 15.1 MB / 1.283 GB, free: 2.867 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.78e-05/0.9897, allocations: 8.75 kB / 1.283 GB, free: 2.859 MB / 0.8542 GB Notification: Performance of matching and sorting (n=411) (initialization): time 0.02544/1.015, allocations: 26.43 MB / 1.309 GB, free: 8.406 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002237/1.015, allocations: 205.6 kB / 1.309 GB, free: 8.199 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.422e-05/1.015, allocations: 33.95 kB / 1.309 GB, free: 8.168 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006348/1.016, allocations: 124.8 kB / 1.309 GB, free: 8.043 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002953/1.019, allocations: 0.6901 MB / 1.31 GB, free: 7.355 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002075/1.021, allocations: 1.581 MB / 1.311 GB, free: 5.645 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002647/1.024, allocations: 380.2 kB / 1.312 GB, free: 5.27 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003403/1.024, allocations: 164 kB / 1.312 GB, free: 5.109 MB / 0.8855 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.002855/1.027, allocations: 2.506 MB / 1.314 GB, free: 2.59 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004092/1.027, allocations: 252.6 kB / 1.314 GB, free: 2.34 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005039/1.033, allocations: 3.351 MB / 1.318 GB, free: 14.97 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.139e-05/1.033, allocations: 13.12 kB / 1.318 GB, free: 14.96 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.377e-06/1.033, allocations: 0 / 1.318 GB, free: 14.96 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.238e-05/1.033, allocations: 4.922 kB / 1.318 GB, free: 14.96 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007552/1.04, allocations: 5.404 MB / 1.323 GB, free: 9.48 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.93e-06/1.04, allocations: 0 / 1.323 GB, free: 9.48 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008146/1.041, allocations: 208.8 kB / 1.323 GB, free: 9.277 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004902/1.041, allocations: 84.77 kB / 1.323 GB, free: 9.191 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.775e-05/1.042, allocations: 31.98 kB / 1.323 GB, free: 9.16 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001665/1.043, allocations: 1.545 MB / 1.325 GB, free: 7.48 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.781e-06/1.043, allocations: 7.922 kB / 1.325 GB, free: 7.473 MB / 0.9011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004551/1.048, allocations: 3.277 MB / 1.328 GB, free: 4.168 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001213/1.049, allocations: 0.5947 MB / 1.329 GB, free: 3.551 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002625/1.049, allocations: 32.75 kB / 1.329 GB, free: 3.52 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00101/1.05, allocations: 105.9 kB / 1.329 GB, free: 3.418 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002004/1.051, allocations: 88.81 kB / 1.329 GB, free: 3.328 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001201/1.051, allocations: 60.72 kB / 1.329 GB, free: 3.27 MB / 0.9011 GB Notification: Performance of sorting global known variables: time 0.0113/1.062, allocations: 12.74 MB / 1.341 GB, free: 6.523 MB / 0.9167 GB Notification: Performance of sort global known variables: time 5.31e-07/1.062, allocations: 0 / 1.341 GB, free: 6.523 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.005582/1.068, allocations: 1.244 MB / 1.343 GB, free: 5.277 MB / 0.9167 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.003031/1.071, allocations: 1.041 MB / 1.344 GB, free: 4.453 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.3663/1.437, allocations: 16.13 MB / 1.359 GB, free: 257 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 1.074e-05/1.437, allocations: 3.594 kB / 1.359 GB, free: 257 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.003102/1.44, allocations: 2.655 MB / 1.362 GB, free: 256.8 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002412/1.443, allocations: 415.4 kB / 1.362 GB, free: 256.8 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02354/1.466, allocations: 21.33 MB / 1.383 GB, free: 251.1 MB / 0.9167 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]