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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.00107/0.00107, allocations: 98.27 kB / 15.36 MB, free: 0.7305 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.001367/0.001367, allocations: 173.4 kB / 16.27 MB, free: 6.664 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.554/1.554, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 3.025/3.025, allocations: 462.7 MB / 0.7364 GB, free: 284 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0003938/0.0003938, allocations: 20.33 kB / 0.9028 GB, free: 36.64 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3795/0.3799, allocations: 159.6 MB / 1.059 GB, free: 5.484 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.ThermalZones.Detailed.Examples.Controls.Validation.ElectrochromicWindow): time 0.002098/0.3821, allocations: 1.713 MB / 1.06 GB, free: 3.762 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001012/0.3831, allocations: 0.639 MB / 1.061 GB, free: 3.117 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.371e-05/0.3832, allocations: 3.938 kB / 1.061 GB, free: 3.113 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.388e-05/0.3832, allocations: 15.84 kB / 1.061 GB, free: 3.098 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001434/0.3834, allocations: 39.66 kB / 1.061 GB, free: 3.059 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003716/0.3838, allocations: 139.8 kB / 1.061 GB, free: 2.922 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002665/0.3841, allocations: 267.2 kB / 1.061 GB, free: 2.66 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001452/0.3842, allocations: 56.3 kB / 1.061 GB, free: 2.605 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001191/0.3843, allocations: 87.61 kB / 1.062 GB, free: 2.52 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001623/0.3845, allocations: 99.58 kB / 1.062 GB, free: 2.422 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.674e-05/0.3845, allocations: 8 kB / 1.062 GB, free: 2.414 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 2.923e-05/0.3846, allocations: 15.94 kB / 1.062 GB, free: 2.398 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 4.411e-05/0.3846, allocations: 39.81 kB / 1.062 GB, free: 2.359 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001072/0.3847, allocations: 121.2 kB / 1.062 GB, free: 2.234 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002381/0.385, allocations: 235.4 kB / 1.062 GB, free: 2.004 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.888e-06/0.385, allocations: 0 / 1.062 GB, free: 2.004 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.282e-06/0.385, allocations: 0 / 1.062 GB, free: 2.004 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.799e-06/0.385, allocations: 0 / 1.062 GB, free: 2.004 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.001209/0.3862, allocations: 0.6307 MB / 1.063 GB, free: 1.312 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.987e-05/0.3863, allocations: 8.031 kB / 1.063 GB, free: 1.305 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.036e-05/0.3863, allocations: 20.75 kB / 1.063 GB, free: 1.285 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003578/0.3867, allocations: 259.9 kB / 1.063 GB, free: 0.9922 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.907e-05/0.3867, allocations: 16.31 kB / 1.063 GB, free: 0.9766 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.24e-05/0.3868, allocations: 16.36 kB / 1.063 GB, free: 0.9609 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000677/0.3875, allocations: 268.9 kB / 1.063 GB, free: 0.6836 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.065e-06/0.3875, allocations: 0 / 1.063 GB, free: 0.6836 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.732e-05/0.3875, allocations: 8 kB / 1.063 GB, free: 0.6758 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.621e-06/0.3875, allocations: 0 / 1.063 GB, free: 0.6758 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009478/0.3885, allocations: 275.8 kB / 1.063 GB, free: 416 kB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007996/0.3893, allocations: 0.5234 MB / 1.064 GB, free: 15.83 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001115/0.3904, allocations: 314.5 kB / 1.064 GB, free: 15.52 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004875/0.3909, allocations: 148.7 kB / 1.064 GB, free: 15.37 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.239e-05/0.391, allocations: 4 kB / 1.064 GB, free: 15.36 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006478/0.3916, allocations: 223 kB / 1.065 GB, free: 15.13 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=15): time 1.502e-06/0.3916, allocations: 0 / 1.065 GB, free: 15.13 MB / 0.8262 GB Notification: Performance of matching and sorting (n=15): time 0.001591/0.3932, allocations: 455.3 kB / 1.065 GB, free: 14.68 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.446e-05/0.3933, allocations: 59.41 kB / 1.065 GB, free: 14.61 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000206/0.3935, allocations: 207 kB / 1.065 GB, free: 14.4 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.144e-05/0.3935, allocations: 37.7 kB / 1.065 GB, free: 14.36 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 8.678e-05/0.3936, allocations: 132.2 kB / 1.066 GB, free: 14.22 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.836e-05/0.3937, allocations: 39.45 kB / 1.066 GB, free: 14.18 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.441e-05/0.3937, allocations: 25.7 kB / 1.066 GB, free: 14.15 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001222/0.3939, allocations: 330.8 kB / 1.066 GB, free: 13.82 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004947/0.3944, allocations: 139.8 kB / 1.066 GB, free: 13.68 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004748/0.3948, allocations: 147 kB / 1.066 GB, free: 13.54 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009386/0.3958, allocations: 321.6 kB / 1.066 GB, free: 13.21 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.3958, allocations: 0 / 1.066 GB, free: 13.21 MB / 0.8262 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001143/0.397, allocations: 414 kB / 1.067 GB, free: 12.79 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001017/0.3971, allocations: 153.1 kB / 1.067 GB, free: 12.62 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.49e-06/0.3971, allocations: 4 kB / 1.067 GB, free: 12.62 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.798e-05/0.3971, allocations: 4 kB / 1.067 GB, free: 12.62 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003035/0.3974, allocations: 59.88 kB / 1.067 GB, free: 12.56 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.692e-06/0.3974, allocations: 0 / 1.067 GB, free: 12.56 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003276/0.3978, allocations: 59.8 kB / 1.067 GB, free: 12.5 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.546e-05/0.3978, allocations: 7.984 kB / 1.067 GB, free: 12.49 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 6.843e-06/0.3978, allocations: 4 kB / 1.067 GB, free: 12.49 MB / 0.8262 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009815/0.3988, allocations: 363.2 kB / 1.067 GB, free: 12.12 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.944e-06/0.3988, allocations: 0 / 1.067 GB, free: 12.12 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.67e-06/0.3988, allocations: 7.938 kB / 1.068 GB, free: 12.11 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002457/0.3991, allocations: 55.89 kB / 1.068 GB, free: 12.06 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.933e-06/0.3991, allocations: 4 kB / 1.068 GB, free: 12.05 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002832/0.3994, allocations: 59.8 kB / 1.068 GB, free: 12 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.658e-05/0.3994, allocations: 11.98 kB / 1.068 GB, free: 11.98 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 (HMea.count,$PRE.HMea.count,HMea.T_start,$PRE.HMea.T_start,TMea.count,$PRE.TMea.count,TMea.T_start,$PRE.TMea.T_start,$whenCondition1,$whenCondition2) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001697/0.3996, allocations: 202.7 kB / 1.068 GB, free: 11.78 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.788e-05/0.3996, allocations: 23.75 kB / 1.068 GB, free: 11.75 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.734e-05/0.3997, allocations: 25.52 kB / 1.068 GB, free: 11.73 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.719e-06/0.3997, allocations: 0 / 1.068 GB, free: 11.73 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.133e-06/0.3997, allocations: 0 / 1.068 GB, free: 11.73 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/0.3997, allocations: 0 / 1.068 GB, free: 11.73 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002796/0.4, allocations: 269.5 kB / 1.068 GB, free: 11.42 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.4, allocations: 0 / 1.068 GB, free: 11.42 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002796/0.4003, allocations: 67.81 kB / 1.068 GB, free: 11.35 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.302e-06/0.4003, allocations: 3.938 kB / 1.068 GB, free: 11.35 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.332e-05/0.4004, allocations: 4 kB / 1.068 GB, free: 11.34 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.063e-06/0.4004, allocations: 0 / 1.068 GB, free: 11.34 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.4004, allocations: 0 / 1.068 GB, free: 11.34 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001101/0.4015, allocations: 368.6 kB / 1.069 GB, free: 10.96 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.7e-05/0.4015, allocations: 92.86 kB / 1.069 GB, free: 10.86 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.892e-05/0.4016, allocations: 11.92 kB / 1.069 GB, free: 10.84 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002874/0.4019, allocations: 43.95 kB / 1.069 GB, free: 10.8 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.894e-05/0.402, allocations: 35.95 kB / 1.069 GB, free: 10.77 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.4e-05/0.402, allocations: 4 kB / 1.069 GB, free: 10.76 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001369/0.4022, allocations: 152.6 kB / 1.069 GB, free: 10.61 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4022, allocations: 3.938 kB / 1.069 GB, free: 10.61 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000322/0.4025, allocations: 67.84 kB / 1.069 GB, free: 10.54 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001286/0.4026, allocations: 111.2 kB / 1.069 GB, free: 10.42 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001624/0.4043, allocations: 0.6665 MB / 1.07 GB, free: 9.707 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.4043, allocations: 0 / 1.07 GB, free: 9.707 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0005245/0.4048, allocations: 157.9 kB / 1.07 GB, free: 9.555 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003429/0.4052, allocations: 34.81 kB / 1.07 GB, free: 9.523 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000889/0.406, allocations: 418.6 kB / 1.07 GB, free: 9.086 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002901/0.4064, allocations: 0.7326 MB / 1.071 GB, free: 8.328 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001192/0.4065, allocations: 21.55 kB / 1.071 GB, free: 8.305 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.899e-05/0.4066, allocations: 19.42 kB / 1.071 GB, free: 8.285 MB / 0.8262 GB Notification: Performance of SimCode: time 2.41e-07/0.4066, allocations: 0 / 1.071 GB, free: 8.285 MB / 0.8262 GB Notification: Performance of Templates: time 0.006737/0.4133, allocations: 2.862 MB / 1.074 GB, free: 5.473 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