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.001348/0.001348, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.00165/0.00165, allocations: 197.9 kB / 16.25 MB, free: 6.617 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.37/1.37, allocations: 205.1 MB / 222.1 MB, free: 4.699 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.647/1.647, allocations: 292.3 MB / 0.5485 GB, free: 13.64 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.001314/0.001314, allocations: 62.33 kB / 0.671 GB, free: 26.17 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2556/0.2569, allocations: 114.5 MB / 0.7828 GB, free: 13.94 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic): time 0.009038/0.266, allocations: 7.007 MB / 0.7897 GB, free: 6.887 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.7105/0.9765, allocations: 156.6 MB / 0.9427 GB, free: 4.895 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002036/0.9786, allocations: 30.88 kB / 0.9427 GB, free: 4.895 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.006249/0.9848, allocations: 1.775 MB / 0.9444 GB, free: 4.863 MB / 0.7325 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.003156/0.988, allocations: 0.9736 MB / 0.9454 GB, free: 4.836 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.004408/0.9924, allocations: 1.238 MB / 0.9466 GB, free: 4.793 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.008778/1.001, allocations: 5.065 MB / 0.9515 GB, free: 4.492 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002993/1.004, allocations: 1.252 MB / 0.9528 GB, free: 4.227 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004642/1.009, allocations: 1.675 MB / 0.9544 GB, free: 4.129 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003867/1.013, allocations: 1.512 MB / 0.9559 GB, free: 4.094 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.0006983/1.014, allocations: 270.2 kB / 0.9561 GB, free: 4.094 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005923/1.019, allocations: 2.439 MB / 0.9585 GB, free: 4.012 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.004363/1.024, allocations: 4.328 MB / 0.9627 GB, free: 3.992 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.00233/1.026, allocations: 1.605 MB / 0.9643 GB, free: 3.574 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.01114/1.037, allocations: 5.9 MB / 0.9701 GB, free: 2.852 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 6.292e-06/1.037, allocations: 0 / 0.9701 GB, free: 2.852 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.194e-06/1.037, allocations: 0 / 0.9701 GB, free: 2.852 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 0.0002024/1.038, allocations: 0 / 0.9701 GB, free: 2.852 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.008733/1.046, allocations: 3.999 MB / 0.974 GB, free: 1.031 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.606e-05/1.046, allocations: 9.594 kB / 0.974 GB, free: 1.031 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001283/1.048, allocations: 415.2 kB / 0.9744 GB, free: 0.8477 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0145/1.062, allocations: 12.48 MB / 0.9866 GB, free: 14.71 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001579/1.062, allocations: 163.4 kB / 0.9867 GB, free: 14.64 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004212/1.063, allocations: 229.4 kB / 0.9869 GB, free: 14.57 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004322/1.067, allocations: 2.268 MB / 0.9892 GB, free: 13.64 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.503e-05/1.067, allocations: 6.562 kB / 0.9892 GB, free: 13.64 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001667/1.067, allocations: 61.53 kB / 0.9892 GB, free: 13.6 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.059e-05/1.067, allocations: 35.28 kB / 0.9892 GB, free: 13.6 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003602/1.071, allocations: 2.38 MB / 0.9916 GB, free: 12.56 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02101/1.092, allocations: 14.78 MB / 1.006 GB, free: 4.062 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00308/1.095, allocations: 1.855 MB / 1.008 GB, free: 2.203 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001406/1.097, allocations: 1.242 MB / 1.009 GB, free: 0.9609 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001048/1.097, allocations: 38.27 kB / 1.009 GB, free: 0.9297 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001742/1.098, allocations: 1.258 MB / 1.01 GB, free: 15.66 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=126): time 2.585e-06/1.099, allocations: 0 / 1.01 GB, free: 15.66 MB / 0.7637 GB Notification: Performance of matching and sorting (n=126): time 0.007173/1.106, allocations: 3.64 MB / 1.014 GB, free: 11.98 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002393/1.106, allocations: 362.5 kB / 1.014 GB, free: 11.57 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03073/1.137, allocations: 20.52 MB / 1.034 GB, free: 7.031 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 0.001074/1.138, allocations: 81.7 kB / 1.034 GB, free: 6.945 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.001975/1.14, allocations: 1.137 MB / 1.035 GB, free: 5.82 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006977/1.14, allocations: 447.9 kB / 1.036 GB, free: 5.391 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004251/1.145, allocations: 4.9 MB / 1.041 GB, free: 484 kB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001279/1.145, allocations: 305.1 kB / 1.041 GB, free: 176 kB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.03356/1.178, allocations: 38.63 MB / 1.079 GB, free: 9.531 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.03719/1.216, allocations: 40.03 MB / 1.118 GB, free: 1.238 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.04594/1.262, allocations: 47.65 MB / 1.164 GB, free: 1.109 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.257e-05/1.262, allocations: 8 kB / 1.164 GB, free: 1.102 MB / 0.9044 GB Notification: Performance of matching and sorting (n=1836) (initialization): time 0.09811/1.36, allocations: 90.85 MB / 1.253 GB, free: 5.887 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 0.000315/1.36, allocations: 205.9 kB / 1.253 GB, free: 5.68 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.354e-05/1.36, allocations: 20 kB / 1.253 GB, free: 5.66 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006421/1.361, allocations: 112.8 kB / 1.253 GB, free: 5.547 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002967/1.364, allocations: 0.585 MB / 1.254 GB, free: 4.961 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002238/1.366, allocations: 1.677 MB / 1.256 GB, free: 3.141 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004059/1.37, allocations: 361.8 kB / 1.256 GB, free: 2.789 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006213/1.371, allocations: 149 kB / 1.256 GB, free: 2.648 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.00366/1.375, allocations: 2.483 MB / 1.258 GB, free: 160 kB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006696/1.375, allocations: 252.8 kB / 1.259 GB, free: 15.9 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00522/1.38, allocations: 3.342 MB / 1.262 GB, free: 12.54 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.662e-05/1.381, allocations: 15.94 kB / 1.262 GB, free: 12.53 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.316e-06/1.381, allocations: 0 / 1.262 GB, free: 12.53 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.37e-05/1.381, allocations: 3.984 kB / 1.262 GB, free: 12.52 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008946/1.39, allocations: 5.4 MB / 1.267 GB, free: 7.074 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.025e-06/1.39, allocations: 0 / 1.267 GB, free: 7.074 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008617/1.39, allocations: 191.8 kB / 1.267 GB, free: 6.887 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004696/1.391, allocations: 84.66 kB / 1.268 GB, free: 6.801 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.198e-05/1.391, allocations: 31.98 kB / 1.268 GB, free: 6.77 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001977/1.393, allocations: 1.658 MB / 1.269 GB, free: 4.969 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/1.393, allocations: 0 / 1.269 GB, free: 4.969 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005469/1.398, allocations: 3.269 MB / 1.272 GB, free: 1.672 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001096/1.4, allocations: 0.5209 MB / 1.273 GB, free: 1.129 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003638/1.4, allocations: 35.92 kB / 1.273 GB, free: 1.094 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009961/1.401, allocations: 83.91 kB / 1.273 GB, free: 1.012 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002295/1.401, allocations: 95.08 kB / 1.273 GB, free: 0.918 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001285/1.401, allocations: 59.97 kB / 1.273 GB, free: 0.8594 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.01133/1.413, allocations: 12.74 MB / 1.286 GB, free: 4.117 MB / 1.029 GB Notification: Performance of sort global known variables: time 3.7e-07/1.413, allocations: 0 / 1.286 GB, free: 4.117 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.006047/1.419, allocations: 1.71 MB / 1.287 GB, free: 2.41 MB / 1.029 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.003369/1.422, allocations: 0.9566 MB / 1.288 GB, free: 1.66 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.4093/1.831, allocations: 51.55 MB / 1.339 GB, free: 436.4 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 1.413e-05/1.832, allocations: 2.562 kB / 1.339 GB, free: 436.4 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.003283/1.835, allocations: 2.656 MB / 1.341 GB, free: 435.2 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002849/1.838, allocations: 460.4 kB / 1.342 GB, free: 435 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0226/1.86, allocations: 21.03 MB / 1.362 GB, free: 416.4 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004458/1.865, allocations: 4.605 MB / 1.367 GB, free: 412.8 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.002015/1.867, allocations: 0.6306 MB / 1.367 GB, free: 412.4 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005269/1.867, allocations: 206.9 kB / 1.367 GB, free: 412.2 MB / 1.045 GB Notification: Performance of SimCode: time 1.523e-06/1.867, allocations: 0 / 1.367 GB, free: 412.2 MB / 1.045 GB Notification: Performance of Templates: time 0.1609/2.028, allocations: 58 MB / 1.424 GB, free: 356.5 MB / 1.045 GB make -j1 -f Buildings_8_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic.makefile (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)