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.001101/0.001101, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001118/0.001118, allocations: 194.5 kB / 16.14 MB, free: 6.668 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.182/1.182, allocations: 205.1 MB / 222 MB, free: 4.715 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.661/1.661, allocations: 292.3 MB / 0.5484 GB, free: 13.7 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.001335/0.001335, allocations: 70.31 kB / 0.6709 GB, free: 26.39 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1642/0.1655, allocations: 114.5 MB / 0.7828 GB, free: 13.95 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic): time 0.00635/0.1719, allocations: 5.779 MB / 0.7884 GB, free: 8.133 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.4844/0.6563, allocations: 152.9 MB / 0.9378 GB, free: 5.266 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008836/0.6572, allocations: 24.31 kB / 0.9378 GB, free: 5.266 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.004131/0.6614, allocations: 1.612 MB / 0.9394 GB, free: 5.25 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.0014/0.6628, allocations: 0.5816 MB / 0.9399 GB, free: 5.223 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.001873/0.6647, allocations: 0.8306 MB / 0.9407 GB, free: 5.191 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.002342/0.667, allocations: 3.136 MB / 0.9438 GB, free: 5.18 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008739/0.6679, allocations: 0.8882 MB / 0.9447 GB, free: 4.98 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001134/0.6691, allocations: 0.9566 MB / 0.9456 GB, free: 4.977 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009746/0.67, allocations: 0.9261 MB / 0.9465 GB, free: 4.977 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.0001947/0.6702, allocations: 92.22 kB / 0.9466 GB, free: 4.977 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003386/0.6736, allocations: 1.935 MB / 0.9485 GB, free: 4.953 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.001753/0.6754, allocations: 1.937 MB / 0.9504 GB, free: 4.953 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.001978/0.6774, allocations: 1.826 MB / 0.9522 GB, free: 4.582 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.00659/0.684, allocations: 7.341 MB / 0.9593 GB, free: 3.73 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.684, allocations: 0 / 0.9593 GB, free: 3.73 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.002e-06/0.684, allocations: 0 / 0.9593 GB, free: 3.73 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 7.701e-05/0.6841, allocations: 0 / 0.9593 GB, free: 3.73 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.01036/0.6945, allocations: 6.044 MB / 0.9652 GB, free: 17.5 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 4.088e-05/0.6945, allocations: 10.91 kB / 0.9652 GB, free: 17.5 MB / 0.7481 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001978/0.6947, allocations: 180.3 kB / 0.9654 GB, free: 17.46 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001528/0.6963, allocations: 456 kB / 0.9658 GB, free: 17.24 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2518/0.948, allocations: 321 MB / 1.279 GB, free: 10.21 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001006/0.9482, allocations: 126.2 kB / 1.279 GB, free: 10.08 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003812/0.9486, allocations: 173.8 kB / 1.28 GB, free: 9.914 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00232/0.9509, allocations: 1.554 MB / 1.281 GB, free: 8.301 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.982e-05/0.9509, allocations: 5.812 kB / 1.281 GB, free: 8.297 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001092/0.951, allocations: 56 kB / 1.281 GB, free: 8.242 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.21e-05/0.9511, allocations: 24 kB / 1.281 GB, free: 8.219 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002082/0.9532, allocations: 1.645 MB / 1.283 GB, free: 6.57 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3415/1.295, allocations: 76.26 MB / 1.357 GB, free: 423.3 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001655/1.296, allocations: 1.462 MB / 1.359 GB, free: 421.9 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007944/1.297, allocations: 0.9967 MB / 1.36 GB, free: 421 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 6.9e-05/1.297, allocations: 33.64 kB / 1.36 GB, free: 421 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009498/1.298, allocations: 0.8834 MB / 1.361 GB, free: 420.2 MB / 1.045 GB Notification: Performance of pre-optimization done (n=106): time 3.015e-06/1.298, allocations: 0 / 1.361 GB, free: 420.2 MB / 1.045 GB Notification: Performance of matching and sorting (n=106): time 0.004642/1.303, allocations: 2.84 MB / 1.363 GB, free: 417.8 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001202/1.303, allocations: 341 kB / 1.364 GB, free: 417.5 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.3792/1.682, allocations: 379.6 MB / 1.734 GB, free: 38.88 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 0.0005473/1.683, allocations: 69.7 kB / 1.734 GB, free: 38.8 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.002476/1.685, allocations: 1.569 MB / 1.736 GB, free: 37.3 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004294/1.686, allocations: 355.3 kB / 1.736 GB, free: 36.95 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001049/1.687, allocations: 499.8 kB / 1.737 GB, free: 36.46 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 3.499e-05/1.687, allocations: 301.8 kB / 1.737 GB, free: 36.16 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002457/1.689, allocations: 1.404 MB / 1.738 GB, free: 34.76 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002754/1.692, allocations: 2.106 MB / 1.741 GB, free: 32.36 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004931/1.697, allocations: 3.474 MB / 1.744 GB, free: 28.65 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-05/1.697, allocations: 4 kB / 1.744 GB, free: 28.64 MB / 1.045 GB Notification: Performance of matching and sorting (n=278) (initialization): time 0.007248/1.704, allocations: 4.147 MB / 1.748 GB, free: 24.48 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001222/1.704, allocations: 190.3 kB / 1.748 GB, free: 24.29 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.845e-05/1.705, allocations: 24 kB / 1.748 GB, free: 24.27 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.05e-05/1.705, allocations: 39.69 kB / 1.748 GB, free: 24.23 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001228/1.706, allocations: 449.2 kB / 1.749 GB, free: 23.79 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.704e-05/1.706, allocations: 44.23 kB / 1.749 GB, free: 23.75 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002231/1.708, allocations: 0.5277 MB / 1.749 GB, free: 23.22 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001352/1.708, allocations: 108 kB / 1.749 GB, free: 23.11 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.001712/1.71, allocations: 1.639 MB / 1.751 GB, free: 21.46 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009098/1.711, allocations: 339.4 kB / 1.751 GB, free: 21.12 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002892/1.714, allocations: 2.892 MB / 1.754 GB, free: 18.22 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.692e-06/1.714, allocations: 12 kB / 1.754 GB, free: 18.21 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/1.714, allocations: 3.812 kB / 1.754 GB, free: 18.21 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.865e-06/1.714, allocations: 7.922 kB / 1.754 GB, free: 18.2 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005637/1.719, allocations: 6.084 MB / 1.76 GB, free: 12.06 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/1.719, allocations: 3.984 kB / 1.76 GB, free: 12.06 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005243/1.72, allocations: 151.8 kB / 1.76 GB, free: 11.91 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.751e-06/1.72, allocations: 6.484 kB / 1.76 GB, free: 11.91 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.967e-05/1.72, allocations: 31.92 kB / 1.76 GB, free: 11.88 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.412e-06/1.72, allocations: 4 kB / 1.76 GB, free: 11.87 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/1.72, allocations: 5.219 kB / 1.76 GB, free: 11.87 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003066/1.723, allocations: 2.742 MB / 1.763 GB, free: 9.102 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001335/1.724, allocations: 1.21 MB / 1.764 GB, free: 7.867 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004938/1.725, allocations: 31.84 kB / 1.764 GB, free: 7.836 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001346/1.726, allocations: 290.5 kB / 1.764 GB, free: 7.555 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000127/1.726, allocations: 60.92 kB / 1.764 GB, free: 7.492 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.907e-05/1.727, allocations: 43.97 kB / 1.764 GB, free: 7.449 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.4994/2.226, allocations: 305.3 MB / 2.063 GB, free: 178.5 MB / 1.045 GB Notification: Performance of sort global known variables: time 2.104e-06/2.226, allocations: 2.344 kB / 2.063 GB, free: 178.5 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.00507/2.231, allocations: 1.167 MB / 2.064 GB, free: 177.5 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.007078/2.238, allocations: 4.098 MB / 2.068 GB, free: 173.9 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.003631/2.242, allocations: 4.496 MB / 2.072 GB, free: 169.4 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/2.242, allocations: 0 / 2.072 GB, free: 169.4 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.001328/2.243, allocations: 2.182 MB / 2.074 GB, free: 167.2 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003145/2.246, allocations: 448.9 kB / 2.075 GB, free: 166.8 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.866/4.112, allocations: 1.514 GB / 3.589 GB, free: 25.71 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002367/4.115, allocations: 2.326 MB / 3.591 GB, free: 23.37 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.003317/4.118, allocations: 1.262 MB / 3.593 GB, free: 22.24 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002518/4.121, allocations: 1.706 MB / 3.594 GB, free: 20.53 MB / 1.045 GB Notification: Performance of SimCode: time 4.6e-07/4.121, allocations: 2.625 kB / 3.594 GB, free: 20.53 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.657/5.777, allocations: 250.5 MB / 3.839 GB, free: 242 MB / 1.045 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002159/5.778, allocations: 294.5 kB / 3.839 GB, free: 241.6 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.646/9.424, allocations: 2.969 kB / 3.839 GB, free: 241.6 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)