Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.HeatTransfer.Windows.Examples.ElectrochromicWindow.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/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.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: translateModel(Buildings.HeatTransfer.Windows.Examples.ElectrochromicWindow,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.HeatTransfer.Windows.Examples.ElectrochromicWindow") translateModel(Buildings.HeatTransfer.Windows.Examples.ElectrochromicWindow,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.HeatTransfer.Windows.Examples.ElectrochromicWindow") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.66/1.66, allocations: 288.4 MB / 303.4 MB, free: 8.102 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.000923/0.000923, allocations: 180.4 kB / 372 MB, free: 10.21 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.42/1.42, allocations: 205.4 MB / 0.6307 GB, free: 9.961 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.0008498/0.0008497, allocations: 78.44 kB / 0.7441 GB, free: 5.891 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.000378/0.0003781, allocations: 11.69 kB / 0.867 GB, free: 142 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.202/0.2024, allocations: 115.3 MB / 0.9796 GB, free: 27.65 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.HeatTransfer.Windows.Examples.ElectrochromicWindow): time 0.01377/0.2162, allocations: 11.67 MB / 0.991 GB, free: 15.94 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.5784/0.7947, allocations: 144.8 MB / 1.132 GB, free: 1.5 MB / 0.6823 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002731/0.7975, allocations: 57.22 kB / 1.132 GB, free: 1.48 MB / 0.6823 GB Notification: Performance of NFTyping.typeComponents: time 0.005488/0.803, allocations: 1.973 MB / 1.134 GB, free: 1.07 MB / 0.6823 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.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 8.0.1-maint.8.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 8.0.1-maint.8.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 8.0.1-maint.8.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.0046/0.8076, allocations: 1.199 MB / 1.136 GB, free: 0.7617 MB / 0.6823 GB Notification: Performance of NFTyping.typeClassSections: time 0.005301/0.8129, allocations: 1.552 MB / 1.137 GB, free: 492 kB / 0.6823 GB Notification: Performance of NFFlatten.flatten: time 0.007542/0.8205, allocations: 6.171 MB / 1.143 GB, free: 15.4 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002744/0.8233, allocations: 1.382 MB / 1.144 GB, free: 14.93 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003895/0.8272, allocations: 1.76 MB / 1.146 GB, free: 14.26 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003686/0.8309, allocations: 1.733 MB / 1.148 GB, free: 13.48 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 0.0008654/0.8318, allocations: 120.8 kB / 1.148 GB, free: 13.48 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006086/0.8379, allocations: 2.229 MB / 1.15 GB, free: 12.83 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 0.006/0.8439, allocations: 4.451 MB / 1.155 GB, free: 11.86 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 0.002116/0.8461, allocations: 0.7766 MB / 1.155 GB, free: 11.66 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.009184/0.8553, allocations: 6.053 MB / 1.161 GB, free: 8.191 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 5.55e-06/0.8553, allocations: 0 / 1.161 GB, free: 8.191 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.315e-06/0.8553, allocations: 0 / 1.161 GB, free: 8.191 MB / 0.698 GB Notification: Performance of Transformations before backend: time 0.0002153/0.8556, allocations: 0 / 1.161 GB, free: 8.191 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.009841/0.8654, allocations: 4.603 MB / 1.166 GB, free: 4.973 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 3.676e-05/0.8655, allocations: 11.19 kB / 1.166 GB, free: 4.973 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01615/0.8816, allocations: 2.533 MB / 1.168 GB, free: 3.898 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02771/0.9094, allocations: 14.58 MB / 1.182 GB, free: 10.19 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002344/0.9097, allocations: 216.2 kB / 1.183 GB, free: 9.973 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009944/0.9107, allocations: 296 kB / 1.183 GB, free: 9.684 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008697/0.9194, allocations: 3.457 MB / 1.186 GB, free: 6.094 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.53e-05/0.9194, allocations: 0 / 1.186 GB, free: 6.094 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002903/0.9198, allocations: 95.98 kB / 1.186 GB, free: 6 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.179e-05/0.9198, allocations: 59.89 kB / 1.186 GB, free: 5.941 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007316/0.9271, allocations: 3.326 MB / 1.19 GB, free: 2.598 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.02965/0.9568, allocations: 21.64 MB / 1.211 GB, free: 12.25 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008022/0.9649, allocations: 2.759 MB / 1.213 GB, free: 9.469 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004504/0.9694, allocations: 1.783 MB / 1.215 GB, free: 7.68 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006266/0.9701, allocations: 429.5 kB / 1.216 GB, free: 7.191 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005116/0.9752, allocations: 1.991 MB / 1.218 GB, free: 5.172 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=173): time 4.91e-06/0.9753, allocations: 0 / 1.218 GB, free: 5.172 MB / 0.7448 GB Notification: Performance of matching and sorting (n=173): time 0.02387/0.9992, allocations: 7.293 MB / 1.225 GB, free: 13.8 MB / 0.7605 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002575/0.9995, allocations: 414.3 kB / 1.225 GB, free: 13.34 MB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03346/1.033, allocations: 21.47 MB / 1.246 GB, free: 7.84 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 0.001045/1.034, allocations: 85.7 kB / 1.246 GB, free: 7.75 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 0.003031/1.037, allocations: 1.612 MB / 1.248 GB, free: 6.125 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 0.001186/1.038, allocations: 0.5892 MB / 1.248 GB, free: 5.527 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009819/1.039, allocations: 72 kB / 1.248 GB, free: 5.457 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0005706/1.04, allocations: 470 kB / 1.249 GB, free: 4.992 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01645/1.056, allocations: 13.39 MB / 1.262 GB, free: 7.59 MB / 0.7917 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01732/1.074, allocations: 14.54 MB / 1.276 GB, free: 8.57 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01665/1.09, allocations: 13.79 MB / 1.29 GB, free: 10.75 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.877e-05/1.091, allocations: 8 kB / 1.29 GB, free: 10.74 MB / 0.823 GB Notification: Performance of matching and sorting (n=477) (initialization): time 0.04041/1.131, allocations: 29.49 MB / 1.318 GB, free: 13.19 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 0.00116/1.132, allocations: 1.262 MB / 1.32 GB, free: 11.46 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01825/1.15, allocations: 6.343 MB / 1.326 GB, free: 5.059 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04867/1.199, allocations: 5.475 MB / 1.331 GB, free: 15.57 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005336/1.204, allocations: 0.9399 MB / 1.332 GB, free: 14.63 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00845/1.213, allocations: 6.376 MB / 1.338 GB, free: 7.82 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005639/1.219, allocations: 0.609 MB / 1.339 GB, free: 7.207 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009294/1.22, allocations: 211.9 kB / 1.339 GB, free: 7 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.03e-05/1.22, allocations: 5.562 kB / 1.339 GB, free: 6.996 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.04916/1.269, allocations: 29.2 MB / 1.368 GB, free: 9.738 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01852/1.287, allocations: 6.18 MB / 1.374 GB, free: 3.508 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001924/1.289, allocations: 0.5545 MB / 1.374 GB, free: 2.945 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005555/1.295, allocations: 0.9866 MB / 1.375 GB, free: 1.961 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009007/1.304, allocations: 8.343 MB / 1.383 GB, free: 9.074 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005402/1.309, allocations: 0.5128 MB / 1.384 GB, free: 8.559 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009582/1.31, allocations: 215.9 kB / 1.384 GB, free: 8.348 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.004483/1.315, allocations: 2.829 MB / 1.387 GB, free: 5.5 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001051/1.316, allocations: 355.2 kB / 1.387 GB, free: 5.148 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0148/1.331, allocations: 5.592 MB / 1.393 GB, free: 15.52 MB / 0.9323 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.886e-05/1.331, allocations: 19.95 kB / 1.393 GB, free: 15.5 MB / 0.9323 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.068e-05/1.331, allocations: 3.984 kB / 1.393 GB, free: 15.49 MB / 0.9323 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.081e-05/1.331, allocations: 15.95 kB / 1.393 GB, free: 15.48 MB / 0.9323 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02021/1.351, allocations: 9.176 MB / 1.402 GB, free: 6.152 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.03415/1.385, allocations: 6.112 MB / 1.408 GB, free: 16 kB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002164/1.387, allocations: 339.5 kB / 1.408 GB, free: 15.68 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.05564/1.443, allocations: 7.82 MB / 1.415 GB, free: 7.844 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005024/1.444, allocations: 59.95 kB / 1.416 GB, free: 7.785 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008095/1.452, allocations: 6.355 MB / 1.422 GB, free: 1 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/1.452, allocations: 0 / 1.422 GB, free: 1 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01315/1.465, allocations: 4.923 MB / 1.427 GB, free: 12.03 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002712/1.468, allocations: 0.89 MB / 1.427 GB, free: 11.12 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001069/1.469, allocations: 39.89 kB / 1.427 GB, free: 11.08 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003534/1.472, allocations: 254.4 kB / 1.428 GB, free: 10.83 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000435/1.473, allocations: 121.1 kB / 1.428 GB, free: 10.71 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003599/1.473, allocations: 83.95 kB / 1.428 GB, free: 10.63 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 0.4511/1.924, allocations: 13.38 MB / 1.441 GB, free: 356.7 MB / 0.9636 GB Notification: Performance of sort global known variables: time 4.6e-07/1.924, allocations: 0 / 1.441 GB, free: 356.7 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.01049/1.935, allocations: 2.367 MB / 1.443 GB, free: 356.7 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.003308/1.938, allocations: 1.029 MB / 1.444 GB, free: 356.5 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.04595/1.984, allocations: 34.33 MB / 1.478 GB, free: 346.1 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.108e-05/1.984, allocations: 3.328 kB / 1.478 GB, free: 346.1 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 0.006517/1.991, allocations: 3.501 MB / 1.481 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.00485/1.996, allocations: 0.6345 MB / 1.482 GB, free: 344.3 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03136/2.027, allocations: 23.97 MB / 1.505 GB, free: 325.2 MB / 0.9636 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]