Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic,fileNamePrefix="Buildings_maint_7_0_x_Buildings_HeatTransfer_Windows_BaseClasses_Examples_WindowRadiationElectrochromic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic,fileNamePrefix="Buildings_maint_7_0_x_Buildings_HeatTransfer_Windows_BaseClasses_Examples_WindowRadiationElectrochromic",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.263/1.263, allocations: 251.5 MB / 266.7 MB, free: 11.05 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001469/0.001469, allocations: 171.6 kB / 325.8 MB, free: 2.699 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.333/1.333, allocations: 205 MB / 0.576 GB, free: 20.92 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000678/0.000678, allocations: 88.89 kB / 0.6797 GB, free: 14.72 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0002788/0.0002789, allocations: 8.25 kB / 0.7933 GB, free: 136.3 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1437/0.144, allocations: 105.4 MB / 0.8962 GB, free: 68.08 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic): time 0.005064/0.1491, allocations: 6.685 MB / 0.9027 GB, free: 61.36 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.4621/0.6112, allocations: 156.9 MB / 1.056 GB, free: 2.422 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001902/0.6131, allocations: 30.78 kB / 1.056 GB, free: 2.422 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 0.004032/0.6172, allocations: 1.777 MB / 1.058 GB, free: 2.422 MB / 0.698 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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 7.0.3-maint.7.0.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 7.0.3-maint.7.0.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 7.0.3-maint.7.0.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.001867/0.6191, allocations: 0.9767 MB / 1.059 GB, free: 2.414 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.002424/0.6215, allocations: 1.18 MB / 1.06 GB, free: 2.402 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 0.004408/0.6259, allocations: 5.042 MB / 1.065 GB, free: 2.391 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001883/0.6278, allocations: 1.192 MB / 1.066 GB, free: 2.133 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002808/0.6306, allocations: 1.233 MB / 1.067 GB, free: 2.133 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002133/0.6328, allocations: 1.223 MB / 1.068 GB, free: 2.129 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 0.0002816/0.6331, allocations: 63.75 kB / 1.068 GB, free: 2.129 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003965/0.637, allocations: 2.132 MB / 1.07 GB, free: 2.098 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 0.003402/0.6405, allocations: 4.508 MB / 1.075 GB, free: 2.098 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 0.005244/0.6457, allocations: 3.892 MB / 1.079 GB, free: 1.289 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.01277/0.6585, allocations: 16.84 MB / 1.095 GB, free: 15.52 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.6585, allocations: 0 / 1.095 GB, free: 15.52 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.874e-06/0.6586, allocations: 0 / 1.095 GB, free: 15.52 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 0.0002087/0.6588, allocations: 0 / 1.095 GB, free: 15.52 MB / 0.7136 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.02172/0.6805, allocations: 11.22 MB / 1.106 GB, free: 9.969 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.989e-05/0.6806, allocations: 9.031 kB / 1.106 GB, free: 9.969 MB / 0.7136 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006175/0.6812, allocations: 234.1 kB / 1.106 GB, free: 9.883 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006653/0.6879, allocations: 0.9114 MB / 1.107 GB, free: 9.391 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 1.314/2.002, allocations: 0.9945 GB / 2.102 GB, free: 165.9 MB / 0.9792 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001113/2.002, allocations: 166.9 kB / 2.102 GB, free: 165.8 MB / 0.9792 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004537/2.002, allocations: 224 kB / 2.102 GB, free: 165.6 MB / 0.9792 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002814/2.005, allocations: 2.28 MB / 2.104 GB, free: 163.2 MB / 0.9792 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.789e-05/2.005, allocations: 0 / 2.104 GB, free: 163.2 MB / 0.9792 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001283/2.005, allocations: 72 kB / 2.104 GB, free: 163.1 MB / 0.9792 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.729e-05/2.005, allocations: 36 kB / 2.104 GB, free: 163.1 MB / 0.9792 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002688/2.008, allocations: 2.392 MB / 2.107 GB, free: 160.7 MB / 0.9792 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4371/2.445, allocations: 242.5 MB / 2.344 GB, free: 367.1 MB / 0.9792 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00217/2.448, allocations: 1.874 MB / 2.345 GB, free: 365.4 MB / 0.9792 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009924/2.449, allocations: 1.249 MB / 2.347 GB, free: 364.2 MB / 0.9792 GB Notification: Performance of preOpt evalFunc (simulation): time 7.975e-05/2.449, allocations: 34.67 kB / 2.347 GB, free: 364.2 MB / 0.9792 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001235/2.45, allocations: 1.278 MB / 2.348 GB, free: 363.1 MB / 0.9792 GB Notification: Performance of pre-optimization done (n=126): time 3.456e-06/2.45, allocations: 0 / 2.348 GB, free: 363.1 MB / 0.9792 GB Notification: Performance of matching and sorting (n=126): time 0.00928/2.459, allocations: 4.164 MB / 2.352 GB, free: 359.7 MB / 0.9792 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001258/2.459, allocations: 360.7 kB / 2.352 GB, free: 359.3 MB / 0.9792 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.775/4.235, allocations: 1.182 GB / 3.535 GB, free: 24.02 MB / 0.9792 GB Notification: Performance of collectPreVariables (initialization): time 0.0004742/4.235, allocations: 77.7 kB / 3.535 GB, free: 23.93 MB / 0.9792 GB Notification: Performance of collectInitialEqns (initialization): time 0.004033/4.239, allocations: 3.705 MB / 3.538 GB, free: 20.44 MB / 0.9792 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003314/4.24, allocations: 422.4 kB / 3.539 GB, free: 20.24 MB / 0.9792 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003074/4.24, allocations: 347.4 kB / 3.539 GB, free: 19.9 MB / 0.9792 GB Notification: Performance of setup shared object (initialization): time 3.68e-05/4.24, allocations: 309.1 kB / 3.539 GB, free: 19.6 MB / 0.9792 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001934/4.242, allocations: 1.895 MB / 3.541 GB, free: 17.7 MB / 0.9792 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002159/4.244, allocations: 2.83 MB / 3.544 GB, free: 14.5 MB / 0.9792 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003912/4.248, allocations: 4.564 MB / 3.548 GB, free: 9.574 MB / 0.9792 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.245e-05/4.248, allocations: 8 kB / 3.548 GB, free: 9.566 MB / 0.9792 GB Notification: Performance of matching and sorting (n=360) (initialization): time 0.009827/4.258, allocations: 5.898 MB / 3.554 GB, free: 3.855 MB / 0.9792 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001264/4.258, allocations: 201.6 kB / 3.554 GB, free: 3.652 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.18e-05/4.258, allocations: 28 kB / 3.554 GB, free: 3.625 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005532/4.259, allocations: 125 kB / 3.554 GB, free: 3.5 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001549/4.26, allocations: 0.5888 MB / 3.555 GB, free: 2.91 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001442/4.262, allocations: 1.577 MB / 3.557 GB, free: 1.191 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005251/4.267, allocations: 1.171 MB / 3.558 GB, free: 16 kB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.2998/4.567, allocations: 134.7 kB / 3.558 GB, free: 418.2 MB / 0.9792 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 128 * 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 (329): * Single equations (assignments): 327 * Array equations: 0 * 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.005009/4.572, allocations: 3.829 MB / 3.562 GB, free: 418 MB / 0.9792 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004144/4.576, allocations: 0.7427 MB / 3.562 GB, free: 418 MB / 0.9792 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006471/4.582, allocations: 4.24 MB / 3.566 GB, free: 417.8 MB / 0.9792 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.23e-05/4.582, allocations: 10.72 kB / 3.566 GB, free: 417.8 MB / 0.9792 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.778e-06/4.582, allocations: 0.8125 kB / 3.566 GB, free: 417.8 MB / 0.9792 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.58e-05/4.582, allocations: 5.953 kB / 3.566 GB, free: 417.8 MB / 0.9792 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01725/4.6, allocations: 12.25 MB / 3.578 GB, free: 415.1 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.671e-06/4.6, allocations: 0 / 3.578 GB, free: 415.1 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006996/4.6, allocations: 200.5 kB / 3.579 GB, free: 415.1 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004592/4.601, allocations: 83.61 kB / 3.579 GB, free: 415.1 MB / 0.9792 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.832e-05/4.601, allocations: 42.12 kB / 3.579 GB, free: 415 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001289/4.602, allocations: 1.545 MB / 3.58 GB, free: 413.6 MB / 0.9792 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/4.602, allocations: 0 / 3.58 GB, free: 413.6 MB / 0.9792 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007208/4.609, allocations: 3.821 MB / 3.584 GB, free: 412.2 MB / 0.9792 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004736/4.614, allocations: 3.109 MB / 3.587 GB, free: 410.6 MB / 0.9792 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001695/4.616, allocations: 28.34 kB / 3.587 GB, free: 410.6 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003535/4.619, allocations: 0.7772 MB / 3.588 GB, free: 410.6 MB / 0.9792 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001919/4.62, allocations: 81.31 kB / 3.588 GB, free: 410.6 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000105/4.62, allocations: 65.66 kB / 3.588 GB, free: 410.5 MB / 0.9792 GB Notification: Performance of sorting global known variables: time 1.177/5.796, allocations: 0.9474 GB / 4.535 GB, free: 313.7 MB / 0.9792 GB Notification: Performance of sort global known variables: time 6.31e-07/5.796, allocations: 0 / 4.535 GB, free: 313.7 MB / 0.9792 GB Notification: Performance of remove unused functions: time 0.006667/5.803, allocations: 1.799 MB / 4.537 GB, free: 312.1 MB / 0.9792 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.007485/5.811, allocations: 5.271 MB / 4.542 GB, free: 307.7 MB / 0.9792 GB Notification: Performance of simCode: created initialization part: time 0.004468/5.815, allocations: 5.61 MB / 4.548 GB, free: 302.1 MB / 0.9792 GB Notification: Performance of simCode: created event and clocks part: time 3.516e-06/5.815, allocations: 4 kB / 4.548 GB, free: 302.1 MB / 0.9792 GB Notification: Performance of simCode: created simulation system equations: time 0.001775/5.817, allocations: 2.663 MB / 4.55 GB, free: 299.4 MB / 0.9792 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003466/5.82, allocations: 0.7817 MB / 4.551 GB, free: 298.6 MB / 0.9792 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 6.701/12.52, allocations: 4.834 GB / 9.385 GB, free: 168.1 MB / 0.9792 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00417/12.53, allocations: 4.612 MB / 9.389 GB, free: 163.5 MB / 0.9792 GB Notification: Performance of simCode: alias equations: time 0.005457/12.53, allocations: 3.021 MB / 9.392 GB, free: 160.7 MB / 0.9792 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004543/12.54, allocations: 4.058 MB / 9.396 GB, free: 156.7 MB / 0.9792 GB Notification: Performance of SimCode: time 5.21e-07/12.54, allocations: 0 / 9.396 GB, free: 156.7 MB / 0.9792 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.626/14.16, allocations: 0.5091 GB / 9.905 GB, free: 370.4 MB / 0.9792 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000184/14.16, allocations: 338 kB / 9.906 GB, free: 370 MB / 0.9792 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.874/21.03, allocations: 1.266 kB / 9.906 GB, free: 370 MB / 0.9792 GB (rm -f Buildings_maint.7.0.x_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic.pipe >> ../files/Buildings_maint.7.0.x_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_HeatTransfer_Windows_BaseClasses_Examples_WindowRadiationElectrochromic_fmu --startTime=0 --stopTime=864000 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_HeatTransfer_Windows_BaseClasses_Examples_WindowRadiationElectrochromic.fmu > Buildings_maint.7.0.x_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic.pipe 2>&1)