Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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.WindowRadiationElectrochromic,fileNamePrefix="Buildings_9_Buildings_HeatTransfer_Windows_BaseClasses_Examples_WindowRadiationElectrochromic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic,fileNamePrefix="Buildings_9_Buildings_HeatTransfer_Windows_BaseClasses_Examples_WindowRadiationElectrochromic",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.0009872/0.0009872, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001016/0.001016, allocations: 193.7 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.187/1.187, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.077/2.077, allocations: 390.2 MB / 0.6647 GB, free: 276 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001194/0.001194, allocations: 63.89 kB / 0.8127 GB, free: 14.14 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5012/0.5024, allocations: 140.4 MB / 0.9497 GB, free: 9.215 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic): time 0.006531/0.509, allocations: 7.301 MB / 0.9569 GB, free: 3.438 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.1525/0.6615, allocations: 159.3 MB / 1.112 GB, free: 10.61 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00141/0.6629, allocations: 39.75 kB / 1.112 GB, free: 10.57 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.004363/0.6673, allocations: 1.957 MB / 1.114 GB, free: 8.605 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.00266/0.67, allocations: 1.158 MB / 1.115 GB, free: 7.445 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.002829/0.6728, allocations: 1.428 MB / 1.117 GB, free: 6.023 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.004292/0.6771, allocations: 5.22 MB / 1.122 GB, free: 0.8008 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001448/0.6786, allocations: 1.27 MB / 1.123 GB, free: 15.47 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001978/0.6805, allocations: 1.687 MB / 1.125 GB, free: 13.78 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00156/0.6821, allocations: 1.533 MB / 1.126 GB, free: 12.24 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.0003645/0.6825, allocations: 288 kB / 1.127 GB, free: 11.96 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003555/0.6861, allocations: 2.532 MB / 1.129 GB, free: 9.426 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.003065/0.6891, allocations: 4.78 MB / 1.134 GB, free: 4.637 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.0051/0.6942, allocations: 4.829 MB / 1.139 GB, free: 15.78 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.01497/0.7092, allocations: 17.63 MB / 1.156 GB, free: 14.11 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.7093, allocations: 0 / 1.156 GB, free: 14.11 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.342e-06/0.7093, allocations: 0 / 1.156 GB, free: 14.11 MB / 0.92 GB Notification: Performance of Transformations before backend: time 0.0002357/0.7095, allocations: 0 / 1.156 GB, free: 14.11 MB / 0.92 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 424 * Number of variables: 424 Notification: Performance of Generate backend data structure: time 0.02899/0.7385, allocations: 14.08 MB / 1.169 GB, free: 15.91 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.006e-05/0.7386, allocations: 12.03 kB / 1.169 GB, free: 15.89 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003037/0.7389, allocations: 240.8 kB / 1.17 GB, free: 15.65 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003688/0.7426, allocations: 0.9195 MB / 1.171 GB, free: 14.72 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 1.757/2.499, allocations: 0.9946 GB / 2.165 GB, free: 376.4 MB / 1.154 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001077/2.5, allocations: 171.1 kB / 2.165 GB, free: 376.3 MB / 1.154 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000426/2.5, allocations: 236 kB / 2.166 GB, free: 376 MB / 1.154 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002951/2.503, allocations: 2.381 MB / 2.168 GB, free: 373.6 MB / 1.154 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.789e-05/2.503, allocations: 0 / 2.168 GB, free: 373.6 MB / 1.154 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001455/2.503, allocations: 64 kB / 2.168 GB, free: 373.5 MB / 1.154 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.902e-05/2.503, allocations: 44 kB / 2.168 GB, free: 373.5 MB / 1.154 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002741/2.506, allocations: 2.467 MB / 2.17 GB, free: 371 MB / 1.154 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1056/2.612, allocations: 242.6 MB / 2.407 GB, free: 128.2 MB / 1.154 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002538/2.614, allocations: 1.988 MB / 2.409 GB, free: 126.2 MB / 1.154 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001056/2.615, allocations: 1.279 MB / 2.411 GB, free: 124.9 MB / 1.154 GB Notification: Performance of preOpt evalFunc (simulation): time 7.24e-05/2.615, allocations: 37.09 kB / 2.411 GB, free: 124.9 MB / 1.154 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001349/2.617, allocations: 1.358 MB / 2.412 GB, free: 123.5 MB / 1.154 GB Notification: Performance of pre-optimization done (n=138): time 2.585e-06/2.617, allocations: 0 / 2.412 GB, free: 123.5 MB / 1.154 GB Notification: Performance of matching and sorting (n=138): time 0.008953/2.626, allocations: 4.32 MB / 2.416 GB, free: 119.2 MB / 1.154 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001237/2.626, allocations: 370.5 kB / 2.416 GB, free: 118.8 MB / 1.154 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.189/4.815, allocations: 1.182 GB / 3.599 GB, free: 291.6 MB / 1.17 GB Notification: Performance of collectPreVariables (initialization): time 0.0004676/4.815, allocations: 85.7 kB / 3.599 GB, free: 291.5 MB / 1.17 GB Notification: Performance of collectInitialEqns (initialization): time 0.00479/4.82, allocations: 3.742 MB / 3.603 GB, free: 288 MB / 1.17 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004299/4.821, allocations: 452.9 kB / 3.603 GB, free: 287.8 MB / 1.17 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009755/4.822, allocations: 0.6719 MB / 3.604 GB, free: 287.1 MB / 1.17 GB Notification: Performance of setup shared object (initialization): time 3.368e-05/4.822, allocations: 305.1 kB / 3.604 GB, free: 286.8 MB / 1.17 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001888/4.824, allocations: 1.93 MB / 3.606 GB, free: 284.8 MB / 1.17 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002132/4.826, allocations: 2.879 MB / 3.609 GB, free: 281.6 MB / 1.17 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003738/4.829, allocations: 4.613 MB / 3.613 GB, free: 276.6 MB / 1.17 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.118e-05/4.83, allocations: 8 kB / 3.613 GB, free: 276.6 MB / 1.17 GB Notification: Performance of matching and sorting (n=376) (initialization): time 0.009127/4.839, allocations: 5.986 MB / 3.619 GB, free: 270.9 MB / 1.17 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001228/4.839, allocations: 209.6 kB / 3.619 GB, free: 270.7 MB / 1.17 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.185e-05/4.839, allocations: 28 kB / 3.619 GB, free: 270.7 MB / 1.17 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005511/4.839, allocations: 120.9 kB / 3.619 GB, free: 270.5 MB / 1.17 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001683/4.841, allocations: 0.6148 MB / 3.62 GB, free: 269.9 MB / 1.17 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001527/4.843, allocations: 1.683 MB / 3.622 GB, free: 268.1 MB / 1.17 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005074/4.848, allocations: 1.174 MB / 3.623 GB, free: 266.9 MB / 1.17 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001757/4.848, allocations: 148 kB / 3.623 GB, free: 266.8 MB / 1.17 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 128 * 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 (345): * Single equations (assignments): 343 * 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.003499/4.851, allocations: 3.84 MB / 3.627 GB, free: 262.9 MB / 1.17 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002397/4.854, allocations: 0.7516 MB / 3.627 GB, free: 262.1 MB / 1.17 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004707/4.858, allocations: 4.357 MB / 3.632 GB, free: 257.8 MB / 1.17 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.464e-06/4.859, allocations: 12 kB / 3.632 GB, free: 257.8 MB / 1.17 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.715e-06/4.859, allocations: 0 / 3.632 GB, free: 257.8 MB / 1.17 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.044e-05/4.859, allocations: 7.969 kB / 3.632 GB, free: 257.8 MB / 1.17 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004712/4.863, allocations: 6.78 MB / 3.638 GB, free: 250.9 MB / 1.17 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.508e-06/4.863, allocations: 0 / 3.638 GB, free: 250.9 MB / 1.17 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007727/4.864, allocations: 219.6 kB / 3.638 GB, free: 250.7 MB / 1.17 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000405/4.864, allocations: 64.8 kB / 3.639 GB, free: 250.7 MB / 1.17 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.114e-05/4.865, allocations: 39.97 kB / 3.639 GB, free: 250.6 MB / 1.17 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001436/4.866, allocations: 1.664 MB / 3.64 GB, free: 248.8 MB / 1.17 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/4.866, allocations: 4.062 kB / 3.64 GB, free: 248.8 MB / 1.17 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004941/4.871, allocations: 3.874 MB / 3.644 GB, free: 244.9 MB / 1.17 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003223/4.874, allocations: 3.14 MB / 3.647 GB, free: 241.7 MB / 1.17 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001157/4.875, allocations: 35.94 kB / 3.647 GB, free: 241.7 MB / 1.17 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002931/4.878, allocations: 0.7565 MB / 3.648 GB, free: 240.9 MB / 1.17 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001844/4.878, allocations: 101.2 kB / 3.648 GB, free: 240.8 MB / 1.17 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001025/4.879, allocations: 71.95 kB / 3.648 GB, free: 240.8 MB / 1.17 GB Notification: Performance of sorting global known variables: time 1.26/6.139, allocations: 0.9474 GB / 4.595 GB, free: 226.9 MB / 1.186 GB Notification: Performance of sort global known variables: time 5.61e-07/6.139, allocations: 0 / 4.595 GB, free: 226.9 MB / 1.186 GB Notification: Performance of remove unused functions: time 0.006078/6.145, allocations: 1.852 MB / 4.597 GB, free: 225.2 MB / 1.186 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 (weaDat.decAng.tNext,weaDat.eqnTim.tNext,weaDat.conTim.tNext,weaDat.conTimMin.tNext,weaDat.locTim.tNext,HDirTil.incAng.decAng.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (124): * Single equations (assignments): 116 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 6 * 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.00827/6.153, allocations: 5.361 MB / 4.602 GB, free: 220.6 MB / 1.186 GB Notification: Performance of simCode: created initialization part: time 0.006066/6.159, allocations: 6.564 MB / 4.609 GB, free: 214 MB / 1.186 GB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/6.159, allocations: 0 / 4.609 GB, free: 214 MB / 1.186 GB Notification: Performance of simCode: created simulation system equations: time 0.001895/6.161, allocations: 2.72 MB / 4.612 GB, free: 211.3 MB / 1.186 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004416/6.165, allocations: 0.823 MB / 4.612 GB, free: 210.5 MB / 1.186 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 6.963/13.13, allocations: 4.835 GB / 9.447 GB, free: 193.9 MB / 1.186 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00349/13.13, allocations: 4.65 MB / 9.452 GB, free: 189.2 MB / 1.186 GB Notification: Performance of simCode: alias equations: time 0.005396/13.14, allocations: 3.007 MB / 9.455 GB, free: 186.4 MB / 1.186 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004902/13.14, allocations: 4.031 MB / 9.459 GB, free: 182.4 MB / 1.186 GB Notification: Performance of SimCode: time 1.142e-06/13.14, allocations: 0 / 9.459 GB, free: 182.4 MB / 1.186 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.592/16.73, allocations: 0.7092 GB / 10.17 GB, free: 417.2 MB / 1.201 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.24/33.97, allocations: 8.188 kB / 10.17 GB, free: 417.1 MB / 1.201 GB (rm -f Buildings_9_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic.pipe ; mkfifo Buildings_9_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic.pipe ; head -c 1048576 < Buildings_9_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic.pipe >> ../files/Buildings_9_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic_res.mat --tempDir=temp_Buildings_9_Buildings_HeatTransfer_Windows_BaseClasses_Examples_WindowRadiationElectrochromic_fmu --startTime=0 --stopTime=864000 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_HeatTransfer_Windows_BaseClasses_Examples_WindowRadiationElectrochromic.fmu > Buildings_9_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic.pipe 2>&1)