Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic.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.AbsorbedRadiationElectrochromic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic") translateModel(Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009642/0.0009642, allocations: 92.31 kB / 15.06 MB, free: 1.098 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.001226/0.001226, allocations: 172.7 kB / 15.95 MB, free: 208 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.457/1.457, allocations: 205.4 MB / 222.1 MB, free: 5.512 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.575/1.575, allocations: 252 MB / 0.5102 GB, free: 4.73 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.0004998/0.0004999, allocations: 19.44 kB / 0.6243 GB, free: 1.074 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4864/0.4869, allocations: 106.3 MB / 0.7281 GB, free: 11.41 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic): time 0.006117/0.4931, allocations: 5.038 MB / 0.733 GB, free: 6.344 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.1588/0.6519, allocations: 140.3 MB / 0.87 GB, free: 9.699 MB / 0.6856 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001034/0.653, allocations: 19.88 kB / 0.87 GB, free: 9.68 MB / 0.6856 GB Notification: Performance of NFTyping.typeComponents: time 0.004052/0.657, allocations: 1.491 MB / 0.8715 GB, free: 8.184 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.001745/0.6588, allocations: 0.5471 MB / 0.872 GB, free: 7.637 MB / 0.6856 GB Notification: Performance of NFTyping.typeClassSections: time 0.00209/0.6609, allocations: 0.7247 MB / 0.8727 GB, free: 6.918 MB / 0.6856 GB Notification: Performance of NFFlatten.flatten: time 0.002978/0.6639, allocations: 2.865 MB / 0.8755 GB, free: 4.043 MB / 0.6856 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009185/0.6648, allocations: 0.687 MB / 0.8762 GB, free: 3.332 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001243/0.6661, allocations: 0.8989 MB / 0.8771 GB, free: 2.43 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001023/0.6671, allocations: 0.7547 MB / 0.8778 GB, free: 1.672 MB / 0.6856 GB Notification: Performance of NFPackage.collectConstants: time 0.0001227/0.6672, allocations: 44 kB / 0.8779 GB, free: 1.629 MB / 0.6856 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003118/0.6704, allocations: 1.74 MB / 0.8796 GB, free: 15.89 MB / 0.7012 GB Notification: Performance of NFScalarize.scalarize: time 0.001409/0.6718, allocations: 1.767 MB / 0.8813 GB, free: 14.12 MB / 0.7012 GB Notification: Performance of NFVerifyModel.verify: time 0.0003709/0.6722, allocations: 360.5 kB / 0.8816 GB, free: 13.76 MB / 0.7012 GB Notification: Performance of NFConvertDAE.convert: time 0.003686/0.6758, allocations: 3.009 MB / 0.8846 GB, free: 10.74 MB / 0.7012 GB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.6759, allocations: 0 / 0.8846 GB, free: 10.74 MB / 0.7012 GB Notification: Performance of FrontEnd: time 1.683e-06/0.6759, allocations: 0 / 0.8846 GB, free: 10.74 MB / 0.7012 GB Notification: Performance of Transformations before backend: time 2.168e-05/0.6759, allocations: 0 / 0.8846 GB, free: 10.74 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: 309 * Number of variables: 309 Notification: Performance of Generate backend data structure: time 0.003666/0.6796, allocations: 2.395 MB / 0.8869 GB, free: 8.285 MB / 0.7012 GB Notification: Performance of prepare preOptimizeDAE: time 3.902e-05/0.6796, allocations: 8.031 kB / 0.8869 GB, free: 8.277 MB / 0.7012 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000733/0.6804, allocations: 297 kB / 0.8872 GB, free: 7.984 MB / 0.7012 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004684/0.6851, allocations: 4.459 MB / 0.8915 GB, free: 3.477 MB / 0.7012 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001033/0.6852, allocations: 126.2 kB / 0.8917 GB, free: 3.352 MB / 0.7012 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002159/0.6854, allocations: 172 kB / 0.8918 GB, free: 3.184 MB / 0.7012 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002094/0.6875, allocations: 1.333 MB / 0.8931 GB, free: 1.785 MB / 0.7012 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.151e-05/0.6875, allocations: 0 / 0.8931 GB, free: 1.785 MB / 0.7012 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.802e-05/0.6876, allocations: 48 kB / 0.8932 GB, free: 1.738 MB / 0.7012 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.555e-05/0.6877, allocations: 28 kB / 0.8932 GB, free: 1.711 MB / 0.7012 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002037/0.6897, allocations: 1.421 MB / 0.8946 GB, free: 288 kB / 0.7012 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008811/0.6985, allocations: 6.765 MB / 0.9012 GB, free: 9.438 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001631/0.7002, allocations: 1.122 MB / 0.9023 GB, free: 8.309 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008087/0.701, allocations: 0.6555 MB / 0.9029 GB, free: 7.645 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 8.268e-05/0.7011, allocations: 36.75 kB / 0.903 GB, free: 7.609 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000994/0.7021, allocations: 0.6662 MB / 0.9036 GB, free: 6.938 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=106): time 4.358e-06/0.7021, allocations: 4 kB / 0.9036 GB, free: 6.934 MB / 0.7169 GB Notification: Performance of matching and sorting (n=106): time 0.003179/0.7053, allocations: 1.99 MB / 0.9056 GB, free: 4.926 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002067/0.7055, allocations: 342.2 kB / 0.9059 GB, free: 4.543 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.4192/1.125, allocations: 7.314 MB / 0.913 GB, free: 178.2 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 0.0003894/1.125, allocations: 69.22 kB / 0.9131 GB, free: 178.2 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008091/1.126, allocations: 0.7511 MB / 0.9138 GB, free: 177.7 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 0.000335/1.126, allocations: 358.1 kB / 0.9142 GB, free: 177.5 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000131/1.126, allocations: 49.03 kB / 0.9142 GB, free: 177.4 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.0001762/1.127, allocations: 415.5 kB / 0.9146 GB, free: 177.1 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005965/1.133, allocations: 4.428 MB / 0.9189 GB, free: 176.1 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004428/1.137, allocations: 5.164 MB / 0.924 GB, free: 174.2 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003691/1.141, allocations: 4.848 MB / 0.9287 GB, free: 170.3 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.317e-05/1.141, allocations: 8 kB / 0.9287 GB, free: 170.3 MB / 0.7169 GB Notification: Performance of matching and sorting (n=303) (initialization): time 0.007555/1.148, allocations: 10.09 MB / 0.9386 GB, free: 160.9 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001432/1.149, allocations: 187.2 kB / 0.9388 GB, free: 160.7 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.994e-05/1.149, allocations: 20 kB / 0.9388 GB, free: 160.7 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.513e-05/1.149, allocations: 40 kB / 0.9388 GB, free: 160.7 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001431/1.15, allocations: 496.3 kB / 0.9393 GB, free: 160.3 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.476e-05/1.15, allocations: 54.72 kB / 0.9393 GB, free: 160.2 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00133/1.151, allocations: 271.4 kB / 0.9396 GB, free: 160 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000163/1.152, allocations: 120.9 kB / 0.9397 GB, free: 159.9 MB / 0.7169 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.001141/1.153, allocations: 1.231 MB / 0.9409 GB, free: 158.7 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001815/1.153, allocations: 176.6 kB / 0.9411 GB, free: 158.5 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002606/1.156, allocations: 2.152 MB / 0.9432 GB, free: 156.3 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.607e-06/1.156, allocations: 11.98 kB / 0.9432 GB, free: 156.3 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.611e-06/1.156, allocations: 0 / 0.9432 GB, free: 156.3 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.028e-05/1.156, allocations: 7.984 kB / 0.9432 GB, free: 156.3 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003839/1.159, allocations: 3.614 MB / 0.9467 GB, free: 152.6 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.238e-06/1.159, allocations: 0 / 0.9467 GB, free: 152.6 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005486/1.16, allocations: 167.7 kB / 0.9469 GB, free: 152.5 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.247e-06/1.16, allocations: 4 kB / 0.9469 GB, free: 152.5 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.938e-05/1.16, allocations: 29.95 kB / 0.9469 GB, free: 152.5 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.721e-06/1.16, allocations: 4 kB / 0.9469 GB, free: 152.4 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/1.16, allocations: 0 / 0.9469 GB, free: 152.4 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00207/1.162, allocations: 2.098 MB / 0.949 GB, free: 150.3 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004729/1.163, allocations: 442.2 kB / 0.9494 GB, free: 149.9 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001693/1.163, allocations: 20 kB / 0.9494 GB, free: 149.9 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000632/1.164, allocations: 76.81 kB / 0.9495 GB, free: 149.8 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001285/1.164, allocations: 68.91 kB / 0.9496 GB, free: 149.7 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.944e-05/1.164, allocations: 43.98 kB / 0.9496 GB, free: 149.7 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.002938/1.167, allocations: 4.603 MB / 0.9541 GB, free: 145.1 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.4e-07/1.167, allocations: 0 / 0.9541 GB, free: 145.1 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.002156/1.169, allocations: 0.9875 MB / 0.9551 GB, free: 144.2 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.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.001892/1.171, allocations: 0.892 MB / 0.9559 GB, free: 143.6 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.005234/1.176, allocations: 7.323 MB / 0.9631 GB, free: 136.2 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.907e-06/1.176, allocations: 4 kB / 0.9631 GB, free: 136.2 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0014/1.177, allocations: 1.958 MB / 0.965 GB, free: 134.3 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001295/1.179, allocations: 316.8 kB / 0.9653 GB, free: 134 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008581/1.187, allocations: 9.131 MB / 0.9742 GB, free: 124.8 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]