Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_latest_Buildings_HeatTransfer_Windows_BaseClasses_Examples_AbsorbedRadiationElectrochromic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic,fileNamePrefix="Buildings_latest_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.001862/0.001862, allocations: 107.3 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.002459/0.002459, allocations: 190.4 kB / 16.25 MB, free: 6.152 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.978/2.978, allocations: 222.9 MB / 239.9 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 5.441/5.441, allocations: 461.9 MB / 0.7344 GB, free: 14.91 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002479/0.002479, allocations: 62.16 kB / 0.8987 GB, free: 37.12 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8045/0.807, allocations: 157.4 MB / 1.052 GB, free: 8.613 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic): time 0.01858/0.8257, allocations: 7.25 MB / 1.059 GB, free: 1.328 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.389/1.215, allocations: 153.3 MB / 1.209 GB, free: 7.488 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003377/1.218, allocations: 19.88 kB / 1.209 GB, free: 7.469 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.01137/1.23, allocations: 1.662 MB / 1.211 GB, free: 5.801 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.006927/1.237, allocations: 0.7577 MB / 1.212 GB, free: 5.043 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.006268/1.243, allocations: 0.9235 MB / 1.212 GB, free: 4.129 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.009287/1.252, allocations: 3.567 MB / 1.216 GB, free: 0.5508 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003638/1.256, allocations: 0.9211 MB / 1.217 GB, free: 15.58 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004373/1.26, allocations: 1.199 MB / 1.218 GB, free: 14.38 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003799/1.264, allocations: 1.094 MB / 1.219 GB, free: 13.28 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.001554/1.266, allocations: 196 kB / 1.219 GB, free: 13.09 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01065/1.276, allocations: 2.22 MB / 1.221 GB, free: 10.86 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.004273/1.281, allocations: 2.051 MB / 1.223 GB, free: 8.809 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.007567/1.288, allocations: 2.157 MB / 1.226 GB, free: 6.641 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.02191/1.31, allocations: 7.769 MB / 1.233 GB, free: 14.85 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 1.352e-05/1.311, allocations: 0 / 1.233 GB, free: 14.85 MB / 0.9981 GB Notification: Performance of FrontEnd: time 2.605e-06/1.311, allocations: 4 kB / 1.233 GB, free: 14.84 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 0.0003308/1.311, allocations: 0 / 1.233 GB, free: 14.84 MB / 0.9981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 333 * Number of variables: 333 Notification: Performance of Generate backend data structure: time 0.04721/1.358, allocations: 6.231 MB / 1.239 GB, free: 8.535 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 9.542e-05/1.358, allocations: 12.62 kB / 1.239 GB, free: 8.523 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007033/1.359, allocations: 194.5 kB / 1.239 GB, free: 8.324 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005032/1.364, allocations: 467.5 kB / 1.24 GB, free: 7.863 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 2.085/3.449, allocations: 321.1 MB / 1.553 GB, free: 4.234 MB / 1.092 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003982/3.45, allocations: 134.4 kB / 1.554 GB, free: 4.102 MB / 1.092 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00117/3.451, allocations: 176 kB / 1.554 GB, free: 3.93 MB / 1.092 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0109/3.462, allocations: 1.665 MB / 1.555 GB, free: 2.203 MB / 1.092 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.51e-05/3.462, allocations: 0 / 1.555 GB, free: 2.203 MB / 1.092 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002027/3.462, allocations: 52 kB / 1.555 GB, free: 2.152 MB / 1.092 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.782e-05/3.462, allocations: 28 kB / 1.555 GB, free: 2.125 MB / 1.092 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00477/3.467, allocations: 1.734 MB / 1.557 GB, free: 392 kB / 1.092 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1347/3.602, allocations: 77 MB / 1.632 GB, free: 3.195 MB / 1.17 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004179/3.606, allocations: 1.576 MB / 1.634 GB, free: 1.613 MB / 1.17 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002126/3.608, allocations: 1.035 MB / 1.635 GB, free: 0.5742 MB / 1.17 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001411/3.608, allocations: 33.19 kB / 1.635 GB, free: 0.543 MB / 1.17 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002313/3.61, allocations: 0.9772 MB / 1.636 GB, free: 15.55 MB / 1.186 GB Notification: Performance of pre-optimization done (n=118): time 6.933e-06/3.611, allocations: 4 kB / 1.636 GB, free: 15.55 MB / 1.186 GB Notification: Performance of matching and sorting (n=118): time 0.01077/3.621, allocations: 3.007 MB / 1.639 GB, free: 12.53 MB / 1.186 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004198/3.622, allocations: 346.5 kB / 1.639 GB, free: 12.14 MB / 1.186 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.353/5.975, allocations: 379.7 MB / 2.01 GB, free: 202.7 MB / 1.264 GB Notification: Performance of collectPreVariables (initialization): time 0.00104/5.976, allocations: 77.7 kB / 2.01 GB, free: 202.7 MB / 1.264 GB Notification: Performance of collectInitialEqns (initialization): time 0.003909/5.98, allocations: 1.604 MB / 2.012 GB, free: 201.2 MB / 1.264 GB Notification: Performance of collectInitialBindings (initialization): time 0.001027/5.981, allocations: 387.4 kB / 2.012 GB, free: 200.9 MB / 1.264 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001171/5.983, allocations: 0.5085 MB / 2.012 GB, free: 200.4 MB / 1.264 GB Notification: Performance of setup shared object (initialization): time 0.0001307/5.983, allocations: 310.4 kB / 2.013 GB, free: 200.1 MB / 1.264 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003171/5.986, allocations: 1.437 MB / 2.014 GB, free: 198.7 MB / 1.264 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003534/5.989, allocations: 2.168 MB / 2.016 GB, free: 196.2 MB / 1.264 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006577/5.996, allocations: 3.542 MB / 2.02 GB, free: 192.4 MB / 1.264 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.932e-05/5.996, allocations: 8 kB / 2.02 GB, free: 192.4 MB / 1.264 GB Notification: Performance of matching and sorting (n=294) (initialization): time 0.01318/6.009, allocations: 4.26 MB / 2.024 GB, free: 188.2 MB / 1.264 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002683/6.01, allocations: 189.6 kB / 2.024 GB, free: 188 MB / 1.264 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.857e-05/6.01, allocations: 20 kB / 2.024 GB, free: 187.9 MB / 1.264 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.459e-05/6.01, allocations: 33.42 kB / 2.024 GB, free: 187.9 MB / 1.264 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002665/6.013, allocations: 475.2 kB / 2.024 GB, free: 187.4 MB / 1.264 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.44e-05/6.013, allocations: 47.84 kB / 2.025 GB, free: 187.4 MB / 1.264 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006406/6.019, allocations: 0.5562 MB / 2.025 GB, free: 186.8 MB / 1.264 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006266/6.02, allocations: 108 kB / 2.025 GB, free: 186.7 MB / 1.264 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 96 * Number of states: 0 () * Number of discrete variables: 18 (weaDat.decAng.tNext,$PRE.weaDat.decAng.tNext,weaDat.eqnTim.tNext,$PRE.weaDat.eqnTim.tNext,weaDat.conTim.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTimMin.tNext,weaDat.locTim.tNext,$PRE.weaDat.locTim.tNext,HDirTil.incAng.decAng.tNext,$PRE.HDirTil.incAng.decAng.tNext,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (265): * Single equations (assignments): 264 * 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.004973/6.025, allocations: 1.663 MB / 2.027 GB, free: 185.1 MB / 1.264 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003727/6.028, allocations: 351.3 kB / 2.027 GB, free: 184.7 MB / 1.264 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008/6.036, allocations: 3.039 MB / 2.03 GB, free: 181.7 MB / 1.264 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.937e-05/6.037, allocations: 15.75 kB / 2.03 GB, free: 181.7 MB / 1.264 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.34e-05/6.037, allocations: 0 / 2.03 GB, free: 181.7 MB / 1.264 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.838e-05/6.037, allocations: 5.391 kB / 2.03 GB, free: 181.7 MB / 1.264 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008619/6.045, allocations: 2.815 MB / 2.033 GB, free: 178.8 MB / 1.264 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.811e-05/6.045, allocations: 4 kB / 2.033 GB, free: 178.8 MB / 1.264 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001275/6.047, allocations: 163.7 kB / 2.033 GB, free: 178.6 MB / 1.264 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.915e-05/6.047, allocations: 4 kB / 2.033 GB, free: 178.6 MB / 1.264 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002368/6.047, allocations: 40.78 kB / 2.033 GB, free: 178.6 MB / 1.264 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.249e-05/6.047, allocations: 8 kB / 2.033 GB, free: 178.6 MB / 1.264 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/6.047, allocations: 0 / 2.033 GB, free: 178.6 MB / 1.264 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009169/6.056, allocations: 2.813 MB / 2.036 GB, free: 175.7 MB / 1.264 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005426/6.062, allocations: 1.233 MB / 2.037 GB, free: 174.5 MB / 1.264 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003122/6.065, allocations: 35.83 kB / 2.037 GB, free: 174.4 MB / 1.264 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005238/6.07, allocations: 311.1 kB / 2.037 GB, free: 174.1 MB / 1.264 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004465/6.071, allocations: 80.89 kB / 2.037 GB, free: 174.1 MB / 1.264 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002233/6.071, allocations: 47.97 kB / 2.037 GB, free: 174 MB / 1.264 GB Notification: Performance of sorting global known variables: time 1.391/7.462, allocations: 305.3 MB / 2.336 GB, free: 355.4 MB / 1.264 GB Notification: Performance of sort global known variables: time 1.153e-06/7.462, allocations: 0 / 2.336 GB, free: 355.4 MB / 1.264 GB Notification: Performance of remove unused functions: time 0.007579/7.47, allocations: 1.244 MB / 2.337 GB, free: 354.3 MB / 1.264 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 12 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,HDirTil.incAng.decAng.tNext,weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext) * Number of discrete states: 6 (HDirTil.incAng.decAng.tNext,weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (103): * Single equations (assignments): 96 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 6 * 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.01386/7.484, allocations: 4.231 MB / 2.341 GB, free: 350.6 MB / 1.264 GB Notification: Performance of simCode: created initialization part: time 0.0103/7.494, allocations: 5.274 MB / 2.346 GB, free: 345.3 MB / 1.264 GB Notification: Performance of simCode: created event and clocks part: time 1.102e-05/7.494, allocations: 0 / 2.346 GB, free: 345.3 MB / 1.264 GB Notification: Performance of simCode: created simulation system equations: time 0.003288/7.497, allocations: 2.243 MB / 2.348 GB, free: 343.1 MB / 1.264 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007902/7.505, allocations: 497 kB / 2.349 GB, free: 342.6 MB / 1.264 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 5.597/13.1, allocations: 1.516 GB / 3.864 GB, free: 239.5 MB / 1.264 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003005/13.11, allocations: 2.358 MB / 3.867 GB, free: 237.2 MB / 1.264 GB Notification: Performance of simCode: alias equations: time 0.005643/13.11, allocations: 1.244 MB / 3.868 GB, free: 236 MB / 1.264 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004976/13.12, allocations: 1.756 MB / 3.87 GB, free: 234.3 MB / 1.264 GB Notification: Performance of SimCode: time 1.743e-06/13.12, allocations: 0 / 3.87 GB, free: 234.3 MB / 1.264 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.001/16.12, allocations: 255.1 MB / 4.119 GB, free: 460.9 MB / 1.279 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003242/16.12, allocations: 295 kB / 4.119 GB, free: 460.5 MB / 1.279 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.896/26.01, allocations: 0 / 4.119 GB, free: 460.5 MB / 1.279 GB (rm -f Buildings_latest_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic.pipe ; mkfifo Buildings_latest_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic.pipe ; head -c 1048576 < Buildings_latest_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic.pipe >> ../files/Buildings_latest_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic_res.mat --tempDir=temp_Buildings_latest_Buildings_HeatTransfer_Windows_BaseClasses_Examples_AbsorbedRadiationElectrochromic_fmu --startTime=0 --stopTime=864000 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_HeatTransfer_Windows_BaseClasses_Examples_AbsorbedRadiationElectrochromic.fmu > Buildings_latest_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic.pipe 2>&1)