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/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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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: 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00105/0.00105, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.001333/0.001333, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.6/1.6, allocations: 223.3 MB / 240 MB, free: 5.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.968/2.968, allocations: 462.6 MB / 0.736 GB, free: 15.73 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004982/0.0004985, allocations: 7.875 kB / 0.9021 GB, free: 36.54 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4088/0.4093, allocations: 159.6 MB / 1.058 GB, free: 5.301 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.ThermalZones.Detailed.Examples.Controls.Validation.ElectrochromicWindow): time 0.002477/0.4118, allocations: 1.659 MB / 1.06 GB, free: 3.633 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001141/0.413, allocations: 0.612 MB / 1.06 GB, free: 3.016 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001716/0.4132, allocations: 8 kB / 1.06 GB, free: 3.008 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 4.969e-05/0.4132, allocations: 15.84 kB / 1.06 GB, free: 2.992 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001879/0.4134, allocations: 31.66 kB / 1.06 GB, free: 2.961 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004455/0.4139, allocations: 115.8 kB / 1.06 GB, free: 2.848 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0003397/0.4142, allocations: 243.2 kB / 1.061 GB, free: 2.609 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001537/0.4144, allocations: 52.45 kB / 1.061 GB, free: 2.559 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001787/0.4146, allocations: 87.62 kB / 1.061 GB, free: 2.473 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001571/0.4148, allocations: 99.56 kB / 1.061 GB, free: 2.375 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 4.486e-05/0.4148, allocations: 12 kB / 1.061 GB, free: 2.363 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 3.396e-05/0.4149, allocations: 12 kB / 1.061 GB, free: 2.352 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 4.662e-05/0.4149, allocations: 39.83 kB / 1.061 GB, free: 2.312 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 9.172e-05/0.415, allocations: 53.58 kB / 1.061 GB, free: 2.254 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002177/0.4152, allocations: 187.8 kB / 1.061 GB, free: 2.07 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.661e-06/0.4152, allocations: 0 / 1.061 GB, free: 2.07 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.172e-06/0.4152, allocations: 0 / 1.061 GB, free: 2.07 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 8.226e-06/0.4153, allocations: 0 / 1.061 GB, free: 2.07 MB / 0.8106 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.001266/0.4165, allocations: 0.6267 MB / 1.062 GB, free: 1.383 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.203e-05/0.4166, allocations: 8.031 kB / 1.062 GB, free: 1.375 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.537e-05/0.4167, allocations: 19.81 kB / 1.062 GB, free: 1.355 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000433/0.4171, allocations: 262.6 kB / 1.062 GB, free: 1.059 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.206e-05/0.4172, allocations: 16 kB / 1.062 GB, free: 1.043 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.423e-05/0.4172, allocations: 15.95 kB / 1.062 GB, free: 1.027 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006611/0.4179, allocations: 264 kB / 1.062 GB, free: 0.7539 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.638e-06/0.4179, allocations: 0 / 1.062 GB, free: 0.7539 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.372e-05/0.4179, allocations: 0 / 1.062 GB, free: 0.7539 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.076e-05/0.4179, allocations: 8 kB / 1.062 GB, free: 0.7461 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008247/0.4188, allocations: 276.3 kB / 1.063 GB, free: 488 kB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009022/0.4197, allocations: 0.5234 MB / 1.063 GB, free: 15.9 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009476/0.4206, allocations: 317.3 kB / 1.063 GB, free: 15.59 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004214/0.4211, allocations: 144.8 kB / 1.064 GB, free: 15.44 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.896e-05/0.4211, allocations: 4 kB / 1.064 GB, free: 15.44 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005911/0.4217, allocations: 215.2 kB / 1.064 GB, free: 15.21 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=15): time 2.244e-06/0.4217, allocations: 0 / 1.064 GB, free: 15.21 MB / 0.8262 GB Notification: Performance of matching and sorting (n=15): time 0.00137/0.4231, allocations: 459.7 kB / 1.064 GB, free: 14.76 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.172e-05/0.4232, allocations: 55.41 kB / 1.064 GB, free: 14.7 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002123/0.4234, allocations: 211 kB / 1.064 GB, free: 14.48 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.667e-05/0.4234, allocations: 29.7 kB / 1.064 GB, free: 14.45 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 9.343e-05/0.4235, allocations: 132.2 kB / 1.065 GB, free: 14.31 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 5.034e-05/0.4236, allocations: 43.45 kB / 1.065 GB, free: 14.27 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.242e-05/0.4236, allocations: 0 / 1.065 GB, free: 14.27 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001219/0.4237, allocations: 326.8 kB / 1.065 GB, free: 13.94 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000434/0.4242, allocations: 147.8 kB / 1.065 GB, free: 13.79 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004069/0.4246, allocations: 143.8 kB / 1.065 GB, free: 13.65 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004258/0.425, allocations: 185.2 kB / 1.065 GB, free: 13.46 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.425, allocations: 0 / 1.065 GB, free: 13.46 MB / 0.8262 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0009497/0.426, allocations: 404.6 kB / 1.066 GB, free: 13.05 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 9.689e-05/0.4261, allocations: 161.1 kB / 1.066 GB, free: 12.87 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.542e-06/0.4261, allocations: 3.984 kB / 1.066 GB, free: 12.87 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.407e-05/0.4261, allocations: 0 / 1.066 GB, free: 12.87 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002668/0.4264, allocations: 55.94 kB / 1.066 GB, free: 12.81 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.292e-06/0.4264, allocations: 0 / 1.066 GB, free: 12.81 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002711/0.4267, allocations: 63.8 kB / 1.066 GB, free: 12.75 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.239e-05/0.4267, allocations: 7.984 kB / 1.066 GB, free: 12.74 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.086e-05/0.4267, allocations: 6.188 kB / 1.066 GB, free: 12.74 MB / 0.8262 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008694/0.4276, allocations: 368.5 kB / 1.066 GB, free: 12.37 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.926e-06/0.4276, allocations: 4 kB / 1.066 GB, free: 12.36 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.126e-06/0.4276, allocations: 0 / 1.066 GB, free: 12.36 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000216/0.4279, allocations: 51.95 kB / 1.066 GB, free: 12.31 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.669e-06/0.4279, allocations: 0 / 1.066 GB, free: 12.31 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002479/0.4281, allocations: 59.8 kB / 1.067 GB, free: 12.25 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.009e-05/0.4281, allocations: 7.984 kB / 1.067 GB, free: 12.25 MB / 0.8262 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.0001832/0.4283, allocations: 209.1 kB / 1.067 GB, free: 12.03 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.859e-05/0.4284, allocations: 19.77 kB / 1.067 GB, free: 12.01 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.325e-05/0.4285, allocations: 29.52 kB / 1.067 GB, free: 11.98 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-06/0.4285, allocations: 0 / 1.067 GB, free: 11.98 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/0.4285, allocations: 0 / 1.067 GB, free: 11.98 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.408e-06/0.4285, allocations: 4 kB / 1.067 GB, free: 11.98 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002631/0.4288, allocations: 269.3 kB / 1.067 GB, free: 11.67 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.534e-06/0.4288, allocations: 4 kB / 1.067 GB, free: 11.66 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002633/0.429, allocations: 63.89 kB / 1.067 GB, free: 11.6 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.39e-06/0.429, allocations: 4 kB / 1.067 GB, free: 11.6 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.9e-05/0.4291, allocations: 0 / 1.067 GB, free: 11.6 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.4291, allocations: 0 / 1.067 GB, free: 11.6 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.4291, allocations: 0 / 1.067 GB, free: 11.6 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009078/0.43, allocations: 364.6 kB / 1.067 GB, free: 11.22 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.792e-05/0.4301, allocations: 92.92 kB / 1.068 GB, free: 11.11 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.915e-05/0.4301, allocations: 7.938 kB / 1.068 GB, free: 11.11 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002505/0.4304, allocations: 47.95 kB / 1.068 GB, free: 11.06 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000107/0.4305, allocations: 31.95 kB / 1.068 GB, free: 11.03 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.145e-05/0.4305, allocations: 11.98 kB / 1.068 GB, free: 11.02 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001384/0.4307, allocations: 148.6 kB / 1.068 GB, free: 10.87 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4307, allocations: 0 / 1.068 GB, free: 10.87 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003566/0.431, allocations: 75.75 kB / 1.068 GB, free: 10.8 MB / 0.8262 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.0001347/0.4312, allocations: 108.2 kB / 1.068 GB, free: 10.68 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001425/0.4326, allocations: 0.6613 MB / 1.069 GB, free: 9.969 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.4326, allocations: 3.938 kB / 1.069 GB, free: 9.965 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0004392/0.4331, allocations: 147.8 kB / 1.069 GB, free: 9.82 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003228/0.4334, allocations: 38.78 kB / 1.069 GB, free: 9.785 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000854/0.4343, allocations: 404.6 kB / 1.069 GB, free: 9.363 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002866/0.4346, allocations: 0.7328 MB / 1.07 GB, free: 8.602 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001385/0.4347, allocations: 25.53 kB / 1.07 GB, free: 8.574 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.458e-05/0.4348, allocations: 19.44 kB / 1.07 GB, free: 8.555 MB / 0.8262 GB Notification: Performance of SimCode: time 4.11e-07/0.4348, allocations: 0 / 1.07 GB, free: 8.555 MB / 0.8262 GB Notification: Performance of Templates: time 0.006456/0.4413, allocations: 2.766 MB / 1.073 GB, free: 5.844 MB / 0.8262 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.ThermalZones.Detailed.Examples.Controls.Validation.ElectrochromicWindow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches