Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.HeatTransfer.Windows.Examples.ElectrochromicWindow.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: translateModel(Buildings.HeatTransfer.Windows.Examples.ElectrochromicWindow,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.HeatTransfer.Windows.Examples.ElectrochromicWindow") translateModel(Buildings.HeatTransfer.Windows.Examples.ElectrochromicWindow,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.HeatTransfer.Windows.Examples.ElectrochromicWindow") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 1.642/1.642, allocations: 287.5 MB / 302.6 MB, free: 8.316 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001014/0.001014, allocations: 188.6 kB / 371.2 MB, free: 10.82 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.53/1.53, allocations: 205.4 MB / 0.6298 GB, free: 10.55 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008381/0.0008382, allocations: 91.42 kB / 0.7432 GB, free: 6.555 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003626/0.0003626, allocations: 19.45 kB / 0.8661 GB, free: 140.9 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2059/0.2063, allocations: 115.3 MB / 0.9787 GB, free: 28.19 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.HeatTransfer.Windows.Examples.ElectrochromicWindow): time 0.00943/0.2157, allocations: 11.66 MB / 0.9901 GB, free: 16.48 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.612/0.8277, allocations: 144.8 MB / 1.132 GB, free: 0.9023 MB / 0.6823 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002925/0.8307, allocations: 59 kB / 1.132 GB, free: 0.8789 MB / 0.6823 GB Notification: Performance of NFTyping.typeComponents: time 0.005253/0.836, allocations: 1.969 MB / 1.133 GB, free: 484 kB / 0.6823 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0.0/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.0.0/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.0.0/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.003707/0.8397, allocations: 1.203 MB / 1.135 GB, free: 160 kB / 0.6823 GB Notification: Performance of NFTyping.typeClassSections: time 0.004505/0.8442, allocations: 1.554 MB / 1.136 GB, free: 12 kB / 0.6823 GB Notification: Performance of NFFlatten.flatten: time 0.0068/0.851, allocations: 6.309 MB / 1.142 GB, free: 15.23 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003104/0.8541, allocations: 1.78 MB / 1.144 GB, free: 14.82 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004044/0.8582, allocations: 1.762 MB / 1.146 GB, free: 14.42 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003306/0.8615, allocations: 1.728 MB / 1.147 GB, free: 13.77 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 0.0004747/0.862, allocations: 118.4 kB / 1.148 GB, free: 13.77 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004783/0.8668, allocations: 2.231 MB / 1.15 GB, free: 13.11 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 0.004111/0.8709, allocations: 4.453 MB / 1.154 GB, free: 12.13 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 0.001374/0.8723, allocations: 0.7636 MB / 1.155 GB, free: 11.95 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.008673/0.881, allocations: 6.054 MB / 1.161 GB, free: 8.598 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.881, allocations: 0 / 1.161 GB, free: 8.598 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.344e-06/0.881, allocations: 0 / 1.161 GB, free: 8.598 MB / 0.698 GB Notification: Performance of Transformations before backend: time 0.0001177/0.8812, allocations: 0 / 1.161 GB, free: 8.598 MB / 0.698 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.009148/0.8903, allocations: 4.553 MB / 1.165 GB, free: 5.445 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 5.103e-05/0.8904, allocations: 13.11 kB / 1.165 GB, free: 5.441 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01608/0.9065, allocations: 2.537 MB / 1.168 GB, free: 4.363 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03091/0.9374, allocations: 14.7 MB / 1.182 GB, free: 10.57 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002508/0.9377, allocations: 212.2 kB / 1.182 GB, free: 10.36 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001019/0.9388, allocations: 296 kB / 1.183 GB, free: 10.07 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008317/0.9471, allocations: 3.718 MB / 1.186 GB, free: 6.215 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.282e-05/0.9472, allocations: 0 / 1.186 GB, free: 6.215 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002484/0.9474, allocations: 92 kB / 1.186 GB, free: 6.125 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.403e-05/0.9475, allocations: 55.94 kB / 1.186 GB, free: 6.07 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00762/0.9551, allocations: 3.584 MB / 1.19 GB, free: 2.469 MB / 0.7136 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.03178/0.9869, allocations: 21.65 MB / 1.211 GB, free: 12.11 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007729/0.9947, allocations: 3.133 MB / 1.214 GB, free: 8.965 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00484/0.9996, allocations: 2.164 MB / 1.216 GB, free: 6.797 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005879/1, allocations: 425.6 kB / 1.217 GB, free: 6.309 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005389/1.006, allocations: 2.245 MB / 1.219 GB, free: 4.039 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=173): time 5.22e-06/1.006, allocations: 4 kB / 1.219 GB, free: 4.035 MB / 0.7448 GB Notification: Performance of matching and sorting (n=173): time 0.0242/1.03, allocations: 8.02 MB / 1.227 GB, free: 11.93 MB / 0.7605 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003155/1.03, allocations: 418.3 kB / 1.227 GB, free: 11.46 MB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03537/1.066, allocations: 21.46 MB / 1.248 GB, free: 5.977 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 0.0009079/1.067, allocations: 89.7 kB / 1.248 GB, free: 5.883 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 0.002885/1.069, allocations: 1.623 MB / 1.25 GB, free: 4.25 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 0.001108/1.071, allocations: 0.5738 MB / 1.25 GB, free: 3.668 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008381/1.071, allocations: 72 kB / 1.25 GB, free: 3.598 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0005141/1.072, allocations: 478 kB / 1.251 GB, free: 3.125 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01785/1.09, allocations: 13.65 MB / 1.264 GB, free: 5.469 MB / 0.7917 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01831/1.108, allocations: 14.81 MB / 1.278 GB, free: 6.176 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02344/1.132, allocations: 17.05 MB / 1.295 GB, free: 4.617 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.147e-05/1.132, allocations: 8 kB / 1.295 GB, free: 4.609 MB / 0.823 GB Notification: Performance of matching and sorting (n=477) (initialization): time 0.04169/1.174, allocations: 30.03 MB / 1.324 GB, free: 6.523 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 0.001066/1.175, allocations: 1.255 MB / 1.326 GB, free: 4.797 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01744/1.192, allocations: 6.874 MB / 1.332 GB, free: 13.87 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04714/1.239, allocations: 5.473 MB / 1.338 GB, free: 8.379 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005352/1.245, allocations: 0.9321 MB / 1.339 GB, free: 7.445 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008505/1.253, allocations: 6.373 MB / 1.345 GB, free: 0.6406 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005915/1.259, allocations: 0.6128 MB / 1.345 GB, free: 24 kB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001104/1.26, allocations: 215.9 kB / 1.346 GB, free: 15.81 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.064e-05/1.26, allocations: 4 kB / 1.346 GB, free: 15.81 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03726/1.298, allocations: 29.73 MB / 1.375 GB, free: 2.027 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01602/1.314, allocations: 6.715 MB / 1.381 GB, free: 11.26 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001912/1.316, allocations: 0.5578 MB / 1.382 GB, free: 10.7 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00542/1.321, allocations: 0.9789 MB / 1.383 GB, free: 9.715 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009059/1.33, allocations: 8.341 MB / 1.391 GB, free: 0.8242 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004927/1.335, allocations: 0.5167 MB / 1.391 GB, free: 312 kB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006698/1.336, allocations: 215.9 kB / 1.392 GB, free: 96 kB / 0.9167 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.003981/1.34, allocations: 2.833 MB / 1.394 GB, free: 13.24 MB / 0.9323 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009198/1.341, allocations: 347.3 kB / 1.395 GB, free: 12.9 MB / 0.9323 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01498/1.356, allocations: 6.119 MB / 1.401 GB, free: 6.738 MB / 0.9323 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.83e-05/1.356, allocations: 20 kB / 1.401 GB, free: 6.719 MB / 0.9323 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.887e-06/1.356, allocations: 0 / 1.401 GB, free: 6.719 MB / 0.9323 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.584e-05/1.356, allocations: 7.969 kB / 1.401 GB, free: 6.711 MB / 0.9323 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02104/1.377, allocations: 9.715 MB / 1.41 GB, free: 12.85 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.03462/1.411, allocations: 6.662 MB / 1.417 GB, free: 6.164 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002245/1.414, allocations: 331.5 kB / 1.417 GB, free: 5.84 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.05599/1.47, allocations: 7.824 MB / 1.425 GB, free: 14 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007239/1.471, allocations: 59.89 kB / 1.425 GB, free: 13.94 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008636/1.479, allocations: 6.365 MB / 1.431 GB, free: 7.141 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/1.479, allocations: 0 / 1.431 GB, free: 7.141 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01373/1.493, allocations: 5.462 MB / 1.436 GB, free: 1.629 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002832/1.496, allocations: 0.8822 MB / 1.437 GB, free: 0.7227 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00105/1.497, allocations: 35.98 kB / 1.437 GB, free: 0.6875 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00321/1.5, allocations: 247.1 kB / 1.437 GB, free: 460 kB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003166/1.5, allocations: 117.1 kB / 1.438 GB, free: 344 kB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002397/1.501, allocations: 87.94 kB / 1.438 GB, free: 256 kB / 0.9636 GB Notification: Performance of sorting global known variables: time 0.4763/1.977, allocations: 13.38 MB / 1.451 GB, free: 354.7 MB / 0.9636 GB Notification: Performance of sort global known variables: time 6.51e-07/1.977, allocations: 2.594 kB / 1.451 GB, free: 354.7 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.01004/1.987, allocations: 2.366 MB / 1.453 GB, free: 354.6 MB / 0.9636 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.003216/1.99, allocations: 1.018 MB / 1.454 GB, free: 354.4 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.04372/2.034, allocations: 35.13 MB / 1.488 GB, free: 340.2 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.223e-05/2.034, allocations: 0 / 1.488 GB, free: 340.2 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 0.00629/2.04, allocations: 3.76 MB / 1.492 GB, free: 336.8 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003855/2.044, allocations: 0.6208 MB / 1.493 GB, free: 336.3 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03197/2.076, allocations: 24.23 MB / 1.516 GB, free: 314.4 MB / 0.9636 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]