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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.192/1.192, allocations: 249.4 MB / 256.7 MB, free: 7.047 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001119/0.001119, allocations: 181.2 kB / 316 MB, free: 3.598 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.061/1.061, allocations: 205.1 MB / 0.5667 GB, free: 15.64 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.0008524/0.0008524, allocations: 93.41 kB / 0.671 GB, free: 4.777 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 5.189e-06/5.21e-06, allocations: 0 / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1627/0.1628, allocations: 106.3 MB / 0.8846 GB, free: 12.65 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4746/0.6375, allocations: 134.6 MB / 1.016 GB, free: 4.398 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003135/0.6378, allocations: 80.69 kB / 1.016 GB, free: 4.352 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.01068/0.6485, allocations: 3.45 MB / 1.019 GB, free: 1.43 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.459e-05/0.6486, allocations: 8 kB / 1.019 GB, free: 1.422 MB / 0.6355 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.0009933/0.6496, allocations: 0.6055 MB / 1.02 GB, free: 0.7734 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.491e-05/0.6496, allocations: 8.031 kB / 1.02 GB, free: 0.7656 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.259e-05/0.6497, allocations: 23.72 kB / 1.02 GB, free: 0.7422 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003175/0.65, allocations: 273.2 kB / 1.02 GB, free: 468 kB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.292e-05/0.6501, allocations: 4 kB / 1.02 GB, free: 464 kB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.244e-05/0.6501, allocations: 8 kB / 1.02 GB, free: 456 kB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003146/0.6504, allocations: 108.8 kB / 1.02 GB, free: 384 kB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002698/0.6507, allocations: 163.4 kB / 1.021 GB, free: 244 kB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.02e-05/0.6507, allocations: 0 / 1.021 GB, free: 244 kB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.217e-05/0.6508, allocations: 0 / 1.021 GB, free: 244 kB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.853e-06/0.6508, allocations: 4 kB / 1.021 GB, free: 240 kB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007614/0.6515, allocations: 0.5218 MB / 1.021 GB, free: 15.76 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003011/0.6519, allocations: 144.2 kB / 1.021 GB, free: 15.65 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001011/0.652, allocations: 55.67 kB / 1.021 GB, free: 15.62 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 3.04e-05/0.652, allocations: 4 kB / 1.021 GB, free: 15.61 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001597/0.6522, allocations: 112.3 kB / 1.021 GB, free: 15.52 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=15): time 1.363e-06/0.6522, allocations: 0 / 1.021 GB, free: 15.52 MB / 0.6511 GB Notification: Performance of matching and sorting (n=15): time 0.0002988/0.6525, allocations: 147.9 kB / 1.022 GB, free: 15.39 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.57e-05/0.6525, allocations: 114.1 kB / 1.022 GB, free: 15.26 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001374/0.6527, allocations: 170.9 kB / 1.022 GB, free: 15.11 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 2.595e-05/0.6527, allocations: 29.2 kB / 1.022 GB, free: 15.08 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 4.879e-05/0.6528, allocations: 115.4 kB / 1.022 GB, free: 14.97 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 4.266e-05/0.6528, allocations: 43.02 kB / 1.022 GB, free: 14.93 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.221e-05/0.6528, allocations: 0 / 1.022 GB, free: 14.93 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 8.779e-05/0.6529, allocations: 333.2 kB / 1.022 GB, free: 14.61 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.141e-05/0.653, allocations: 49.06 kB / 1.022 GB, free: 14.58 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001103/0.6532, allocations: 82.06 kB / 1.022 GB, free: 14.52 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.041e-05/0.6532, allocations: 51.72 kB / 1.023 GB, free: 14.48 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.6532, allocations: 0 / 1.023 GB, free: 14.48 MB / 0.6511 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002525/0.6535, allocations: 156.9 kB / 1.023 GB, free: 14.36 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 3.932e-05/0.6536, allocations: 98.64 kB / 1.023 GB, free: 14.26 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.278e-06/0.6536, allocations: 0 / 1.023 GB, free: 14.26 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.036e-05/0.6536, allocations: 0 / 1.023 GB, free: 14.26 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003224/0.6539, allocations: 79.95 kB / 1.023 GB, free: 14.18 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.248e-06/0.6539, allocations: 4 kB / 1.023 GB, free: 14.18 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003454/0.6543, allocations: 79.34 kB / 1.023 GB, free: 14.11 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.244e-05/0.6543, allocations: 4 kB / 1.023 GB, free: 14.1 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 5.47e-06/0.6543, allocations: 4 kB / 1.023 GB, free: 14.1 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0001879/0.6545, allocations: 111 kB / 1.023 GB, free: 14.02 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.122e-06/0.6545, allocations: 4 kB / 1.023 GB, free: 14.02 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.864e-06/0.6545, allocations: 4 kB / 1.023 GB, free: 14.01 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002574/0.6548, allocations: 63.5 kB / 1.023 GB, free: 13.95 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.322e-06/0.6548, allocations: 0 / 1.023 GB, free: 13.95 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002979/0.6551, allocations: 63.86 kB / 1.023 GB, free: 13.89 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.809e-05/0.6551, allocations: 4 kB / 1.023 GB, free: 13.89 MB / 0.6511 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 9.241e-05/0.6552, allocations: 116.5 kB / 1.023 GB, free: 13.77 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.048e-05/0.6553, allocations: 19.72 kB / 1.023 GB, free: 13.75 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.311e-05/0.6553, allocations: 20.09 kB / 1.023 GB, free: 13.74 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.288e-06/0.6553, allocations: 4 kB / 1.023 GB, free: 13.73 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.466e-06/0.6553, allocations: 3.938 kB / 1.023 GB, free: 13.73 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.6553, allocations: 3.984 kB / 1.023 GB, free: 13.73 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001846/0.6555, allocations: 252.3 kB / 1.024 GB, free: 13.48 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.6555, allocations: 0 / 1.024 GB, free: 13.48 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002996/0.6558, allocations: 74.94 kB / 1.024 GB, free: 13.41 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.923e-06/0.6558, allocations: 0 / 1.024 GB, free: 13.41 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.285e-05/0.6559, allocations: 11.98 kB / 1.024 GB, free: 13.39 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.176e-06/0.6559, allocations: 7.984 kB / 1.024 GB, free: 13.39 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.6559, allocations: 0 / 1.024 GB, free: 13.39 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002257/0.6561, allocations: 167 kB / 1.024 GB, free: 13.24 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 4.887e-05/0.6562, allocations: 96.84 kB / 1.024 GB, free: 13.12 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.536e-05/0.6562, allocations: 7.938 kB / 1.024 GB, free: 13.12 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003323/0.6566, allocations: 67.94 kB / 1.024 GB, free: 13.05 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.452e-05/0.6567, allocations: 31.73 kB / 1.024 GB, free: 13.03 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.653e-05/0.6567, allocations: 10.92 kB / 1.024 GB, free: 13.02 MB / 0.6511 GB Notification: Performance of sort global known variables: time 8.894e-05/0.6568, allocations: 138.5 kB / 1.024 GB, free: 12.91 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.000301/0.6571, allocations: 76.09 kB / 1.024 GB, free: 12.83 MB / 0.6511 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.0001191/0.6572, allocations: 103.2 kB / 1.024 GB, free: 12.72 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.000387/0.6576, allocations: 310.8 kB / 1.025 GB, free: 12.46 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.6576, allocations: 0 / 1.025 GB, free: 12.46 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0001244/0.6577, allocations: 69.98 kB / 1.025 GB, free: 12.42 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002561/0.658, allocations: 29.28 kB / 1.025 GB, free: 12.4 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005537/0.6586, allocations: 249.8 kB / 1.025 GB, free: 12.16 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003144/0.6589, allocations: 0.7584 MB / 1.026 GB, free: 11.38 MB / 0.6511 GB Notification: Performance of SimCode: time 2.41e-07/0.6589, allocations: 4 kB / 1.026 GB, free: 11.38 MB / 0.6511 GB Notification: Performance of Templates: time 0.006495/0.6654, allocations: 4.029 MB / 1.03 GB, free: 7.402 MB / 0.6511 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