Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.ThermalZones.Detailed.Examples.Controls.Validation.ElectrochromicWindow.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: translateModel(Buildings.ThermalZones.Detailed.Examples.Controls.Validation.ElectrochromicWindow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|conWin.TClear|conWin.TDark|conWin.T|conWin.HClear|conWin.HDark|conWin.H|conWin.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.ThermalZones.Detailed.Examples.Controls.Validation.ElectrochromicWindow") translateModel(Buildings.ThermalZones.Detailed.Examples.Controls.Validation.ElectrochromicWindow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|conWin.TClear|conWin.TDark|conWin.T|conWin.HClear|conWin.HDark|conWin.H|conWin.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.ThermalZones.Detailed.Examples.Controls.Validation.ElectrochromicWindow") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.352/1.352, allocations: 251.9 MB / 266.9 MB, free: 11.02 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.001303/0.001303, allocations: 183.5 kB / 326.5 MB, free: 2.246 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.989/1.989, allocations: 205.4 MB / 0.5775 GB, free: 20.23 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.0009766/0.0009765, allocations: 92.17 kB / 0.6821 GB, free: 12.89 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004305/0.0004305, allocations: 13.64 kB / 0.7963 GB, free: 135 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.277/0.2775, allocations: 106.3 MB / 0.9001 GB, free: 63.96 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1954/0.4729, allocations: 134.4 MB / 1.031 GB, free: 9.43 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003101/0.4733, allocations: 91.88 kB / 1.031 GB, free: 9.34 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.0111/0.4844, allocations: 3.71 MB / 1.035 GB, free: 5.613 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.805e-06/0.4844, allocations: 4 kB / 1.035 GB, free: 5.609 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 1.549e-05/0.4845, allocations: 0 / 1.035 GB, free: 5.609 MB / 0.6823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.001185/0.4857, allocations: 0.6253 MB / 1.036 GB, free: 4.926 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.881e-05/0.4857, allocations: 8.031 kB / 1.036 GB, free: 4.918 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.553e-05/0.4858, allocations: 19.81 kB / 1.036 GB, free: 4.898 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003634/0.4862, allocations: 275.5 kB / 1.036 GB, free: 4.586 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.844e-05/0.4862, allocations: 8 kB / 1.036 GB, free: 4.578 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.471e-05/0.4863, allocations: 16 kB / 1.036 GB, free: 4.562 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007193/0.487, allocations: 280 kB / 1.036 GB, free: 4.273 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.031e-05/0.487, allocations: 7.938 kB / 1.036 GB, free: 4.266 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.884e-05/0.487, allocations: 4 kB / 1.036 GB, free: 4.262 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.605e-06/0.487, allocations: 7.938 kB / 1.036 GB, free: 4.254 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009427/0.488, allocations: 319.7 kB / 1.037 GB, free: 3.941 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009464/0.489, allocations: 0.5625 MB / 1.037 GB, free: 3.328 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001197/0.4902, allocations: 394.4 kB / 1.037 GB, free: 2.934 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 4.118e-05/0.4902, allocations: 4 kB / 1.037 GB, free: 2.93 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000722/0.4909, allocations: 238.8 kB / 1.038 GB, free: 2.688 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=15): time 2.826e-06/0.491, allocations: 4 kB / 1.038 GB, free: 2.684 MB / 0.6823 GB Notification: Performance of matching and sorting (n=15): time 0.001599/0.4926, allocations: 0.5165 MB / 1.038 GB, free: 2.16 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.264e-05/0.4927, allocations: 106.8 kB / 1.038 GB, free: 2.031 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002224/0.4929, allocations: 190.3 kB / 1.038 GB, free: 1.84 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 3.775e-05/0.4929, allocations: 33.7 kB / 1.039 GB, free: 1.801 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001082/0.4931, allocations: 132.3 kB / 1.039 GB, free: 1.664 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 5.593e-05/0.4931, allocations: 47.34 kB / 1.039 GB, free: 1.617 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.398e-05/0.4931, allocations: 8 kB / 1.039 GB, free: 1.609 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001552/0.4933, allocations: 330.8 kB / 1.039 GB, free: 1.277 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004776/0.4938, allocations: 159.9 kB / 1.039 GB, free: 1.121 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004991/0.4943, allocations: 194.4 kB / 1.039 GB, free: 0.9219 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004917/0.4948, allocations: 205.5 kB / 1.04 GB, free: 0.7109 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-06/0.4948, allocations: 8 kB / 1.04 GB, free: 0.7031 MB / 0.6823 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001117/0.496, allocations: 456.4 kB / 1.04 GB, free: 244 kB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001182/0.4961, allocations: 152.4 kB / 1.04 GB, free: 72 kB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.955e-06/0.4961, allocations: 0 / 1.04 GB, free: 72 kB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.097e-05/0.4961, allocations: 0 / 1.04 GB, free: 72 kB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003243/0.4965, allocations: 71.94 kB / 1.04 GB, free: 0 / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.997e-06/0.4965, allocations: 0 / 1.04 GB, free: 0 / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003877/0.4969, allocations: 80.14 kB / 1.04 GB, free: 15.92 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.432e-05/0.4969, allocations: 4 kB / 1.04 GB, free: 15.91 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 8.977e-06/0.4969, allocations: 4 kB / 1.04 GB, free: 15.91 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008781/0.4978, allocations: 369.1 kB / 1.041 GB, free: 15.54 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.603e-06/0.4978, allocations: 0 / 1.041 GB, free: 15.54 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.489e-06/0.4978, allocations: 4 kB / 1.041 GB, free: 15.54 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002342/0.4981, allocations: 51.95 kB / 1.041 GB, free: 15.48 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.007e-06/0.4981, allocations: 3.984 kB / 1.041 GB, free: 15.48 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002902/0.4984, allocations: 63.8 kB / 1.041 GB, free: 15.42 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.55e-05/0.4984, allocations: 4 kB / 1.041 GB, free: 15.41 MB / 0.698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,$whenCondition1,$PRE.TMea.T_start,TMea.T_start,$PRE.TMea.count,TMea.count,$PRE.HMea.T_start,HMea.T_start,$PRE.HMea.count,HMea.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002154/0.4986, allocations: 213 kB / 1.041 GB, free: 15.2 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.778e-05/0.4987, allocations: 19.8 kB / 1.041 GB, free: 15.18 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.288e-05/0.4988, allocations: 25.53 kB / 1.041 GB, free: 15.15 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.04e-06/0.4988, allocations: 0 / 1.041 GB, free: 15.15 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.045e-06/0.4988, allocations: 0 / 1.041 GB, free: 15.15 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.252e-06/0.4988, allocations: 3.984 kB / 1.041 GB, free: 15.14 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003332/0.4992, allocations: 289.3 kB / 1.041 GB, free: 14.81 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.4992, allocations: 0 / 1.041 GB, free: 14.81 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000293/0.4995, allocations: 67.94 kB / 1.041 GB, free: 14.75 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.4995, allocations: 4 kB / 1.041 GB, free: 14.74 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.218e-05/0.4995, allocations: 3.984 kB / 1.041 GB, free: 14.74 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.297e-06/0.4995, allocations: 4 kB / 1.041 GB, free: 14.73 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.033e-06/0.4995, allocations: 0 / 1.041 GB, free: 14.73 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001032/0.5006, allocations: 406.2 kB / 1.042 GB, free: 14.32 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 7.786e-05/0.5007, allocations: 96.91 kB / 1.042 GB, free: 14.21 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.262e-05/0.5007, allocations: 4 kB / 1.042 GB, free: 14.2 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003099/0.501, allocations: 67.94 kB / 1.042 GB, free: 14.14 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001117/0.5011, allocations: 23.95 kB / 1.042 GB, free: 14.11 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.818e-05/0.5012, allocations: 15.92 kB / 1.042 GB, free: 14.1 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0001477/0.5013, allocations: 152.7 kB / 1.042 GB, free: 13.95 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.7e-07/0.5013, allocations: 4 kB / 1.042 GB, free: 13.95 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0003538/0.5017, allocations: 87.66 kB / 1.042 GB, free: 13.86 MB / 0.698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,TMea.T_start,TMea.count,HMea.T_start,HMea.count) * Number of discrete states: 2 (TMea.count,HMea.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001982/0.5019, allocations: 107.2 kB / 1.042 GB, free: 13.75 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.001624/0.5035, allocations: 0.7107 MB / 1.043 GB, free: 12.99 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.5035, allocations: 0 / 1.043 GB, free: 12.99 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0005041/0.5041, allocations: 174.5 kB / 1.043 GB, free: 12.82 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003188/0.5044, allocations: 46.62 kB / 1.043 GB, free: 12.78 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009672/0.5054, allocations: 448.4 kB / 1.044 GB, free: 12.31 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003205/0.5057, allocations: 0.7367 MB / 1.044 GB, free: 11.54 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0001387/0.5058, allocations: 29.5 kB / 1.044 GB, free: 11.51 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.047e-05/0.5059, allocations: 19.44 kB / 1.044 GB, free: 11.49 MB / 0.698 GB Notification: Performance of SimCode: time 5.01e-07/0.5059, allocations: 0 / 1.044 GB, free: 11.49 MB / 0.698 GB Notification: Performance of Templates: time 0.006186/0.5121, allocations: 3.132 MB / 1.047 GB, free: 8.418 MB / 0.698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.ThermalZones.Detailed.Examples.Controls.Validation.ElectrochromicWindow.makefile (rm -f Buildings_maint.7.0.x_Buildings.ThermalZones.Detailed.Examples.Controls.Validation.ElectrochromicWindow.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.ThermalZones.Detailed.Examples.Controls.Validation.ElectrochromicWindow.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.ThermalZones.Detailed.Examples.Controls.Validation.ElectrochromicWindow.pipe >> ../files/Buildings_maint.7.0.x_Buildings.ThermalZones.Detailed.Examples.Controls.Validation.ElectrochromicWindow.sim & ./Buildings_maint.7.0.x_Buildings.ThermalZones.Detailed.Examples.Controls.Validation.ElectrochromicWindow -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.ThermalZones.Detailed.Examples.Controls.Validation.ElectrochromicWindow.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.ThermalZones.Detailed.Examples.Controls.Validation.ElectrochromicWindow_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_ThermalZones_Detailed_Examples_Controls_Validation_ElectrochromicWindow.csv","../files/Buildings_maint.7.0.x_Buildings.ThermalZones.Detailed.Examples.Controls.Validation.ElectrochromicWindow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches