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 2.63/2.63, allocations: 287.5 MB / 302.4 MB, free: 8.324 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.001324/0.001324, allocations: 176.3 kB / 371 MB, free: 10.86 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.128/2.128, allocations: 205.4 MB / 0.6297 GB, free: 10.58 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.001441/0.00144, allocations: 99.25 kB / 0.743 GB, free: 6.578 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004863/0.0004865, allocations: 12.03 kB / 0.8658 GB, free: 140.9 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2115/0.2121, allocations: 115.3 MB / 0.9783 GB, free: 28.37 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.HeatTransfer.Windows.Examples.ElectrochromicWindow): time 0.01593/0.228, allocations: 11.67 MB / 0.9897 GB, free: 16.65 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.8944/1.122, allocations: 144.8 MB / 1.131 GB, free: 0.8828 MB / 0.6823 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003402/1.126, allocations: 58.06 kB / 1.131 GB, free: 0.8633 MB / 0.6823 GB Notification: Performance of NFTyping.typeComponents: time 0.008021/1.134, allocations: 1.972 MB / 1.133 GB, free: 464 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.005609/1.14, allocations: 1.206 MB / 1.134 GB, free: 136 kB / 0.6823 GB Notification: Performance of NFTyping.typeClassSections: time 0.007571/1.147, allocations: 1.557 MB / 1.136 GB, free: 15.98 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 0.01074/1.158, allocations: 6.163 MB / 1.142 GB, free: 15.25 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003972/1.162, allocations: 1.374 MB / 1.143 GB, free: 15 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005588/1.168, allocations: 1.765 MB / 1.145 GB, free: 14.61 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005215/1.173, allocations: 1.731 MB / 1.147 GB, free: 13.95 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 0.00177/1.175, allocations: 122.8 kB / 1.147 GB, free: 13.95 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 0.008157/1.183, allocations: 2.231 MB / 1.149 GB, free: 13.31 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 0.007106/1.19, allocations: 4.448 MB / 1.153 GB, free: 12.34 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 0.002475/1.193, allocations: 0.7624 MB / 1.154 GB, free: 12.16 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.01231/1.205, allocations: 6.052 MB / 1.16 GB, free: 8.805 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 6.963e-06/1.205, allocations: 0 / 1.16 GB, free: 8.805 MB / 0.698 GB Notification: Performance of FrontEnd: time 3.026e-06/1.205, allocations: 4 kB / 1.16 GB, free: 8.801 MB / 0.698 GB Notification: Performance of Transformations before backend: time 0.0002642/1.205, allocations: 2.938 kB / 1.16 GB, free: 8.801 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.0155/1.221, allocations: 4.602 MB / 1.164 GB, free: 5.93 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.782e-05/1.221, allocations: 10.84 kB / 1.164 GB, free: 5.93 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02959/1.251, allocations: 2.535 MB / 1.167 GB, free: 4.852 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04671/1.297, allocations: 14.58 MB / 1.181 GB, free: 11.39 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003621/1.298, allocations: 216.2 kB / 1.181 GB, free: 11.17 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001551/1.299, allocations: 292 kB / 1.182 GB, free: 10.89 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01444/1.314, allocations: 3.461 MB / 1.185 GB, free: 7.293 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.642e-05/1.314, allocations: 4 kB / 1.185 GB, free: 7.289 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004437/1.314, allocations: 88 kB / 1.185 GB, free: 7.203 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.142e-05/1.314, allocations: 55.95 kB / 1.185 GB, free: 7.148 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01324/1.328, allocations: 3.345 MB / 1.188 GB, free: 3.785 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.04648/1.374, allocations: 21.63 MB / 1.21 GB, free: 13.44 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01184/1.386, allocations: 2.765 MB / 1.212 GB, free: 10.66 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007644/1.394, allocations: 1.783 MB / 1.214 GB, free: 8.879 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007239/1.395, allocations: 433.5 kB / 1.214 GB, free: 8.387 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.008226/1.403, allocations: 1.991 MB / 1.216 GB, free: 6.367 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=173): time 4.939e-06/1.403, allocations: 0 / 1.216 GB, free: 6.367 MB / 0.7448 GB Notification: Performance of matching and sorting (n=173): time 0.04014/1.443, allocations: 7.285 MB / 1.223 GB, free: 15 MB / 0.7605 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004368/1.444, allocations: 422.2 kB / 1.224 GB, free: 14.53 MB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.04869/1.492, allocations: 21.46 MB / 1.245 GB, free: 9.039 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 0.001062/1.493, allocations: 97.73 kB / 1.245 GB, free: 8.938 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 0.003051/1.496, allocations: 1.612 MB / 1.246 GB, free: 7.312 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 0.001194/1.498, allocations: 0.5853 MB / 1.247 GB, free: 6.719 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005556/1.498, allocations: 72 kB / 1.247 GB, free: 6.648 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0004658/1.499, allocations: 469.9 kB / 1.248 GB, free: 6.184 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02685/1.526, allocations: 13.39 MB / 1.261 GB, free: 8.789 MB / 0.7917 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0287/1.554, allocations: 14.55 MB / 1.275 GB, free: 9.762 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02749/1.582, allocations: 13.8 MB / 1.288 GB, free: 11.94 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.462e-05/1.582, allocations: 8 kB / 1.288 GB, free: 11.93 MB / 0.823 GB Notification: Performance of matching and sorting (n=477) (initialization): time 0.06545/1.647, allocations: 29.49 MB / 1.317 GB, free: 14.38 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 0.001643/1.649, allocations: 1.255 MB / 1.318 GB, free: 12.66 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.03081/1.68, allocations: 6.347 MB / 1.325 GB, free: 6.254 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.09238/1.772, allocations: 5.473 MB / 1.33 GB, free: 0.7656 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009707/1.782, allocations: 0.9399 MB / 1.331 GB, free: 15.82 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01415/1.796, allocations: 6.366 MB / 1.337 GB, free: 9.023 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009266/1.806, allocations: 0.6051 MB / 1.338 GB, free: 8.414 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001485/1.807, allocations: 211.9 kB / 1.338 GB, free: 8.207 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.472e-05/1.807, allocations: 4 kB / 1.338 GB, free: 8.203 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0617/1.869, allocations: 29.2 MB / 1.366 GB, free: 10.95 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02918/1.898, allocations: 6.187 MB / 1.372 GB, free: 4.707 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003177/1.901, allocations: 0.5462 MB / 1.373 GB, free: 4.152 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01048/1.912, allocations: 0.9828 MB / 1.374 GB, free: 3.168 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01485/1.927, allocations: 8.342 MB / 1.382 GB, free: 10.28 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008778/1.936, allocations: 0.5206 MB / 1.383 GB, free: 9.758 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001456/1.937, allocations: 223.8 kB / 1.383 GB, free: 9.539 MB / 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.006718/1.944, allocations: 2.829 MB / 1.386 GB, free: 6.691 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001275/1.945, allocations: 347.3 kB / 1.386 GB, free: 6.348 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02756/1.973, allocations: 5.6 MB / 1.391 GB, free: 0.707 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.022e-05/1.973, allocations: 19.95 kB / 1.391 GB, free: 0.6875 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.353e-05/1.973, allocations: 3.984 kB / 1.391 GB, free: 0.6836 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.069e-05/1.973, allocations: 7.984 kB / 1.391 GB, free: 0.6758 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03606/2.009, allocations: 9.184 MB / 1.4 GB, free: 7.34 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.06821/2.077, allocations: 6.139 MB / 1.406 GB, free: 1.18 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004129/2.082, allocations: 331.5 kB / 1.407 GB, free: 0.8555 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.1122/2.194, allocations: 7.82 MB / 1.414 GB, free: 9.016 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005786/2.194, allocations: 59.95 kB / 1.414 GB, free: 8.957 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01357/2.208, allocations: 6.357 MB / 1.421 GB, free: 2.168 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.305e-06/2.208, allocations: 0 / 1.421 GB, free: 2.168 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02264/2.231, allocations: 4.915 MB / 1.425 GB, free: 13.2 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003147/2.234, allocations: 0.8861 MB / 1.426 GB, free: 12.29 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0013/2.235, allocations: 39.95 kB / 1.426 GB, free: 12.25 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005833/2.241, allocations: 258.7 kB / 1.426 GB, free: 12 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006735/2.242, allocations: 121.1 kB / 1.427 GB, free: 11.88 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004386/2.242, allocations: 83.95 kB / 1.427 GB, free: 11.8 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 0.6681/2.91, allocations: 13.38 MB / 1.44 GB, free: 356.3 MB / 0.9636 GB Notification: Performance of sort global known variables: time 4.9e-07/2.911, allocations: 0 / 1.44 GB, free: 356.3 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.014/2.925, allocations: 2.367 MB / 1.442 GB, free: 356.3 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.004644/2.929, allocations: 1.027 MB / 1.443 GB, free: 356.2 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.06719/2.996, allocations: 34.33 MB / 1.477 GB, free: 346.1 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.347e-05/2.997, allocations: 3.531 kB / 1.477 GB, free: 346.1 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 0.01055/3.007, allocations: 3.504 MB / 1.48 GB, free: 344.5 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005821/3.013, allocations: 0.6295 MB / 1.481 GB, free: 344.3 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04741/3.06, allocations: 23.97 MB / 1.504 GB, free: 326.3 MB / 0.9636 GB [/var/lib/jenkins1/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]