Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic.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.BaseClasses.Examples.WindowRadiationElectrochromic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic") translateModel(Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009023/0.0009023, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.00858/0.00858, allocations: 170 kB / 16.26 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.368/1.368, allocations: 205.4 MB / 222.4 MB, free: 5.562 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.654/1.654, allocations: 292.7 MB / 0.5502 GB, free: 14.47 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.0005205/0.0005206, allocations: 16.98 kB / 0.6743 GB, free: 25.68 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2357/0.2362, allocations: 116.3 MB / 0.7879 GB, free: 11.57 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic): time 0.008231/0.2445, allocations: 6.529 MB / 0.7943 GB, free: 5 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.6331/0.8777, allocations: 151.5 MB / 0.9422 GB, free: 1.598 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001312/0.879, allocations: 31.97 kB / 0.9422 GB, free: 1.582 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.004364/0.8834, allocations: 1.784 MB / 0.9439 GB, free: 1.277 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.003089/0.8865, allocations: 0.9763 MB / 0.9449 GB, free: 1.086 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.003561/0.8901, allocations: 1.191 MB / 0.9461 GB, free: 1.008 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.007446/0.8975, allocations: 5.042 MB / 0.951 GB, free: 0.6602 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002018/0.8996, allocations: 1.186 MB / 0.9521 GB, free: 400 kB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003219/0.9028, allocations: 1.221 MB / 0.9533 GB, free: 300 kB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002977/0.9058, allocations: 1.223 MB / 0.9545 GB, free: 268 kB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 0.0006887/0.9065, allocations: 63.75 kB / 0.9546 GB, free: 268 kB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005051/0.9116, allocations: 2.128 MB / 0.9567 GB, free: 184 kB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.004796/0.9164, allocations: 4.068 MB / 0.9606 GB, free: 168 kB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.003764/0.9202, allocations: 1.331 MB / 0.9619 GB, free: 15.87 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.01074/0.931, allocations: 5.624 MB / 0.9674 GB, free: 13.32 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.409e-06/0.931, allocations: 0 / 0.9674 GB, free: 13.32 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.244e-06/0.931, allocations: 0 / 0.9674 GB, free: 13.32 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 0.0001948/0.9312, allocations: 0 / 0.9674 GB, free: 13.32 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: 400 * Number of variables: 400 Notification: Performance of Generate backend data structure: time 0.008604/0.9398, allocations: 3.336 MB / 0.9707 GB, free: 11.18 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.24e-05/0.9399, allocations: 9.75 kB / 0.9707 GB, free: 11.18 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002044/0.9419, allocations: 428.6 kB / 0.9711 GB, free: 10.97 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01123/0.9532, allocations: 12.25 MB / 0.9831 GB, free: 8.551 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001383/0.9533, allocations: 162.9 kB / 0.9832 GB, free: 8.477 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004975/0.9538, allocations: 226.9 kB / 0.9834 GB, free: 8.402 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003991/0.9579, allocations: 2.272 MB / 0.9857 GB, free: 7.184 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.024e-05/0.9579, allocations: 0 / 0.9857 GB, free: 7.184 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001744/0.9581, allocations: 64.75 kB / 0.9857 GB, free: 7.137 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.682e-05/0.9581, allocations: 39.75 kB / 0.9858 GB, free: 7.133 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003472/0.9616, allocations: 2.395 MB / 0.9881 GB, free: 6.098 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01938/0.981, allocations: 14.89 MB / 1.003 GB, free: 11.54 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003025/0.984, allocations: 1.86 MB / 1.004 GB, free: 9.672 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00151/0.9856, allocations: 1.261 MB / 1.006 GB, free: 8.41 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 9.053e-05/0.9857, allocations: 38.34 kB / 1.006 GB, free: 8.383 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001755/0.9874, allocations: 1.262 MB / 1.007 GB, free: 7.102 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=126): time 2.104e-06/0.9875, allocations: 0 / 1.007 GB, free: 7.102 MB / 0.7481 GB Notification: Performance of matching and sorting (n=126): time 0.006765/0.9942, allocations: 3.671 MB / 1.011 GB, free: 3.395 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002386/0.9945, allocations: 358.5 kB / 1.011 GB, free: 2.992 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03043/1.025, allocations: 20.53 MB / 1.031 GB, free: 14.44 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 0.000776/1.026, allocations: 85.7 kB / 1.031 GB, free: 14.35 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.001487/1.027, allocations: 1.137 MB / 1.032 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.000509/1.028, allocations: 436.5 kB / 1.033 GB, free: 12.81 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003365/1.031, allocations: 4.505 MB / 1.037 GB, free: 8.277 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.302e-05/1.031, allocations: 305.1 kB / 1.037 GB, free: 7.977 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.03435/1.066, allocations: 38.65 MB / 1.075 GB, free: 1.332 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.03682/1.102, allocations: 40.04 MB / 1.114 GB, free: 9.047 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.04712/1.15, allocations: 47.67 MB / 1.161 GB, free: 8.949 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.18e-05/1.15, allocations: 8 kB / 1.161 GB, free: 8.941 MB / 0.9044 GB Notification: Performance of matching and sorting (n=1836) (initialization): time 0.09372/1.243, allocations: 90.88 MB / 1.249 GB, free: 13.67 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002645/1.244, allocations: 197.6 kB / 1.25 GB, free: 13.47 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.15e-05/1.244, allocations: 24.28 kB / 1.25 GB, free: 13.45 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006549/1.245, allocations: 108.8 kB / 1.25 GB, free: 13.34 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00271/1.247, allocations: 0.5967 MB / 1.25 GB, free: 12.74 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002116/1.249, allocations: 1.563 MB / 1.252 GB, free: 11.03 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003023/1.252, allocations: 373.2 kB / 1.252 GB, free: 10.67 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004549/1.253, allocations: 154.3 kB / 1.252 GB, free: 10.52 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 83 * Number of states: 0 () * Number of discrete variables: 8 (weaDat.conTim.canRepeatWeatherFile,weaDat.conTimMin.canRepeatWeatherFile,weaDat.conTim.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTimMin.tNext,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (380): * Single equations (assignments): 339 * Array equations: 39 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.003167/1.256, allocations: 2.476 MB / 1.255 GB, free: 8.035 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005474/1.257, allocations: 248.6 kB / 1.255 GB, free: 7.789 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005375/1.262, allocations: 3.362 MB / 1.258 GB, free: 4.414 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.664e-05/1.262, allocations: 8 kB / 1.258 GB, free: 4.406 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/1.262, allocations: 3.984 kB / 1.258 GB, free: 4.402 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.26e-05/1.262, allocations: 7.984 kB / 1.258 GB, free: 4.395 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008892/1.271, allocations: 5.418 MB / 1.264 GB, free: 14.93 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.462e-06/1.271, allocations: 0 / 1.264 GB, free: 14.93 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008205/1.272, allocations: 195.8 kB / 1.264 GB, free: 14.74 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005386/1.272, allocations: 88.7 kB / 1.264 GB, free: 14.65 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001001/1.273, allocations: 39.98 kB / 1.264 GB, free: 14.61 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001875/1.274, allocations: 1.546 MB / 1.265 GB, free: 12.93 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/1.274, allocations: 0 / 1.265 GB, free: 12.93 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00525/1.28, allocations: 3.3 MB / 1.269 GB, free: 9.602 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001634/1.281, allocations: 0.591 MB / 1.269 GB, free: 8.988 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003235/1.282, allocations: 24 kB / 1.269 GB, free: 8.965 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00105/1.283, allocations: 107.9 kB / 1.269 GB, free: 8.859 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002094/1.283, allocations: 84.88 kB / 1.269 GB, free: 8.777 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001338/1.283, allocations: 63.97 kB / 1.269 GB, free: 8.715 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.4343/1.717, allocations: 12.74 MB / 1.282 GB, free: 415.3 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.112e-06/1.717, allocations: 0 / 1.282 GB, free: 415.3 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.005516/1.723, allocations: 1.704 MB / 1.284 GB, free: 415.3 MB / 1.014 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.conTimMin.tNext,weaDat.conTim.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (111): * Single equations (assignments): 107 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002852/1.726, allocations: 0.9551 MB / 1.284 GB, free: 415.1 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.04145/1.767, allocations: 50.81 MB / 1.334 GB, free: 383.2 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 1.055e-05/1.767, allocations: 0 / 1.334 GB, free: 383.2 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.00278/1.77, allocations: 2.671 MB / 1.337 GB, free: 380.7 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00234/1.773, allocations: 430.9 kB / 1.337 GB, free: 380.3 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02138/1.794, allocations: 21.1 MB / 1.358 GB, free: 361.1 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004786/1.799, allocations: 4.61 MB / 1.362 GB, free: 357.6 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.002069/1.801, allocations: 0.6436 MB / 1.363 GB, free: 357.1 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005499/1.801, allocations: 202.1 kB / 1.363 GB, free: 356.9 MB / 1.014 GB Notification: Performance of SimCode: time 1.282e-06/1.802, allocations: 4 kB / 1.363 GB, free: 356.9 MB / 1.014 GB Notification: Performance of Templates: time 0.07952/1.881, allocations: 49.65 MB / 1.412 GB, free: 307.5 MB / 1.014 GB make -j1 -f Buildings_8_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic.makefile Environment - environmentSimulation: (rm -f Buildings_8_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic.pipe ; mkfifo Buildings_8_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic.pipe ; head -c 1048576 < Buildings_8_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic.pipe >> ../files/Buildings_8_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic.sim & ./Buildings_8_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic.pipe 2>&1) Environment - environmentSimulation: