Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 7.0.1/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 7.0.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.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_7.0.0_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.271/2.271, allocations: 254.9 MB / 269.9 MB, free: 9.629 MB / 218.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.001381/0.00138, allocations: 193.3 kB / 329.5 MB, free: 1.156 MB / 250.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 2.464/2.464, allocations: 225.6 MB / 0.6001 GB, free: 424 kB / 426.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.001064/0.001064, allocations: 96.48 kB / 0.7074 GB, free: 6.156 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 0.0005128/0.000513, allocations: 15.59 kB / 0.8242 GB, free: 124.9 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2008/0.2014, allocations: 109.1 MB / 0.9308 GB, free: 24.89 MB / 0.5886 GB Notification: Performance of NFInst.instantiate(Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic): time 0.008757/0.2102, allocations: 6.103 MB / 0.9367 GB, free: 18.75 MB / 0.5886 GB Notification: Performance of NFInst.instExpressions: time 0.9081/1.118, allocations: 141.2 MB / 1.075 GB, free: 1.215 MB / 0.6511 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001771/1.12, allocations: 37.31 kB / 1.075 GB, free: 1.195 MB / 0.6511 GB Notification: Performance of NFTyping.typeComponents: time 0.006764/1.127, allocations: 1.613 MB / 1.076 GB, free: 0.9062 MB / 0.6511 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 7.0.1/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 7.0.1/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 7.0.1/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 7.0.1/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.004059/1.131, allocations: 0.8831 MB / 1.077 GB, free: 0.7188 MB / 0.6511 GB Notification: Performance of NFTyping.typeClassSections: time 0.004857/1.136, allocations: 1.028 MB / 1.078 GB, free: 0.6328 MB / 0.6511 GB Notification: Performance of NFFlatten.flatten: time 0.007558/1.144, allocations: 4.619 MB / 1.083 GB, free: 236 kB / 0.6511 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002604/1.146, allocations: 1.144 MB / 1.084 GB, free: 20 kB / 0.6511 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004315/1.151, allocations: 1.297 MB / 1.085 GB, free: 15.75 MB / 0.6667 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003436/1.154, allocations: 1.197 MB / 1.086 GB, free: 15.53 MB / 0.6667 GB Notification: Performance of NFPackage.collectConstants: time 0.001039/1.155, allocations: 64.25 kB / 1.086 GB, free: 15.53 MB / 0.6667 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006339/1.162, allocations: 1.99 MB / 1.088 GB, free: 15.18 MB / 0.6667 GB Notification: Performance of NFScalarize.scalarize: time 0.006117/1.168, allocations: 4.219 MB / 1.092 GB, free: 14.34 MB / 0.6667 GB Notification: Performance of NFVerifyModel.verify: time 0.001658/1.169, allocations: 0.5335 MB / 1.093 GB, free: 14.2 MB / 0.6667 GB Notification: Performance of NFConvertDAE.convert: time 0.009502/1.179, allocations: 4.522 MB / 1.097 GB, free: 11.91 MB / 0.6667 GB Notification: Performance of FrontEnd - DAE generated: time 6.091e-06/1.179, allocations: 7.875 kB / 1.097 GB, free: 11.9 MB / 0.6667 GB Notification: Performance of FrontEnd: time 2.785e-06/1.179, allocations: 0 / 1.097 GB, free: 11.9 MB / 0.6667 GB Notification: Performance of Transformations before backend: time 0.0002184/1.179, allocations: 0 / 1.097 GB, free: 11.9 MB / 0.6667 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.01143/1.191, allocations: 3.369 MB / 1.101 GB, free: 9.758 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 4.319e-05/1.191, allocations: 11.47 kB / 1.101 GB, free: 9.758 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002937/1.194, allocations: 421.7 kB / 1.101 GB, free: 9.551 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01739/1.211, allocations: 12.18 MB / 1.113 GB, free: 7.305 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002398/1.211, allocations: 163 kB / 1.113 GB, free: 7.23 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001008/1.212, allocations: 230.1 kB / 1.113 GB, free: 7.156 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006907/1.219, allocations: 2.266 MB / 1.115 GB, free: 5.188 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.849e-05/1.219, allocations: 4 kB / 1.115 GB, free: 5.184 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003843/1.22, allocations: 67.98 kB / 1.116 GB, free: 5.117 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.525e-05/1.22, allocations: 36 kB / 1.116 GB, free: 5.082 MB / 0.6667 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007349/1.227, allocations: 2.38 MB / 1.118 GB, free: 2.695 MB / 0.6667 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03473/1.262, allocations: 14.89 MB / 1.132 GB, free: 3.727 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005141/1.267, allocations: 1.855 MB / 1.134 GB, free: 1.871 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002901/1.27, allocations: 1.246 MB / 1.135 GB, free: 0.6211 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001735/1.27, allocations: 41.33 kB / 1.135 GB, free: 0.5898 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003382/1.274, allocations: 1.263 MB / 1.137 GB, free: 15.31 MB / 0.698 GB Notification: Performance of pre-optimization done (n=126): time 4.218e-06/1.274, allocations: 0 / 1.137 GB, free: 15.31 MB / 0.698 GB Notification: Performance of matching and sorting (n=126): time 0.01185/1.286, allocations: 3.66 MB / 1.14 GB, free: 11.61 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003847/1.286, allocations: 362.5 kB / 1.141 GB, free: 11.21 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.04686/1.333, allocations: 20.52 MB / 1.161 GB, free: 6.664 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 0.0007702/1.334, allocations: 81.7 kB / 1.161 GB, free: 6.578 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.002396/1.336, allocations: 1.145 MB / 1.162 GB, free: 5.445 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.000818/1.337, allocations: 429.2 kB / 1.162 GB, free: 5.031 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005676/1.338, allocations: 60 kB / 1.162 GB, free: 4.973 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0005435/1.338, allocations: 452.7 kB / 1.163 GB, free: 4.523 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01786/1.356, allocations: 12.36 MB / 1.175 GB, free: 8.16 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01913/1.375, allocations: 13.34 MB / 1.188 GB, free: 10.4 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01828/1.394, allocations: 12.89 MB / 1.2 GB, free: 13.51 MB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.276e-05/1.394, allocations: 12 kB / 1.2 GB, free: 13.5 MB / 0.7605 GB Notification: Performance of matching and sorting (n=411) (initialization): time 0.04118/1.435, allocations: 26.43 MB / 1.226 GB, free: 3.035 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003689/1.435, allocations: 205.6 kB / 1.226 GB, free: 2.828 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.99e-05/1.435, allocations: 28 kB / 1.226 GB, free: 2.801 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001094/1.436, allocations: 129 kB / 1.227 GB, free: 2.672 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005578/1.442, allocations: 0.6934 MB / 1.227 GB, free: 1.98 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00339/1.446, allocations: 1.585 MB / 1.229 GB, free: 264 kB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004131/1.45, allocations: 369.9 kB / 1.229 GB, free: 15.9 MB / 0.7917 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001133/1.451, allocations: 170.5 kB / 1.229 GB, free: 15.73 MB / 0.7917 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.005461/1.456, allocations: 2.505 MB / 1.232 GB, free: 13.22 MB / 0.7917 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008335/1.457, allocations: 244.6 kB / 1.232 GB, free: 12.98 MB / 0.7917 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009868/1.467, allocations: 3.372 MB / 1.235 GB, free: 9.586 MB / 0.7917 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.335e-05/1.467, allocations: 16.05 kB / 1.235 GB, free: 9.57 MB / 0.7917 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.623e-06/1.467, allocations: 3.984 kB / 1.235 GB, free: 9.566 MB / 0.7917 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.699e-05/1.467, allocations: 3.984 kB / 1.235 GB, free: 9.562 MB / 0.7917 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01542/1.483, allocations: 5.403 MB / 1.241 GB, free: 4.113 MB / 0.7917 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.667e-05/1.483, allocations: 4 kB / 1.241 GB, free: 4.109 MB / 0.7917 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001842/1.485, allocations: 199.7 kB / 1.241 GB, free: 3.914 MB / 0.7917 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009244/1.486, allocations: 84.77 kB / 1.241 GB, free: 3.828 MB / 0.7917 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003075/1.486, allocations: 35.92 kB / 1.241 GB, free: 3.793 MB / 0.7917 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00282/1.489, allocations: 1.548 MB / 1.242 GB, free: 2.109 MB / 0.7917 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.839e-06/1.489, allocations: 0 / 1.242 GB, free: 2.109 MB / 0.7917 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009037/1.498, allocations: 3.281 MB / 1.246 GB, free: 14.79 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003531/1.501, allocations: 0.5947 MB / 1.246 GB, free: 14.17 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001383/1.503, allocations: 31.98 kB / 1.246 GB, free: 14.14 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003888/1.507, allocations: 101.5 kB / 1.246 GB, free: 14.04 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001164/1.508, allocations: 84.88 kB / 1.246 GB, free: 13.96 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005638/1.509, allocations: 63.91 kB / 1.247 GB, free: 13.9 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 0.03376/1.542, allocations: 12.74 MB / 1.259 GB, free: 1.152 MB / 0.8073 GB Notification: Performance of sort global known variables: time 8.42e-07/1.542, allocations: 0 / 1.259 GB, free: 1.152 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.01016/1.553, allocations: 1.248 MB / 1.26 GB, free: 15.91 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.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.00438/1.557, allocations: 1.039 MB / 1.261 GB, free: 15.07 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.02494/1.582, allocations: 16.14 MB / 1.277 GB, free: 14.91 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 9.798e-06/1.582, allocations: 0 / 1.277 GB, free: 14.91 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.01018/1.592, allocations: 2.662 MB / 1.28 GB, free: 12.23 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006748/1.599, allocations: 428.6 kB / 1.28 GB, free: 11.82 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04658/1.646, allocations: 21.32 MB / 1.301 GB, free: 6.453 MB / 0.8542 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]