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.AbsorbedRadiationElectrochromic.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.AbsorbedRadiationElectrochromic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.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_7.0.0_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.13/2.13, allocations: 254.9 MB / 269.9 MB, free: 9.625 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.001367/0.001367, allocations: 202.7 kB / 329.5 MB, free: 1.141 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.406/2.406, allocations: 225.6 MB / 0.6001 GB, free: 432 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.0011/0.001099, allocations: 100.5 kB / 0.7074 GB, free: 6.141 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 0.0006724/0.0006726, allocations: 12.06 kB / 0.8242 GB, free: 124.9 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2565/0.2572, allocations: 109.1 MB / 0.9308 GB, free: 24.88 MB / 0.5886 GB Notification: Performance of NFInst.instantiate(Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic): time 0.01025/0.2675, allocations: 4.973 MB / 0.9356 GB, free: 19.88 MB / 0.5886 GB Notification: Performance of NFInst.instExpressions: time 1.09/1.358, allocations: 140.4 MB / 1.073 GB, free: 1.242 MB / 0.6511 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001425/1.359, allocations: 20.59 kB / 1.073 GB, free: 1.234 MB / 0.6511 GB Notification: Performance of NFTyping.typeComponents: time 0.00769/1.367, allocations: 1.493 MB / 1.074 GB, free: 0.9883 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.003472/1.37, allocations: 0.5493 MB / 1.075 GB, free: 0.8477 MB / 0.6511 GB Notification: Performance of NFTyping.typeClassSections: time 0.004314/1.375, allocations: 0.7377 MB / 1.075 GB, free: 0.793 MB / 0.6511 GB Notification: Performance of NFFlatten.flatten: time 0.006044/1.381, allocations: 2.901 MB / 1.078 GB, free: 0.5078 MB / 0.6511 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00236/1.383, allocations: 0.8117 MB / 1.079 GB, free: 376 kB / 0.6511 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003151/1.386, allocations: 0.8913 MB / 1.08 GB, free: 192 kB / 0.6511 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00255/1.389, allocations: 0.7591 MB / 1.081 GB, free: 32 kB / 0.6511 GB Notification: Performance of NFPackage.collectConstants: time 0.0004999/1.389, allocations: 43.53 kB / 1.081 GB, free: 32 kB / 0.6511 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006886/1.396, allocations: 1.759 MB / 1.082 GB, free: 15.99 MB / 0.6667 GB Notification: Performance of NFScalarize.scalarize: time 0.00319/1.4, allocations: 1.762 MB / 1.084 GB, free: 15.91 MB / 0.6667 GB Notification: Performance of NFVerifyModel.verify: time 0.0009941/1.401, allocations: 367.6 kB / 1.085 GB, free: 15.8 MB / 0.6667 GB Notification: Performance of NFConvertDAE.convert: time 0.008035/1.409, allocations: 3.016 MB / 1.087 GB, free: 14.61 MB / 0.6667 GB Notification: Performance of FrontEnd - DAE generated: time 7.294e-06/1.409, allocations: 4 kB / 1.087 GB, free: 14.6 MB / 0.6667 GB Notification: Performance of FrontEnd: time 3.006e-06/1.409, allocations: 1.219 kB / 1.087 GB, free: 14.6 MB / 0.6667 GB Notification: Performance of Transformations before backend: time 0.0001018/1.409, allocations: 0 / 1.087 GB, free: 14.6 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: 309 * Number of variables: 309 Notification: Performance of Generate backend data structure: time 0.009134/1.418, allocations: 2.395 MB / 1.09 GB, free: 13 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 5.013e-05/1.418, allocations: 8.344 kB / 1.09 GB, free: 13 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002364/1.42, allocations: 300.6 kB / 1.09 GB, free: 12.85 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0109/1.431, allocations: 4.454 MB / 1.094 GB, free: 11.98 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002212/1.432, allocations: 123.6 kB / 1.095 GB, free: 11.98 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006609/1.432, allocations: 180.8 kB / 1.095 GB, free: 11.97 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005588/1.438, allocations: 1.552 MB / 1.096 GB, free: 11.54 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.717e-05/1.438, allocations: 0 / 1.096 GB, free: 11.54 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000231/1.438, allocations: 47.5 kB / 1.096 GB, free: 11.54 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.502e-05/1.438, allocations: 24.66 kB / 1.096 GB, free: 11.54 MB / 0.6667 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005384/1.444, allocations: 1.655 MB / 1.098 GB, free: 11.19 MB / 0.6667 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02148/1.465, allocations: 6.754 MB / 1.105 GB, free: 9.039 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00432/1.47, allocations: 1.468 MB / 1.106 GB, free: 8.871 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002326/1.472, allocations: 0.9993 MB / 1.107 GB, free: 8.785 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001723/1.472, allocations: 31.05 kB / 1.107 GB, free: 8.777 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00251/1.475, allocations: 0.8892 MB / 1.108 GB, free: 8.574 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=106): time 5.39e-06/1.475, allocations: 0 / 1.108 GB, free: 8.574 MB / 0.6667 GB Notification: Performance of matching and sorting (n=106): time 0.008266/1.483, allocations: 2.67 MB / 1.11 GB, free: 8.133 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00038/1.483, allocations: 345.3 kB / 1.111 GB, free: 7.859 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02116/1.505, allocations: 7.321 MB / 1.118 GB, free: 1.895 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 0.0007291/1.505, allocations: 61.7 kB / 1.118 GB, free: 1.828 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 0.001602/1.507, allocations: 0.7586 MB / 1.119 GB, free: 1.074 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007826/1.508, allocations: 355.2 kB / 1.119 GB, free: 0.7305 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003101/1.508, allocations: 44 kB / 1.119 GB, free: 0.6875 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.0003783/1.509, allocations: 414.7 kB / 1.119 GB, free: 284 kB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01012/1.519, allocations: 4.658 MB / 1.124 GB, free: 11.62 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01169/1.531, allocations: 5.397 MB / 1.129 GB, free: 5.898 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01141/1.542, allocations: 5.076 MB / 1.134 GB, free: 0.8125 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.467e-05/1.542, allocations: 8 kB / 1.134 GB, free: 0.8047 MB / 0.6823 GB Notification: Performance of matching and sorting (n=303) (initialization): time 0.02544/1.568, allocations: 10.55 MB / 1.145 GB, free: 6.234 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004361/1.568, allocations: 189.6 kB / 1.145 GB, free: 6.043 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.2e-05/1.568, allocations: 20 kB / 1.145 GB, free: 6.023 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.851e-05/1.568, allocations: 36.56 kB / 1.145 GB, free: 5.988 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00498/1.573, allocations: 0.4913 MB / 1.145 GB, free: 5.496 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.008e-05/1.573, allocations: 51.73 kB / 1.145 GB, free: 5.445 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003464/1.577, allocations: 283.8 kB / 1.146 GB, free: 5.168 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000588/1.577, allocations: 127.9 kB / 1.146 GB, free: 5.043 MB / 0.698 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.003324/1.581, allocations: 1.229 MB / 1.147 GB, free: 3.801 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006465/1.581, allocations: 165.8 kB / 1.147 GB, free: 3.637 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008898/1.59, allocations: 2.614 MB / 1.15 GB, free: 1.004 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.375e-05/1.59, allocations: 12 kB / 1.15 GB, free: 0.9922 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.257e-05/1.59, allocations: 3.938 kB / 1.15 GB, free: 0.9883 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.044e-05/1.591, allocations: 3.984 kB / 1.15 GB, free: 0.9844 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01286/1.603, allocations: 4.095 MB / 1.154 GB, free: 12.85 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.856e-06/1.603, allocations: 4 kB / 1.154 GB, free: 12.84 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001722/1.605, allocations: 155.8 kB / 1.154 GB, free: 12.69 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.617e-05/1.605, allocations: 7.938 kB / 1.154 GB, free: 12.68 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001513/1.605, allocations: 27.98 kB / 1.154 GB, free: 12.66 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.688e-06/1.605, allocations: 4 kB / 1.154 GB, free: 12.65 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.726e-06/1.605, allocations: 0 / 1.154 GB, free: 12.65 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008263/1.614, allocations: 2.561 MB / 1.156 GB, free: 10.07 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001933/1.616, allocations: 450.2 kB / 1.157 GB, free: 9.605 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005385/1.616, allocations: 23.94 kB / 1.157 GB, free: 9.582 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002149/1.618, allocations: 77.47 kB / 1.157 GB, free: 9.508 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003385/1.619, allocations: 71.75 kB / 1.157 GB, free: 9.441 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002039/1.619, allocations: 43.97 kB / 1.157 GB, free: 9.398 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.009731/1.629, allocations: 4.599 MB / 1.161 GB, free: 4.809 MB / 0.7136 GB Notification: Performance of sort global known variables: time 7.41e-07/1.629, allocations: 4 kB / 1.161 GB, free: 4.805 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.004408/1.633, allocations: 0.9792 MB / 1.162 GB, free: 3.824 MB / 0.7136 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.004044/1.637, allocations: 0.9789 MB / 1.163 GB, free: 3.043 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.01256/1.65, allocations: 7.794 MB / 1.171 GB, free: 11.26 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 7.935e-06/1.65, allocations: 0 / 1.171 GB, free: 11.26 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.003736/1.654, allocations: 2.193 MB / 1.173 GB, free: 9.055 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002788/1.657, allocations: 301.9 kB / 1.173 GB, free: 8.762 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01876/1.675, allocations: 9.37 MB / 1.183 GB, free: 15.36 MB / 0.7448 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]