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.001262/0.001262, allocations: 115.3 kB / 15.34 MB, free: 0.5117 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.001265/0.001265, allocations: 195.4 kB / 16.25 MB, free: 6.629 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.253/1.253, allocations: 222.9 MB / 239.9 MB, free: 4.512 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.159/2.159, allocations: 390.2 MB / 0.6644 GB, free: 0.5703 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001196/0.001196, allocations: 59.91 kB / 0.8122 GB, free: 14.7 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4997/0.501, allocations: 140.4 MB / 0.9492 GB, free: 9.316 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic): time 0.006643/0.5076, allocations: 7.262 MB / 0.9563 GB, free: 3.598 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.1534/0.661, allocations: 157 MB / 1.11 GB, free: 13.3 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001478/0.6625, allocations: 31.81 kB / 1.11 GB, free: 13.27 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.004617/0.6672, allocations: 1.799 MB / 1.111 GB, free: 11.46 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.002922/0.6701, allocations: 1.062 MB / 1.112 GB, free: 10.4 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.00306/0.6732, allocations: 1.301 MB / 1.114 GB, free: 9.105 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.004708/0.6779, allocations: 5.233 MB / 1.119 GB, free: 3.867 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001661/0.6796, allocations: 1.277 MB / 1.12 GB, free: 2.531 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002288/0.6819, allocations: 1.752 MB / 1.122 GB, free: 0.7734 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002053/0.6839, allocations: 1.584 MB / 1.123 GB, free: 15.18 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.0006538/0.6846, allocations: 292 kB / 1.124 GB, free: 14.9 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003712/0.6883, allocations: 2.544 MB / 1.126 GB, free: 12.35 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.003332/0.6917, allocations: 4.784 MB / 1.131 GB, free: 7.559 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.004837/0.6965, allocations: 4.829 MB / 1.136 GB, free: 2.707 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.01308/0.7096, allocations: 17.63 MB / 1.153 GB, free: 1.027 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.7096, allocations: 0 / 1.153 GB, free: 1.027 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.674e-06/0.7097, allocations: 0 / 1.153 GB, free: 1.027 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 0.0001798/0.7098, allocations: 4 kB / 1.153 GB, free: 1.023 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.02663/0.7365, allocations: 14.08 MB / 1.167 GB, free: 2.824 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.171e-05/0.7365, allocations: 8.031 kB / 1.167 GB, free: 2.816 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003023/0.7368, allocations: 244.9 kB / 1.167 GB, free: 2.566 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003332/0.7402, allocations: 0.9117 MB / 1.168 GB, free: 1.645 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 1.783/2.523, allocations: 0.9946 GB / 2.162 GB, free: 380.1 MB / 1.154 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001153/2.523, allocations: 175.1 kB / 2.162 GB, free: 380 MB / 1.154 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000411/2.523, allocations: 232 kB / 2.163 GB, free: 379.7 MB / 1.154 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00292/2.526, allocations: 2.389 MB / 2.165 GB, free: 377.3 MB / 1.154 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.936e-05/2.526, allocations: 0 / 2.165 GB, free: 377.3 MB / 1.154 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001482/2.526, allocations: 68 kB / 2.165 GB, free: 377.2 MB / 1.154 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.835e-05/2.527, allocations: 36 kB / 2.165 GB, free: 377.2 MB / 1.154 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00267/2.529, allocations: 2.468 MB / 2.167 GB, free: 374.7 MB / 1.154 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1064/2.636, allocations: 242.6 MB / 2.404 GB, free: 131.9 MB / 1.154 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00244/2.638, allocations: 1.987 MB / 2.406 GB, free: 130 MB / 1.154 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001052/2.639, allocations: 1.28 MB / 2.408 GB, free: 128.7 MB / 1.154 GB Notification: Performance of preOpt evalFunc (simulation): time 7.885e-05/2.639, allocations: 37.09 kB / 2.408 GB, free: 128.6 MB / 1.154 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001372/2.641, allocations: 1.365 MB / 2.409 GB, free: 127.2 MB / 1.154 GB Notification: Performance of pre-optimization done (n=138): time 2.595e-06/2.641, allocations: 0 / 2.409 GB, free: 127.2 MB / 1.154 GB Notification: Performance of matching and sorting (n=138): time 0.008618/2.649, allocations: 4.316 MB / 2.413 GB, free: 122.9 MB / 1.154 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001196/2.649, allocations: 362.5 kB / 2.413 GB, free: 122.5 MB / 1.154 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.28/4.929, allocations: 1.182 GB / 3.596 GB, free: 306.2 MB / 1.17 GB Notification: Performance of collectPreVariables (initialization): time 0.0004518/4.93, allocations: 85.7 kB / 3.596 GB, free: 306.1 MB / 1.17 GB Notification: Performance of collectInitialEqns (initialization): time 0.004082/4.934, allocations: 3.742 MB / 3.6 GB, free: 302.6 MB / 1.17 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004556/4.934, allocations: 449.2 kB / 3.6 GB, free: 302.4 MB / 1.17 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007193/4.935, allocations: 0.6737 MB / 3.601 GB, free: 301.7 MB / 1.17 GB Notification: Performance of setup shared object (initialization): time 3.559e-05/4.935, allocations: 306.5 kB / 3.601 GB, free: 301.4 MB / 1.17 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00195/4.937, allocations: 1.928 MB / 3.603 GB, free: 299.5 MB / 1.17 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002238/4.939, allocations: 2.878 MB / 3.606 GB, free: 296.2 MB / 1.17 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003905/4.943, allocations: 4.615 MB / 3.61 GB, free: 291.3 MB / 1.17 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.235e-05/4.943, allocations: 8 kB / 3.61 GB, free: 291.3 MB / 1.17 GB Notification: Performance of matching and sorting (n=376) (initialization): time 0.009597/4.953, allocations: 5.984 MB / 3.616 GB, free: 285.4 MB / 1.17 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001311/4.953, allocations: 209.6 kB / 3.616 GB, free: 285.2 MB / 1.17 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.379e-05/4.953, allocations: 30.53 kB / 3.616 GB, free: 285.2 MB / 1.17 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005824/4.954, allocations: 120.9 kB / 3.616 GB, free: 285 MB / 1.17 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001783/4.955, allocations: 0.6083 MB / 3.617 GB, free: 284.4 MB / 1.17 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001575/4.957, allocations: 1.692 MB / 3.619 GB, free: 282.6 MB / 1.17 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004896/4.962, allocations: 1.183 MB / 3.62 GB, free: 281.4 MB / 1.17 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001859/4.962, allocations: 144.5 kB / 3.62 GB, free: 281.3 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.003431/4.965, allocations: 3.846 MB / 3.624 GB, free: 277.4 MB / 1.17 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00238/4.968, allocations: 0.7516 MB / 3.624 GB, free: 276.6 MB / 1.17 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005013/4.973, allocations: 4.355 MB / 3.629 GB, free: 272.3 MB / 1.17 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.704e-06/4.973, allocations: 20 kB / 3.629 GB, free: 272.2 MB / 1.17 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.995e-06/4.973, allocations: 64 / 3.629 GB, free: 272.2 MB / 1.17 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.092e-05/4.973, allocations: 11.97 kB / 3.629 GB, free: 272.2 MB / 1.17 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005321/4.978, allocations: 6.772 MB / 3.635 GB, free: 265.4 MB / 1.17 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.579e-06/4.978, allocations: 0 / 3.635 GB, free: 265.4 MB / 1.17 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008234/4.979, allocations: 207.6 kB / 3.635 GB, free: 265.2 MB / 1.17 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004231/4.979, allocations: 76.78 kB / 3.636 GB, free: 265.1 MB / 1.17 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.453e-05/4.98, allocations: 42.78 kB / 3.636 GB, free: 265.1 MB / 1.17 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001389/4.981, allocations: 1.657 MB / 3.637 GB, free: 263.3 MB / 1.17 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/4.981, allocations: 0 / 3.637 GB, free: 263.3 MB / 1.17 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005586/4.987, allocations: 3.868 MB / 3.641 GB, free: 259.4 MB / 1.17 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00369/4.99, allocations: 3.136 MB / 3.644 GB, free: 256.2 MB / 1.17 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001347/4.992, allocations: 35.78 kB / 3.644 GB, free: 256.2 MB / 1.17 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00319/4.995, allocations: 0.7686 MB / 3.645 GB, free: 255.4 MB / 1.17 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002041/4.995, allocations: 105.9 kB / 3.645 GB, free: 255.3 MB / 1.17 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001194/4.995, allocations: 67.97 kB / 3.645 GB, free: 255.3 MB / 1.17 GB Notification: Performance of sorting global known variables: time 1.388/6.384, allocations: 0.9475 GB / 4.592 GB, free: 194.8 MB / 1.17 GB Notification: Performance of sort global known variables: time 7.71e-07/6.384, allocations: 0.5625 kB / 4.592 GB, free: 194.8 MB / 1.17 GB Notification: Performance of remove unused functions: time 0.006223/6.39, allocations: 1.856 MB / 4.594 GB, free: 193.1 MB / 1.17 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.008416/6.398, allocations: 5.361 MB / 4.6 GB, free: 188.5 MB / 1.17 GB Notification: Performance of simCode: created initialization part: time 0.006389/6.405, allocations: 6.566 MB / 4.606 GB, free: 182 MB / 1.17 GB Notification: Performance of simCode: created event and clocks part: time 3.065e-06/6.405, allocations: 0 / 4.606 GB, free: 182 MB / 1.17 GB Notification: Performance of simCode: created simulation system equations: time 0.00193/6.407, allocations: 2.72 MB / 4.609 GB, free: 179.2 MB / 1.17 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00422/6.411, allocations: 0.8277 MB / 4.609 GB, free: 178.4 MB / 1.17 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 7.343/13.75, allocations: 4.836 GB / 9.445 GB, free: 149 MB / 1.186 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003353/13.76, allocations: 4.651 MB / 9.45 GB, free: 144.3 MB / 1.186 GB Notification: Performance of simCode: alias equations: time 0.005493/13.76, allocations: 3.008 MB / 9.453 GB, free: 141.6 MB / 1.186 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005482/13.77, allocations: 4.029 MB / 9.457 GB, free: 137.6 MB / 1.186 GB Notification: Performance of SimCode: time 9.31e-07/13.77, allocations: 0 / 9.457 GB, free: 137.6 MB / 1.186 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.746/18.51, allocations: 0.7087 GB / 10.17 GB, free: 377.9 MB / 1.201 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001917/18.52, allocations: 322.3 kB / 10.17 GB, free: 377.5 MB / 1.201 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.139/25.65, allocations: 7.797 kB / 10.17 GB, free: 377.5 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)