Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic.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: "" <> buildModelFMU(Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic,fileNamePrefix="Buildings_8_Buildings_HeatTransfer_Windows_BaseClasses_Examples_AbsorbedRadiationElectrochromic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic,fileNamePrefix="Buildings_8_Buildings_HeatTransfer_Windows_BaseClasses_Examples_AbsorbedRadiationElectrochromic",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001333/0.001333, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.00139/0.00139, allocations: 189 kB / 16.25 MB, free: 6.625 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.278/1.278, allocations: 205.1 MB / 222.1 MB, free: 4.656 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.646/1.646, allocations: 292.3 MB / 0.5486 GB, free: 13.62 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.001394/0.001394, allocations: 66.81 kB / 0.6711 GB, free: 26.32 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2078/0.2092, allocations: 114.5 MB / 0.783 GB, free: 13.81 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic): time 0.007391/0.2166, allocations: 5.774 MB / 0.7886 GB, free: 7.996 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.6033/0.8199, allocations: 152.8 MB / 0.9378 GB, free: 5.145 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001044/0.821, allocations: 26.52 kB / 0.9378 GB, free: 5.141 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.00515/0.8261, allocations: 1.608 MB / 0.9394 GB, free: 5.125 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.001953/0.8281, allocations: 0.587 MB / 0.9399 GB, free: 5.098 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.002258/0.8303, allocations: 0.8559 MB / 0.9408 GB, free: 5.07 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.003383/0.8337, allocations: 3.192 MB / 0.9439 GB, free: 5.047 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001222/0.835, allocations: 0.9239 MB / 0.9448 GB, free: 4.855 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0016/0.8366, allocations: 1.102 MB / 0.9459 GB, free: 4.855 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001547/0.8381, allocations: 0.9807 MB / 0.9468 GB, free: 4.855 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.0004002/0.8385, allocations: 176.2 kB / 0.947 GB, free: 4.852 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004702/0.8433, allocations: 2.114 MB / 0.9491 GB, free: 4.824 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.002637/0.8459, allocations: 2.016 MB / 0.951 GB, free: 4.82 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.002739/0.8487, allocations: 2.043 MB / 0.953 GB, free: 4.453 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.01065/0.8593, allocations: 7.452 MB / 0.9603 GB, free: 3.602 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 8.296e-06/0.8594, allocations: 1.188 kB / 0.9603 GB, free: 3.602 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.743e-06/0.8594, allocations: 0 / 0.9603 GB, free: 3.602 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 0.0001513/0.8595, allocations: 0 / 0.9603 GB, free: 3.602 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: 309 * Number of variables: 309 Notification: Performance of Generate backend data structure: time 0.01719/0.8767, allocations: 6.05 MB / 0.9662 GB, free: 17.37 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 5.673e-05/0.8768, allocations: 9.281 kB / 0.9662 GB, free: 17.37 MB / 0.7481 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002776/0.8771, allocations: 179.7 kB / 0.9664 GB, free: 17.33 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002172/0.8793, allocations: 460.7 kB / 0.9668 GB, free: 17.11 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.289/1.168, allocations: 321.1 MB / 1.28 GB, free: 9.898 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001183/1.168, allocations: 126.2 kB / 1.281 GB, free: 9.773 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002656/1.169, allocations: 172 kB / 1.281 GB, free: 9.605 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002578/1.171, allocations: 1.553 MB / 1.282 GB, free: 7.992 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.328e-05/1.171, allocations: 0 / 1.282 GB, free: 7.992 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001045/1.171, allocations: 52 kB / 1.282 GB, free: 7.941 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.128e-05/1.172, allocations: 24 kB / 1.282 GB, free: 7.918 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002376/1.174, allocations: 1.635 MB / 1.284 GB, free: 6.277 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4621/1.636, allocations: 76.27 MB / 1.358 GB, free: 423 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002379/1.638, allocations: 1.467 MB / 1.36 GB, free: 421.6 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009971/1.639, allocations: 0.9939 MB / 1.361 GB, free: 420.7 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 9.901e-05/1.64, allocations: 36.3 kB / 1.361 GB, free: 420.7 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001209/1.641, allocations: 0.8819 MB / 1.362 GB, free: 420 MB / 1.045 GB Notification: Performance of pre-optimization done (n=106): time 4.238e-06/1.641, allocations: 0.75 kB / 1.362 GB, free: 420 MB / 1.045 GB Notification: Performance of matching and sorting (n=106): time 0.00578/1.647, allocations: 2.834 MB / 1.364 GB, free: 417.5 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001573/1.647, allocations: 338.9 kB / 1.365 GB, free: 417.2 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.3817/2.028, allocations: 379.6 MB / 1.735 GB, free: 38.52 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 0.0006784/2.029, allocations: 69.7 kB / 1.736 GB, free: 38.44 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.002002/2.031, allocations: 1.57 MB / 1.737 GB, free: 36.94 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003024/2.032, allocations: 356 kB / 1.737 GB, free: 36.6 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005956/2.032, allocations: 0.499 MB / 1.738 GB, free: 36.1 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 5.313e-05/2.032, allocations: 303.2 kB / 1.738 GB, free: 35.8 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001576/2.034, allocations: 1.394 MB / 1.74 GB, free: 34.4 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001708/2.035, allocations: 2.117 MB / 1.742 GB, free: 32 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003038/2.039, allocations: 3.468 MB / 1.745 GB, free: 28.27 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.016e-05/2.039, allocations: 8 kB / 1.745 GB, free: 28.27 MB / 1.045 GB Notification: Performance of matching and sorting (n=278) (initialization): time 0.00619/2.045, allocations: 4.146 MB / 1.749 GB, free: 24.1 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001319/2.045, allocations: 186.3 kB / 1.749 GB, free: 23.91 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.12e-05/2.045, allocations: 20 kB / 1.749 GB, free: 23.89 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.722e-05/2.045, allocations: 37 kB / 1.749 GB, free: 23.86 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001354/2.046, allocations: 455.2 kB / 1.75 GB, free: 23.41 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.038e-05/2.046, allocations: 43.86 kB / 1.75 GB, free: 23.37 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002261/2.049, allocations: 0.5241 MB / 1.75 GB, free: 22.84 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001501/2.049, allocations: 108 kB / 1.75 GB, free: 22.74 MB / 1.045 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 96 * Number of states: 0 () * Number of discrete variables: 6 (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 (249): * Single equations (assignments): 248 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001947/2.051, allocations: 1.643 MB / 1.752 GB, free: 21.08 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009519/2.052, allocations: 339.4 kB / 1.752 GB, free: 20.74 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003177/2.055, allocations: 2.89 MB / 1.755 GB, free: 17.85 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.465e-06/2.055, allocations: 14.2 kB / 1.755 GB, free: 17.84 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/2.055, allocations: 0 / 1.755 GB, free: 17.84 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.004e-05/2.055, allocations: 7.922 kB / 1.755 GB, free: 17.83 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006007/2.061, allocations: 6.088 MB / 1.761 GB, free: 11.69 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.676e-06/2.061, allocations: 0 / 1.761 GB, free: 11.69 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005466/2.062, allocations: 151.8 kB / 1.761 GB, free: 11.54 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.412e-06/2.062, allocations: 7.75 kB / 1.761 GB, free: 11.54 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.468e-05/2.062, allocations: 35.92 kB / 1.761 GB, free: 11.5 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.839e-06/2.062, allocations: 4 kB / 1.761 GB, free: 11.5 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.764e-06/2.062, allocations: 3.984 kB / 1.761 GB, free: 11.49 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003059/2.065, allocations: 2.738 MB / 1.764 GB, free: 8.727 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001295/2.066, allocations: 1.206 MB / 1.765 GB, free: 7.496 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005216/2.067, allocations: 31.88 kB / 1.765 GB, free: 7.465 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001431/2.068, allocations: 290.5 kB / 1.765 GB, free: 7.184 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000141/2.068, allocations: 72.66 kB / 1.766 GB, free: 7.113 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.392e-05/2.068, allocations: 43.98 kB / 1.766 GB, free: 7.07 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.6311/2.699, allocations: 305.3 MB / 2.064 GB, free: 178.2 MB / 1.045 GB Notification: Performance of sort global known variables: time 6.01e-07/2.699, allocations: 3.781 kB / 2.064 GB, free: 178.2 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.004475/2.704, allocations: 1.163 MB / 2.065 GB, free: 177.2 MB / 1.045 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.conTim.tNext,weaDat.conTimMin.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (90): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006141/2.71, allocations: 4.108 MB / 2.069 GB, free: 173.6 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.00472/2.715, allocations: 5.068 MB / 2.074 GB, free: 168.5 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/2.715, allocations: 4 kB / 2.074 GB, free: 168.5 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.001414/2.716, allocations: 2.176 MB / 2.076 GB, free: 166.3 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002937/2.719, allocations: 458.4 kB / 2.076 GB, free: 165.9 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 2.187/4.907, allocations: 1.514 GB / 3.591 GB, free: 24.62 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001617/4.908, allocations: 2.322 MB / 3.593 GB, free: 22.29 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.003319/4.912, allocations: 1.259 MB / 3.594 GB, free: 21.16 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002847/4.914, allocations: 1.71 MB / 3.596 GB, free: 19.45 MB / 1.045 GB Notification: Performance of SimCode: time 8.61e-07/4.914, allocations: 0 / 3.596 GB, free: 19.45 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.236/8.15, allocations: 252 MB / 3.842 GB, free: 240.7 MB / 1.045 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002234/8.15, allocations: 294.4 kB / 3.842 GB, free: 240.3 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.69/11.84, allocations: 7.156 kB / 3.842 GB, free: 240.3 MB / 1.045 GB (rm -f Buildings_8_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic.pipe ; mkfifo Buildings_8_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic.pipe ; head -c 1048576 < Buildings_8_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic.pipe >> ../files/Buildings_8_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_HeatTransfer_Windows_BaseClasses_Examples_AbsorbedRadiationElectrochromic_fmu --startTime=0 --stopTime=864000 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_HeatTransfer_Windows_BaseClasses_Examples_AbsorbedRadiationElectrochromic.fmu > Buildings_8_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic.pipe 2>&1)