Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.ThermalZones.Detailed.Examples.Controls.Validation.ElectrochromicWindow.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_Buildings.ThermalZones.Detailed.Examples.Controls.Validation.ElectrochromicWindow") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.61/2.61, allocations: 390.5 MB / 398 MB, free: 10.91 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001576/0.001576, allocations: 180.8 kB / 491.2 MB, free: 1.539 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.788/1.788, allocations: 221.5 MB / 0.7868 GB, free: 13.37 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00121/0.00121, allocations: 83.95 kB / 0.9269 GB, free: 13.88 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.117e-05/2.12e-05, allocations: 4 kB / 1.073 GB, free: 182.1 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3905/0.3905, allocations: 143 MB / 1.212 GB, free: 39.55 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.359/1.75, allocations: 151.9 MB / 1.361 GB, free: 17.63 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002542/1.75, allocations: 84.8 kB / 1.361 GB, free: 17.63 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01155/1.762, allocations: 3.706 MB / 1.364 GB, free: 33.09 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.984e-06/1.762, allocations: 0 / 1.364 GB, free: 33.09 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.603e-05/1.762, allocations: 3.875 kB / 1.364 GB, free: 33.09 MB / 0.8386 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.0011/1.763, allocations: 0.588 MB / 1.365 GB, free: 32.63 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.201e-05/1.763, allocations: 7.75 kB / 1.365 GB, free: 32.63 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.803e-05/1.763, allocations: 28.42 kB / 1.365 GB, free: 32.61 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003541/1.763, allocations: 254.4 kB / 1.365 GB, free: 32.39 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.079e-05/1.763, allocations: 9.5 kB / 1.365 GB, free: 32.39 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.077e-05/1.763, allocations: 11.16 kB / 1.365 GB, free: 32.39 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002375/1.764, allocations: 102.2 kB / 1.365 GB, free: 32.39 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002926/1.764, allocations: 165.4 kB / 1.366 GB, free: 32.33 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.137e-05/1.764, allocations: 0 / 1.366 GB, free: 32.33 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.41e-05/1.764, allocations: 0 / 1.366 GB, free: 32.33 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.303e-05/1.764, allocations: 3.844 kB / 1.366 GB, free: 32.33 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000836/1.765, allocations: 0.5253 MB / 1.366 GB, free: 32.06 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003432/1.765, allocations: 144 kB / 1.366 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001059/1.765, allocations: 60.11 kB / 1.366 GB, free: 32.03 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 3.617e-05/1.765, allocations: 0.8438 kB / 1.366 GB, free: 32.03 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002552/1.766, allocations: 139.5 kB / 1.366 GB, free: 31.97 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=15): time 1.502e-06/1.766, allocations: 3.875 kB / 1.366 GB, free: 31.97 MB / 0.8386 GB Notification: Performance of matching and sorting (n=15): time 0.0003297/1.766, allocations: 144 kB / 1.367 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.952e-05/1.766, allocations: 109.7 kB / 1.367 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001641/1.766, allocations: 162.2 kB / 1.367 GB, free: 31.71 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 3.235e-05/1.766, allocations: 32.12 kB / 1.367 GB, free: 31.68 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 8.477e-05/1.766, allocations: 134.2 kB / 1.367 GB, free: 31.58 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 4.645e-05/1.766, allocations: 48.45 kB / 1.367 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.443e-05/1.767, allocations: 0 / 1.367 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001462/1.767, allocations: 334 kB / 1.367 GB, free: 31.23 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.659e-05/1.767, allocations: 56.64 kB / 1.367 GB, free: 31.23 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001009/1.767, allocations: 75.64 kB / 1.367 GB, free: 31.2 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.584e-05/1.767, allocations: 47.7 kB / 1.367 GB, free: 31.2 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/1.767, allocations: 0 / 1.367 GB, free: 31.2 MB / 0.8386 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002583/1.767, allocations: 173 kB / 1.368 GB, free: 31.16 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 8.532e-05/1.767, allocations: 155.6 kB / 1.368 GB, free: 31 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.311e-06/1.767, allocations: 0 / 1.368 GB, free: 31 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.698e-05/1.767, allocations: 0 / 1.368 GB, free: 31 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003103/1.768, allocations: 69.91 kB / 1.368 GB, free: 31 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.667e-06/1.768, allocations: 7.828 kB / 1.368 GB, free: 30.99 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003229/1.768, allocations: 66.36 kB / 1.368 GB, free: 30.98 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.453e-05/1.768, allocations: 10.16 kB / 1.368 GB, free: 30.98 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 8.486e-06/1.768, allocations: 3.812 kB / 1.368 GB, free: 30.98 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002159/1.768, allocations: 130.4 kB / 1.368 GB, free: 30.98 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.152e-06/1.768, allocations: 0 / 1.368 GB, free: 30.98 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.467e-06/1.768, allocations: 3.906 kB / 1.368 GB, free: 30.98 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002411/1.769, allocations: 59.61 kB / 1.368 GB, free: 30.97 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.303e-06/1.769, allocations: 0 / 1.368 GB, free: 30.97 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002816/1.769, allocations: 56.48 kB / 1.368 GB, free: 30.96 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.397e-05/1.769, allocations: 3.969 kB / 1.368 GB, free: 30.96 MB / 0.8386 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 () * 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.0001159/1.769, allocations: 121 kB / 1.368 GB, free: 30.85 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.252e-05/1.769, allocations: 23.3 kB / 1.368 GB, free: 30.84 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.857e-05/1.769, allocations: 20.08 kB / 1.368 GB, free: 30.83 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.789e-06/1.769, allocations: 3.656 kB / 1.368 GB, free: 30.83 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/1.769, allocations: 0 / 1.368 GB, free: 30.83 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/1.769, allocations: 0 / 1.368 GB, free: 30.83 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002347/1.769, allocations: 257.3 kB / 1.369 GB, free: 30.66 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/1.769, allocations: 0 / 1.369 GB, free: 30.66 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002811/1.77, allocations: 66.47 kB / 1.369 GB, free: 30.66 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/1.77, allocations: 3.969 kB / 1.369 GB, free: 30.66 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.761e-05/1.77, allocations: 4 kB / 1.369 GB, free: 30.66 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/1.77, allocations: 0 / 1.369 GB, free: 30.66 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/1.77, allocations: 0 / 1.369 GB, free: 30.66 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002445/1.77, allocations: 183.9 kB / 1.369 GB, free: 30.58 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 5.111e-05/1.77, allocations: 99.28 kB / 1.369 GB, free: 30.47 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.96e-05/1.77, allocations: 0 / 1.369 GB, free: 30.47 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003207/1.77, allocations: 70.14 kB / 1.369 GB, free: 30.46 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.73e-05/1.77, allocations: 24.38 kB / 1.369 GB, free: 30.46 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.611e-05/1.771, allocations: 11.31 kB / 1.369 GB, free: 30.46 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001014/1.771, allocations: 143.3 kB / 1.369 GB, free: 30.38 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.6e-07/1.771, allocations: 4 kB / 1.369 GB, free: 30.38 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003162/1.771, allocations: 72.34 kB / 1.369 GB, free: 30.37 MB / 0.8386 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) * 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.0001639/1.771, allocations: 110.5 kB / 1.369 GB, free: 30.27 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0004564/1.772, allocations: 423.2 kB / 1.37 GB, free: 30.02 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.436e-06/1.772, allocations: 3.844 kB / 1.37 GB, free: 30.02 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.000109/1.772, allocations: 62.12 kB / 1.37 GB, free: 30.02 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002889/1.772, allocations: 39.19 kB / 1.37 GB, free: 30.01 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005107/1.773, allocations: 219.2 kB / 1.37 GB, free: 29.89 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003952/1.773, allocations: 0.7362 MB / 1.371 GB, free: 29.19 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0001613/1.773, allocations: 30.94 kB / 1.371 GB, free: 29.18 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.641e-05/1.773, allocations: 21.98 kB / 1.371 GB, free: 29.18 MB / 0.8386 GB Notification: Performance of SimCode: time 2.61e-07/1.773, allocations: 0 / 1.371 GB, free: 29.18 MB / 0.8386 GB Notification: Performance of Templates: time 0.006285/1.779, allocations: 3.091 MB / 1.374 GB, free: 29.02 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.ThermalZones.Detailed.Examples.Controls.Validation.ElectrochromicWindow.makefile (rm -f Buildings_latest_Buildings.ThermalZones.Detailed.Examples.Controls.Validation.ElectrochromicWindow.pipe ; mkfifo Buildings_latest_Buildings.ThermalZones.Detailed.Examples.Controls.Validation.ElectrochromicWindow.pipe ; head -c 1048576 < Buildings_latest_Buildings.ThermalZones.Detailed.Examples.Controls.Validation.ElectrochromicWindow.pipe >> ../files/Buildings_latest_Buildings.ThermalZones.Detailed.Examples.Controls.Validation.ElectrochromicWindow.sim & ./Buildings_latest_Buildings.ThermalZones.Detailed.Examples.Controls.Validation.ElectrochromicWindow -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.ThermalZones.Detailed.Examples.Controls.Validation.ElectrochromicWindow.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.ThermalZones.Detailed.Examples.Controls.Validation.ElectrochromicWindow_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_ThermalZones_Detailed_Examples_Controls_Validation_ElectrochromicWindow.csv","../files/Buildings_latest_Buildings.ThermalZones.Detailed.Examples.Controls.Validation.ElectrochromicWindow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches