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/Buildings 8.1.4-maint.8.1.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.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.751/1.751, allocations: 292.3 MB / 308.1 MB, free: 4.258 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.001256/0.001256, allocations: 195.3 kB / 376.9 MB, free: 1.805 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.519/1.519, allocations: 205 MB / 0.6354 GB, free: 9.789 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001054/0.001054, allocations: 100.2 kB / 0.748 GB, free: 61.13 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.00131/0.00131, allocations: 55.92 kB / 0.8704 GB, free: 13.09 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2474/0.2487, allocations: 114.5 MB / 0.9822 GB, free: 10.38 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic): time 0.009633/0.2584, allocations: 7.01 MB / 0.9891 GB, free: 3.324 MB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.6369/0.8953, allocations: 156.9 MB / 1.142 GB, free: 15.32 MB / 0.7605 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002143/0.8975, allocations: 30.69 kB / 1.142 GB, free: 15.31 MB / 0.7605 GB Notification: Performance of NFTyping.typeComponents: time 0.005735/0.9033, allocations: 1.783 MB / 1.144 GB, free: 14.58 MB / 0.7605 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.003202/0.9065, allocations: 0.9717 MB / 1.145 GB, free: 14.02 MB / 0.7605 GB Notification: Performance of NFTyping.typeClassSections: time 0.003362/0.9099, allocations: 1.187 MB / 1.146 GB, free: 13.35 MB / 0.7605 GB Notification: Performance of NFFlatten.flatten: time 0.004885/0.9148, allocations: 5.063 MB / 1.151 GB, free: 11.36 MB / 0.7605 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001622/0.9164, allocations: 1.226 MB / 1.152 GB, free: 10.73 MB / 0.7605 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00235/0.9188, allocations: 1.399 MB / 1.154 GB, free: 10.2 MB / 0.7605 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00192/0.9207, allocations: 1.413 MB / 1.155 GB, free: 9.637 MB / 0.7605 GB Notification: Performance of NFPackage.collectConstants: time 0.0003717/0.9211, allocations: 125.6 kB / 1.155 GB, free: 9.637 MB / 0.7605 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003788/0.9249, allocations: 2.199 MB / 1.157 GB, free: 9.031 MB / 0.7605 GB Notification: Performance of NFScalarize.scalarize: time 0.002875/0.9278, allocations: 4.176 MB / 1.161 GB, free: 8.047 MB / 0.7605 GB Notification: Performance of NFVerifyModel.verify: time 0.001616/0.9294, allocations: 1.425 MB / 1.163 GB, free: 7.137 MB / 0.7605 GB Notification: Performance of NFConvertDAE.convert: time 0.006902/0.9363, allocations: 5.772 MB / 1.168 GB, free: 5.219 MB / 0.7605 GB Notification: Performance of FrontEnd - DAE generated: time 6.002e-06/0.9364, allocations: 0 / 1.168 GB, free: 5.219 MB / 0.7605 GB Notification: Performance of FrontEnd: time 1.352e-06/0.9364, allocations: 0 / 1.168 GB, free: 5.219 MB / 0.7605 GB Notification: Performance of Transformations before backend: time 9.35e-05/0.9365, allocations: 4 kB / 1.168 GB, free: 5.215 MB / 0.7605 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.008336/0.9448, allocations: 3.989 MB / 1.172 GB, free: 2.848 MB / 0.7605 GB Notification: Performance of prepare preOptimizeDAE: time 4.637e-05/0.9449, allocations: 13.56 kB / 1.172 GB, free: 2.844 MB / 0.7605 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001514/0.9464, allocations: 412 kB / 1.173 GB, free: 2.664 MB / 0.7605 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01695/0.9634, allocations: 12.25 MB / 1.185 GB, free: 14.77 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001806/0.9636, allocations: 170 kB / 1.185 GB, free: 14.68 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005263/0.9641, allocations: 224.4 kB / 1.185 GB, free: 14.61 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004098/0.9682, allocations: 2.271 MB / 1.187 GB, free: 13.76 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.875e-05/0.9683, allocations: 0 / 1.187 GB, free: 13.76 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001642/0.9685, allocations: 65.34 kB / 1.187 GB, free: 13.71 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.891e-05/0.9685, allocations: 35.75 kB / 1.187 GB, free: 13.71 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003855/0.9724, allocations: 2.375 MB / 1.19 GB, free: 13.11 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02249/0.9949, allocations: 14.77 MB / 1.204 GB, free: 8.25 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003327/0.9983, allocations: 1.866 MB / 1.206 GB, free: 7.527 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001482/0.9998, allocations: 1.237 MB / 1.207 GB, free: 7.031 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000101/0.9999, allocations: 33.72 kB / 1.207 GB, free: 7.02 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001759/1.002, allocations: 1.261 MB / 1.208 GB, free: 6.617 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=126): time 3.066e-06/1.002, allocations: 0 / 1.208 GB, free: 6.617 MB / 0.7761 GB Notification: Performance of matching and sorting (n=126): time 0.006925/1.009, allocations: 3.645 MB / 1.212 GB, free: 3.715 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002247/1.009, allocations: 359.5 kB / 1.212 GB, free: 3.336 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03314/1.042, allocations: 20.52 MB / 1.232 GB, free: 316 kB / 0.7917 GB Notification: Performance of collectPreVariables (initialization): time 0.0006484/1.043, allocations: 89.7 kB / 1.232 GB, free: 220 kB / 0.7917 GB Notification: Performance of collectInitialEqns (initialization): time 0.001619/1.044, allocations: 1.137 MB / 1.234 GB, free: 15.19 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006198/1.045, allocations: 438.2 kB / 1.234 GB, free: 14.8 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004471/1.049, allocations: 4.901 MB / 1.239 GB, free: 10.35 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 0.0001056/1.05, allocations: 305.7 kB / 1.239 GB, free: 10.05 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.03628/1.086, allocations: 38.65 MB / 1.277 GB, free: 5.234 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.04012/1.126, allocations: 40.07 MB / 1.316 GB, free: 13.6 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.04705/1.173, allocations: 47.65 MB / 1.362 GB, free: 13.48 MB / 0.9323 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.68e-05/1.173, allocations: 4 kB / 1.362 GB, free: 13.47 MB / 0.9323 GB Notification: Performance of matching and sorting (n=1836) (initialization): time 0.5914/1.765, allocations: 90.85 MB / 1.451 GB, free: 254.5 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003668/1.765, allocations: 199.7 kB / 1.451 GB, free: 254.5 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.544e-05/1.765, allocations: 18.83 kB / 1.451 GB, free: 254.5 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000665/1.766, allocations: 111.3 kB / 1.451 GB, free: 254.4 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003205/1.769, allocations: 0.5938 MB / 1.452 GB, free: 254.4 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002137/1.771, allocations: 1.558 MB / 1.454 GB, free: 253 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003872/1.775, allocations: 357 kB / 1.454 GB, free: 252.9 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007583/1.776, allocations: 151.8 kB / 1.454 GB, free: 252.9 MB / 0.9323 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.004003/1.78, allocations: 2.485 MB / 1.456 GB, free: 252.1 MB / 0.9323 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006285/1.781, allocations: 249.9 kB / 1.457 GB, free: 252 MB / 0.9323 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005671/1.786, allocations: 3.346 MB / 1.46 GB, free: 250.9 MB / 0.9323 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.518e-05/1.786, allocations: 10.88 kB / 1.46 GB, free: 250.9 MB / 0.9323 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/1.786, allocations: 0 / 1.46 GB, free: 250.9 MB / 0.9323 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.739e-05/1.786, allocations: 7.656 kB / 1.46 GB, free: 250.9 MB / 0.9323 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01084/1.797, allocations: 5.393 MB / 1.465 GB, free: 249 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.648e-06/1.797, allocations: 0 / 1.465 GB, free: 249 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008161/1.798, allocations: 200.6 kB / 1.465 GB, free: 249 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000505/1.799, allocations: 80.02 kB / 1.466 GB, free: 248.9 MB / 0.9323 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.836e-05/1.799, allocations: 40.38 kB / 1.466 GB, free: 248.9 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001555/1.8, allocations: 1.549 MB / 1.467 GB, free: 247.5 MB / 0.9323 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.754e-06/1.8, allocations: 0.5625 kB / 1.467 GB, free: 247.5 MB / 0.9323 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008429/1.809, allocations: 5.834 MB / 1.473 GB, free: 245.1 MB / 0.9323 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00102/1.81, allocations: 0.5247 MB / 1.473 GB, free: 244.7 MB / 0.9323 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002804/1.81, allocations: 33 kB / 1.473 GB, free: 244.7 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009561/1.811, allocations: 81.44 kB / 1.473 GB, free: 244.7 MB / 0.9323 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002248/1.811, allocations: 89.52 kB / 1.474 GB, free: 244.7 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001159/1.811, allocations: 59.7 kB / 1.474 GB, free: 244.7 MB / 0.9323 GB Notification: Performance of sorting global known variables: time 0.00903/1.82, allocations: 12.75 MB / 1.486 GB, free: 235.6 MB / 0.9323 GB Notification: Performance of sort global known variables: time 3.3e-07/1.82, allocations: 0 / 1.486 GB, free: 235.6 MB / 0.9323 GB Notification: Performance of remove unused functions: time 0.005109/1.826, allocations: 1.713 MB / 1.488 GB, free: 234 MB / 0.9323 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.002418/1.828, allocations: 0.9686 MB / 1.489 GB, free: 233.4 MB / 0.9323 GB Notification: Performance of simCode: created initialization part: time 0.03259/1.861, allocations: 50.79 MB / 1.538 GB, free: 184.8 MB / 0.9323 GB Notification: Performance of simCode: created event and clocks part: time 1.661e-05/1.861, allocations: 4 kB / 1.538 GB, free: 184.8 MB / 0.9323 GB Notification: Performance of simCode: created simulation system equations: time 0.003/1.864, allocations: 2.648 MB / 1.541 GB, free: 182.3 MB / 0.9323 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002537/1.866, allocations: 439.6 kB / 1.541 GB, free: 181.9 MB / 0.9323 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02251/1.889, allocations: 21.72 MB / 1.562 GB, free: 161.6 MB / 0.9323 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004341/1.893, allocations: 4.639 MB / 1.567 GB, free: 158 MB / 0.9323 GB Notification: Performance of simCode: alias equations: time 0.002106/1.895, allocations: 0.6316 MB / 1.568 GB, free: 157.5 MB / 0.9323 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005191/1.896, allocations: 204.6 kB / 1.568 GB, free: 157.3 MB / 0.9323 GB Notification: Performance of SimCode: time 8.82e-07/1.896, allocations: 0 / 1.568 GB, free: 157.3 MB / 0.9323 GB Notification: Performance of Templates: time 0.1664/2.062, allocations: 57.87 MB / 1.624 GB, free: 109.7 MB / 0.9323 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)