Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_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 7.0.3-maint.7.0.x/package.mo", uses=false) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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_maint.7.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.7.0.x_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.0008967/0.0008968, allocations: 86.17 kB / 15.06 MB, free: 1.09 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.001239/0.001239, allocations: 168.7 kB / 15.95 MB, free: 204 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.461/1.461, allocations: 205.4 MB / 222.1 MB, free: 5.645 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.536/1.536, allocations: 252 MB / 0.5102 GB, free: 4.746 MB / 414.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.0006033/0.0006034, allocations: 27.44 kB / 0.6243 GB, free: 1.059 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5591/0.5597, allocations: 106.3 MB / 0.7281 GB, free: 11.38 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic): time 0.007716/0.5674, allocations: 6.16 MB / 0.7342 GB, free: 5.188 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.1621/0.7296, allocations: 141.1 MB / 0.872 GB, free: 7.688 MB / 0.6856 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001035/0.7307, allocations: 31.81 kB / 0.872 GB, free: 7.656 MB / 0.6856 GB Notification: Performance of NFTyping.typeComponents: time 0.003925/0.7346, allocations: 1.615 MB / 0.8736 GB, free: 6.035 MB / 0.6856 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3-maint.7.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 7.0.3-maint.7.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 7.0.3-maint.7.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.002091/0.7367, allocations: 0.8858 MB / 0.8744 GB, free: 5.148 MB / 0.6856 GB Notification: Performance of NFTyping.typeClassSections: time 0.00265/0.7394, allocations: 1.01 MB / 0.8754 GB, free: 4.148 MB / 0.6856 GB Notification: Performance of NFFlatten.flatten: time 0.004691/0.7441, allocations: 4.576 MB / 0.8799 GB, free: 15.56 MB / 0.7012 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001643/0.7457, allocations: 0.9824 MB / 0.8808 GB, free: 14.54 MB / 0.7012 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002554/0.7483, allocations: 1.3 MB / 0.8821 GB, free: 13.24 MB / 0.7012 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002011/0.7503, allocations: 1.195 MB / 0.8833 GB, free: 12.04 MB / 0.7012 GB Notification: Performance of NFPackage.collectConstants: time 0.000226/0.7506, allocations: 64 kB / 0.8833 GB, free: 11.98 MB / 0.7012 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003954/0.7545, allocations: 1.978 MB / 0.8853 GB, free: 9.996 MB / 0.7012 GB Notification: Performance of NFScalarize.scalarize: time 0.003696/0.7583, allocations: 4.218 MB / 0.8894 GB, free: 5.773 MB / 0.7012 GB Notification: Performance of NFVerifyModel.verify: time 0.0007476/0.759, allocations: 0.5313 MB / 0.8899 GB, free: 5.234 MB / 0.7012 GB Notification: Performance of NFConvertDAE.convert: time 0.00537/0.7644, allocations: 4.517 MB / 0.8943 GB, free: 0.707 MB / 0.7012 GB Notification: Performance of FrontEnd - DAE generated: time 7.223e-06/0.7644, allocations: 4 kB / 0.8943 GB, free: 0.7031 MB / 0.7012 GB Notification: Performance of FrontEnd: time 1.643e-06/0.7644, allocations: 0 / 0.8943 GB, free: 0.7031 MB / 0.7012 GB Notification: Performance of Transformations before backend: time 7.528e-05/0.7645, allocations: 0 / 0.8943 GB, free: 0.7031 MB / 0.7012 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.005373/0.7699, allocations: 3.364 MB / 0.8976 GB, free: 13.26 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.494e-05/0.7699, allocations: 8.031 kB / 0.8976 GB, free: 13.25 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001154/0.7711, allocations: 431.5 kB / 0.898 GB, free: 12.83 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01124/0.7824, allocations: 12.16 MB / 0.9099 GB, free: 0.6016 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001179/0.7825, allocations: 166.9 kB / 0.9101 GB, free: 448 kB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000316/0.7828, allocations: 224 kB / 0.9103 GB, free: 224 kB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3626/1.145, allocations: 2.006 MB / 0.9122 GB, free: 176.9 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.076e-05/1.145, allocations: 4.453 kB / 0.9122 GB, free: 176.9 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001328/1.146, allocations: 65.62 kB / 0.9123 GB, free: 176.8 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.495e-05/1.146, allocations: 39.62 kB / 0.9123 GB, free: 176.8 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003486/1.149, allocations: 2.127 MB / 0.9144 GB, free: 176.3 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0189/1.168, allocations: 14.88 MB / 0.929 GB, free: 169.8 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002068/1.17, allocations: 1.486 MB / 0.9304 GB, free: 168.3 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009106/1.171, allocations: 0.8745 MB / 0.9313 GB, free: 167.4 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000106/1.171, allocations: 38.11 kB / 0.9313 GB, free: 167.4 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001306/1.173, allocations: 1.005 MB / 0.9323 GB, free: 166.4 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=126): time 2.996e-06/1.173, allocations: 0 / 0.9323 GB, free: 166.4 MB / 0.7169 GB Notification: Performance of matching and sorting (n=126): time 0.004607/1.177, allocations: 2.896 MB / 0.9351 GB, free: 163.5 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001413/1.177, allocations: 362.5 kB / 0.9354 GB, free: 163.1 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0251/1.202, allocations: 20.53 MB / 0.9555 GB, free: 142.5 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 0.0006108/1.203, allocations: 81.7 kB / 0.9556 GB, free: 142.4 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.001125/1.204, allocations: 1.137 MB / 0.9567 GB, free: 141.3 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003636/1.205, allocations: 435.9 kB / 0.9571 GB, free: 140.9 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001823/1.205, allocations: 60 kB / 0.9572 GB, free: 140.8 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.0001542/1.205, allocations: 448.7 kB / 0.9576 GB, free: 140.4 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007095/1.212, allocations: 12.1 MB / 0.9694 GB, free: 128.3 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00802/1.22, allocations: 13.08 MB / 0.9822 GB, free: 114.8 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007799/1.228, allocations: 12.63 MB / 0.9945 GB, free: 102.2 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.857e-05/1.228, allocations: 8 kB / 0.9945 GB, free: 102.1 MB / 0.7169 GB Notification: Performance of matching and sorting (n=411) (initialization): time 0.01872/1.247, allocations: 25.9 MB / 1.02 GB, free: 76.23 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001789/1.247, allocations: 213.5 kB / 1.02 GB, free: 76.02 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.695e-05/1.247, allocations: 31.94 kB / 1.02 GB, free: 75.98 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005932/1.248, allocations: 132.8 kB / 1.02 GB, free: 75.85 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002356/1.25, allocations: 0.6901 MB / 1.021 GB, free: 75.16 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001703/1.252, allocations: 1.567 MB / 1.022 GB, free: 73.45 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002238/1.254, allocations: 378.8 kB / 1.023 GB, free: 73.09 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004436/1.254, allocations: 171.1 kB / 1.023 GB, free: 72.92 MB / 0.7169 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.002459/1.257, allocations: 2.513 MB / 1.025 GB, free: 70.4 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004839/1.257, allocations: 248.6 kB / 1.026 GB, free: 70.16 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004031/1.261, allocations: 2.842 MB / 1.028 GB, free: 67.29 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.049e-05/1.261, allocations: 8 kB / 1.028 GB, free: 67.29 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/1.261, allocations: 0 / 1.028 GB, free: 67.29 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.245e-05/1.262, allocations: 15.97 kB / 1.028 GB, free: 67.27 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006208/1.268, allocations: 4.869 MB / 1.033 GB, free: 62.36 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.53e-06/1.268, allocations: 0 / 1.033 GB, free: 62.36 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007695/1.269, allocations: 199.8 kB / 1.033 GB, free: 62.17 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004465/1.269, allocations: 88.72 kB / 1.033 GB, free: 62.08 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.342e-05/1.269, allocations: 39.98 kB / 1.033 GB, free: 62.04 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001402/1.27, allocations: 1.541 MB / 1.035 GB, free: 60.36 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/1.271, allocations: 8.125 kB / 1.035 GB, free: 60.35 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003586/1.274, allocations: 2.746 MB / 1.038 GB, free: 57.57 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009967/1.275, allocations: 0.6064 MB / 1.038 GB, free: 56.94 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002685/1.275, allocations: 28 kB / 1.038 GB, free: 56.91 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000979/1.276, allocations: 103.2 kB / 1.038 GB, free: 56.82 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001844/1.277, allocations: 85.59 kB / 1.038 GB, free: 56.73 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001177/1.277, allocations: 55.97 kB / 1.038 GB, free: 56.68 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.008293/1.285, allocations: 12.75 MB / 1.051 GB, free: 43.93 MB / 0.7169 GB Notification: Performance of sort global known variables: time 7.22e-07/1.285, allocations: 0 / 1.051 GB, free: 43.93 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.004203/1.289, allocations: 1.237 MB / 1.052 GB, free: 42.77 MB / 0.7169 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.002357/1.292, allocations: 0.9512 MB / 1.053 GB, free: 42.11 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.01066/1.302, allocations: 15.61 MB / 1.068 GB, free: 26.49 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.014e-05/1.302, allocations: 3.938 kB / 1.068 GB, free: 26.48 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.002311/1.305, allocations: 2.398 MB / 1.071 GB, free: 24.06 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002235/1.307, allocations: 429.8 kB / 1.071 GB, free: 23.64 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02113/1.328, allocations: 21.06 MB / 1.092 GB, free: 2.539 MB / 0.7169 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]