Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.HeatTransfer.Windows.Examples.ElectrochromicWindow.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 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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.Examples.ElectrochromicWindow,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.HeatTransfer.Windows.Examples.ElectrochromicWindow") translateModel(Buildings.HeatTransfer.Windows.Examples.ElectrochromicWindow,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.HeatTransfer.Windows.Examples.ElectrochromicWindow") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008247/0.0008247, allocations: 91.77 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.0008826/0.0008827, 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.31/1.31, allocations: 205.4 MB / 222.1 MB, free: 5.637 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.595/1.595, allocations: 292.7 MB / 0.5499 GB, free: 14.54 MB / 462.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.0004872/0.0004873, allocations: 17.09 kB / 0.6737 GB, free: 26.2 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2039/0.2044, allocations: 116.3 MB / 0.7873 GB, free: 11.92 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.HeatTransfer.Windows.Examples.ElectrochromicWindow): time 0.0126/0.217, allocations: 11.67 MB / 0.7987 GB, free: 212 kB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.5961/0.8132, allocations: 144.9 MB / 0.9401 GB, free: 2.551 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002384/0.8156, allocations: 59.56 kB / 0.9402 GB, free: 2.527 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.00553/0.8211, allocations: 1.977 MB / 0.9421 GB, free: 2.117 MB / 0.7169 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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 8.1.4-maint.8.1.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 8.1.4-maint.8.1.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 8.1.4-maint.8.1.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.004056/0.8252, allocations: 1.204 MB / 0.9433 GB, free: 1.801 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.005798/0.831, allocations: 1.549 MB / 0.9448 GB, free: 1.652 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.009575/0.8406, allocations: 6.162 MB / 0.9508 GB, free: 0.9219 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002619/0.8433, allocations: 1.387 MB / 0.9522 GB, free: 0.6758 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004324/0.8476, allocations: 1.764 MB / 0.9539 GB, free: 292 kB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003538/0.8512, allocations: 1.732 MB / 0.9556 GB, free: 15.94 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.0008157/0.852, allocations: 122.2 kB / 0.9557 GB, free: 15.93 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005161/0.8572, allocations: 2.237 MB / 0.9579 GB, free: 15.85 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.003886/0.8611, allocations: 4.444 MB / 0.9622 GB, free: 15.68 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.00144/0.8625, allocations: 0.7655 MB / 0.963 GB, free: 15.5 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.007676/0.8702, allocations: 6.065 MB / 0.9689 GB, free: 12.63 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 6.172e-06/0.8703, allocations: 0 / 0.9689 GB, free: 12.63 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.655e-06/0.8703, allocations: 0 / 0.9689 GB, free: 12.63 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 0.0001845/0.8705, allocations: 0 / 0.9689 GB, free: 12.63 MB / 0.7325 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 569 * Number of variables: 569 Notification: Performance of Generate backend data structure: time 0.008909/0.8794, allocations: 4.585 MB / 0.9734 GB, free: 9.852 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.948e-05/0.8794, allocations: 12.14 kB / 0.9734 GB, free: 9.852 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01347/0.8929, allocations: 2.545 MB / 0.9759 GB, free: 8.781 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02294/0.9159, allocations: 14.58 MB / 0.9901 GB, free: 6.328 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002118/0.9162, allocations: 211.6 kB / 0.9903 GB, free: 6.32 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008726/0.917, allocations: 296 kB / 0.9906 GB, free: 6.32 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006942/0.924, allocations: 3.458 MB / 0.994 GB, free: 5.254 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.794e-05/0.924, allocations: 10.59 kB / 0.994 GB, free: 5.246 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002146/0.9243, allocations: 88.91 kB / 0.9941 GB, free: 5.246 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.595e-05/0.9243, allocations: 52.03 kB / 0.9941 GB, free: 5.246 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006045/0.9304, allocations: 3.328 MB / 0.9974 GB, free: 4.547 MB / 0.7325 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02529/0.9557, allocations: 21.64 MB / 1.019 GB, free: 3.574 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00601/0.9617, allocations: 2.763 MB / 1.021 GB, free: 1.672 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003547/0.9653, allocations: 1.792 MB / 1.023 GB, free: 488 kB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004207/0.9657, allocations: 430.2 kB / 1.023 GB, free: 8 kB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003922/0.9697, allocations: 1.977 MB / 1.025 GB, free: 14.52 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=173): time 2.946e-06/0.9697, allocations: 0 / 1.025 GB, free: 14.52 MB / 0.7637 GB Notification: Performance of matching and sorting (n=173): time 0.01926/0.9889, allocations: 7.289 MB / 1.032 GB, free: 8.73 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002843/0.9893, allocations: 421 kB / 1.033 GB, free: 8.293 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03046/1.02, allocations: 21.47 MB / 1.054 GB, free: 8.305 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 0.0008877/1.021, allocations: 91.52 kB / 1.054 GB, free: 8.254 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.002171/1.023, allocations: 1.625 MB / 1.055 GB, free: 7.383 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009972/1.024, allocations: 0.5802 MB / 1.056 GB, free: 6.883 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003773/1.024, allocations: 74 kB / 1.056 GB, free: 6.867 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0003082/1.025, allocations: 470.2 kB / 1.057 GB, free: 6.461 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01393/1.039, allocations: 13.4 MB / 1.07 GB, free: 11.04 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01581/1.054, allocations: 14.54 MB / 1.084 GB, free: 12.02 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01514/1.07, allocations: 13.8 MB / 1.097 GB, free: 14.19 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.826e-05/1.07, allocations: 8 kB / 1.097 GB, free: 14.18 MB / 0.8262 GB Notification: Performance of matching and sorting (n=477) (initialization): time 0.03886/1.109, allocations: 29.49 MB / 1.126 GB, free: 0.6328 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 0.000933/1.109, allocations: 1.25 MB / 1.127 GB, free: 14.91 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01459/1.124, allocations: 6.35 MB / 1.134 GB, free: 8.512 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04003/1.164, allocations: 5.475 MB / 1.139 GB, free: 3.047 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00475/1.169, allocations: 0.9347 MB / 1.14 GB, free: 2.113 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007297/1.176, allocations: 6.366 MB / 1.146 GB, free: 11.32 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005091/1.181, allocations: 0.6181 MB / 1.147 GB, free: 10.7 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008461/1.182, allocations: 210.9 kB / 1.147 GB, free: 10.5 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 9.878e-06/1.182, allocations: 4 kB / 1.147 GB, free: 10.5 MB / 0.8731 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03271/1.215, allocations: 29.2 MB / 1.175 GB, free: 13.25 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01445/1.23, allocations: 6.188 MB / 1.181 GB, free: 7.012 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001605/1.231, allocations: 0.545 MB / 1.182 GB, free: 6.461 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004957/1.236, allocations: 0.9856 MB / 1.183 GB, free: 5.477 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008641/1.245, allocations: 8.339 MB / 1.191 GB, free: 12.6 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004968/1.25, allocations: 0.5299 MB / 1.192 GB, free: 12.07 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008435/1.251, allocations: 214.6 kB / 1.192 GB, free: 11.87 MB / 0.92 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 150 * 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 (413): * Single equations (assignments): 408 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 6} * Non-linear torn systems: 2 {6 22,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.004156/1.255, allocations: 2.833 MB / 1.194 GB, free: 9.027 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001026/1.256, allocations: 347.3 kB / 1.195 GB, free: 8.684 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01328/1.269, allocations: 5.6 MB / 1.2 GB, free: 3.047 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.023e-05/1.269, allocations: 16 kB / 1.2 GB, free: 3.031 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.198e-05/1.269, allocations: 7.953 kB / 1.2 GB, free: 3.023 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.754e-05/1.269, allocations: 7.969 kB / 1.2 GB, free: 3.016 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01875/1.288, allocations: 9.176 MB / 1.209 GB, free: 9.723 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.02912/1.317, allocations: 6.115 MB / 1.215 GB, free: 3.613 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001995/1.319, allocations: 335.6 kB / 1.216 GB, free: 3.285 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.04822/1.367, allocations: 7.821 MB / 1.223 GB, free: 11.5 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005264/1.368, allocations: 67.95 kB / 1.223 GB, free: 11.43 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007871/1.376, allocations: 6.35 MB / 1.229 GB, free: 4.656 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/1.376, allocations: 3.938 kB / 1.229 GB, free: 4.652 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0118/1.388, allocations: 4.923 MB / 1.234 GB, free: 15.68 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00237/1.39, allocations: 0.8861 MB / 1.235 GB, free: 14.77 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009492/1.391, allocations: 36 kB / 1.235 GB, free: 14.74 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00279/1.394, allocations: 251 kB / 1.235 GB, free: 14.5 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003351/1.394, allocations: 124 kB / 1.236 GB, free: 14.38 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002478/1.394, allocations: 83.95 kB / 1.236 GB, free: 14.3 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.01308/1.408, allocations: 13.4 MB / 1.249 GB, free: 0.8906 MB / 0.9669 GB Notification: Performance of sort global known variables: time 6.21e-07/1.408, allocations: 0 / 1.249 GB, free: 0.8906 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.009985/1.418, allocations: 2.371 MB / 1.251 GB, free: 14.53 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (125): * Single equations (assignments): 118 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 6} * Non-linear torn systems: 2 {6 26,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.003773/1.421, allocations: 1.032 MB / 1.252 GB, free: 13.73 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.4551/1.876, allocations: 34.32 MB / 1.286 GB, free: 274.9 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 9.228e-06/1.877, allocations: 2.969 kB / 1.286 GB, free: 274.9 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.006952/1.883, allocations: 3.5 MB / 1.289 GB, free: 274.7 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004008/1.888, allocations: 0.6255 MB / 1.29 GB, free: 274.6 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0308/1.918, allocations: 23.97 MB / 1.313 GB, free: 268.2 MB / 0.9981 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]