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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.0008812/0.0008812, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.005819/0.00582, allocations: 169.9 kB / 16.26 MB, free: 6.613 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.289/1.289, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.143/2.143, allocations: 390.9 MB / 0.6664 GB, free: 2.387 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0002792/0.0002791, allocations: 8 kB / 0.8161 GB, free: 13.14 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4998/0.5001, allocations: 142.4 MB / 0.9552 GB, free: 7.777 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic): time 0.005377/0.5055, allocations: 6.783 MB / 0.9618 GB, free: 2.422 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.1333/0.6388, allocations: 151.9 MB / 1.11 GB, free: 112 kB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001169/0.64, allocations: 35.75 kB / 1.11 GB, free: 76 kB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0043/0.6443, allocations: 1.779 MB / 1.112 GB, free: 14.29 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.002443/0.6468, allocations: 1.048 MB / 1.113 GB, free: 13.24 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.002633/0.6494, allocations: 1.247 MB / 1.114 GB, free: 12 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.004342/0.6538, allocations: 5.205 MB / 1.119 GB, free: 6.793 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001522/0.6553, allocations: 1.226 MB / 1.12 GB, free: 5.516 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002374/0.6577, allocations: 1.268 MB / 1.122 GB, free: 4.242 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001484/0.6592, allocations: 1.291 MB / 1.123 GB, free: 2.945 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.0001758/0.6594, allocations: 68 kB / 1.123 GB, free: 2.879 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003377/0.6628, allocations: 2.216 MB / 1.125 GB, free: 0.6602 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.002858/0.6656, allocations: 4.534 MB / 1.13 GB, free: 12.12 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.003048/0.6687, allocations: 3.983 MB / 1.133 GB, free: 8.105 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0115/0.6802, allocations: 17.08 MB / 1.15 GB, free: 6.977 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 2.986e-06/0.6802, allocations: 0 / 1.15 GB, free: 6.977 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.433e-06/0.6802, allocations: 0 / 1.15 GB, free: 6.977 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 0.0001191/0.6804, allocations: 4 kB / 1.15 GB, free: 6.973 MB / 0.9044 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.01839/0.6988, allocations: 11.35 MB / 1.161 GB, free: 11.5 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.86e-05/0.6988, allocations: 8.031 kB / 1.161 GB, free: 11.49 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002822/0.6991, allocations: 244.9 kB / 1.161 GB, free: 11.24 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002169/0.7013, allocations: 0.9234 MB / 1.162 GB, free: 10.31 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 1.757/2.459, allocations: 0.9946 GB / 2.157 GB, free: 411.9 MB / 1.17 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001398/2.459, allocations: 171 kB / 2.157 GB, free: 411.8 MB / 1.17 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004534/2.459, allocations: 246.5 kB / 2.157 GB, free: 411.7 MB / 1.17 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003418/2.463, allocations: 2.381 MB / 2.16 GB, free: 410.4 MB / 1.17 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.038e-05/2.463, allocations: 3.938 kB / 2.16 GB, free: 410.4 MB / 1.17 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001507/2.463, allocations: 69.5 kB / 2.16 GB, free: 410.4 MB / 1.17 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.397e-05/2.463, allocations: 39.81 kB / 2.16 GB, free: 410.4 MB / 1.17 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002994/2.466, allocations: 2.483 MB / 2.162 GB, free: 409.3 MB / 1.17 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1079/2.574, allocations: 242.7 MB / 2.399 GB, free: 174.8 MB / 1.17 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002334/2.576, allocations: 2.002 MB / 2.401 GB, free: 172.7 MB / 1.17 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001066/2.577, allocations: 1.292 MB / 2.402 GB, free: 171.4 MB / 1.17 GB Notification: Performance of preOpt evalFunc (simulation): time 7.562e-05/2.577, allocations: 40.61 kB / 2.402 GB, free: 171.4 MB / 1.17 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00136/2.579, allocations: 1.369 MB / 2.404 GB, free: 170 MB / 1.17 GB Notification: Performance of pre-optimization done (n=138): time 2.384e-06/2.579, allocations: 0 / 2.404 GB, free: 170 MB / 1.17 GB Notification: Performance of matching and sorting (n=138): time 0.007037/2.586, allocations: 4.344 MB / 2.408 GB, free: 165.6 MB / 1.17 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001206/2.586, allocations: 362.5 kB / 2.408 GB, free: 165.2 MB / 1.17 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.277/4.863, allocations: 1.182 GB / 3.591 GB, free: 382.2 MB / 1.186 GB Notification: Performance of collectPreVariables (initialization): time 0.0004304/4.863, allocations: 89.08 kB / 3.591 GB, free: 382.1 MB / 1.186 GB Notification: Performance of collectInitialEqns (initialization): time 0.003649/4.867, allocations: 3.74 MB / 3.595 GB, free: 378.5 MB / 1.186 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003242/4.867, allocations: 453.6 kB / 3.595 GB, free: 378.3 MB / 1.186 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003047/4.867, allocations: 357.9 kB / 3.595 GB, free: 378 MB / 1.186 GB Notification: Performance of setup shared object (initialization): time 3.281e-05/4.868, allocations: 301.1 kB / 3.596 GB, free: 377.7 MB / 1.186 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00194/4.869, allocations: 1.94 MB / 3.597 GB, free: 375.7 MB / 1.186 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002172/4.872, allocations: 2.891 MB / 3.6 GB, free: 372.5 MB / 1.186 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003812/4.875, allocations: 4.628 MB / 3.605 GB, free: 367.5 MB / 1.186 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.284e-05/4.875, allocations: 8 kB / 3.605 GB, free: 367.5 MB / 1.186 GB Notification: Performance of matching and sorting (n=376) (initialization): time 0.008213/4.884, allocations: 6.009 MB / 3.611 GB, free: 361.6 MB / 1.186 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001388/4.884, allocations: 201.6 kB / 3.611 GB, free: 361.4 MB / 1.186 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.323e-05/4.884, allocations: 28 kB / 3.611 GB, free: 361.3 MB / 1.186 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005381/4.884, allocations: 124.8 kB / 3.611 GB, free: 361.2 MB / 1.186 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001704/4.886, allocations: 0.62 MB / 3.612 GB, free: 360.6 MB / 1.186 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001453/4.888, allocations: 1.565 MB / 3.613 GB, free: 358.9 MB / 1.186 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004464/4.892, allocations: 1.202 MB / 3.614 GB, free: 357.7 MB / 1.186 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001699/4.892, allocations: 144 kB / 3.614 GB, free: 357.5 MB / 1.186 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.003498/4.896, allocations: 3.854 MB / 3.618 GB, free: 353.7 MB / 1.186 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001497/4.897, allocations: 0.7544 MB / 3.619 GB, free: 352.9 MB / 1.186 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004777/4.902, allocations: 4.364 MB / 3.623 GB, free: 348.5 MB / 1.186 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.855e-06/4.902, allocations: 16.78 kB / 3.623 GB, free: 348.5 MB / 1.186 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.506e-06/4.902, allocations: 0 / 3.623 GB, free: 348.5 MB / 1.186 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.024e-05/4.902, allocations: 8.734 kB / 3.623 GB, free: 348.5 MB / 1.186 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00523/4.907, allocations: 6.787 MB / 3.63 GB, free: 341.7 MB / 1.186 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.609e-06/4.907, allocations: 0 / 3.63 GB, free: 341.7 MB / 1.186 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000763/4.908, allocations: 215.7 kB / 3.63 GB, free: 341.5 MB / 1.186 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004525/4.909, allocations: 87.31 kB / 3.63 GB, free: 341.4 MB / 1.186 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.021e-05/4.909, allocations: 39.97 kB / 3.63 GB, free: 341.4 MB / 1.186 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001263/4.91, allocations: 1.544 MB / 3.632 GB, free: 339.7 MB / 1.186 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/4.91, allocations: 6.703 kB / 3.632 GB, free: 339.7 MB / 1.186 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004682/4.915, allocations: 3.886 MB / 3.636 GB, free: 335.7 MB / 1.186 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003258/4.918, allocations: 3.152 MB / 3.639 GB, free: 332.6 MB / 1.186 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001037/4.919, allocations: 32 kB / 3.639 GB, free: 332.5 MB / 1.186 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003128/4.922, allocations: 0.785 MB / 3.639 GB, free: 331.7 MB / 1.186 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001729/4.922, allocations: 97.72 kB / 3.639 GB, free: 331.6 MB / 1.186 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001034/4.922, allocations: 67.97 kB / 3.64 GB, free: 331.6 MB / 1.186 GB Notification: Performance of sorting global known variables: time 1.377/6.3, allocations: 0.9475 GB / 4.587 GB, free: 291.5 MB / 1.186 GB Notification: Performance of sort global known variables: time 6.01e-07/6.3, allocations: 0 / 4.587 GB, free: 291.5 MB / 1.186 GB Notification: Performance of remove unused functions: time 0.00694/6.307, allocations: 1.866 MB / 4.589 GB, free: 289.8 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.01024/6.317, allocations: 5.377 MB / 4.594 GB, free: 285.2 MB / 1.186 GB Notification: Performance of simCode: created initialization part: time 0.005639/6.323, allocations: 5.739 MB / 4.6 GB, free: 279.5 MB / 1.186 GB Notification: Performance of simCode: created event and clocks part: time 5.841e-06/6.323, allocations: 0 / 4.6 GB, free: 279.5 MB / 1.186 GB Notification: Performance of simCode: created simulation system equations: time 0.002195/6.325, allocations: 2.724 MB / 4.602 GB, free: 276.7 MB / 1.186 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00873/6.334, allocations: 0.7945 MB / 4.603 GB, free: 276 MB / 1.186 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 7.741/14.07, allocations: 4.836 GB / 9.439 GB, free: 262.9 MB / 1.201 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003379/14.08, allocations: 4.651 MB / 9.444 GB, free: 258.2 MB / 1.201 GB Notification: Performance of simCode: alias equations: time 0.005146/14.08, allocations: 3.001 MB / 9.446 GB, free: 255.5 MB / 1.201 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004318/14.09, allocations: 4.028 MB / 9.45 GB, free: 251.4 MB / 1.201 GB Notification: Performance of SimCode: time 6.61e-07/14.09, allocations: 0 / 9.45 GB, free: 251.4 MB / 1.201 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.017/16.1, allocations: 0.5097 GB / 9.96 GB, free: 245 MB / 1.217 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001546/16.1, allocations: 328.7 kB / 9.96 GB, free: 244.6 MB / 1.217 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.711/22.82, allocations: 0 / 9.96 GB, free: 244.6 MB / 1.217 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)