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.0009371/0.0009371, allocations: 91.92 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001383/0.001383, allocations: 184.2 kB / 16.92 MB, free: 6.926 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.485/1.485, allocations: 223.3 MB / 241 MB, free: 5.246 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.735/2.735, allocations: 462.7 MB / 0.7371 GB, free: 15.59 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004878/0.0004874, allocations: 9.094 kB / 0.9034 GB, free: 36.5 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3649/0.3654, allocations: 159.6 MB / 1.059 GB, free: 4.988 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.ThermalZones.Detailed.Examples.Controls.Validation.ElectrochromicWindow): time 0.002491/0.3679, allocations: 1.709 MB / 1.061 GB, free: 3.27 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001363/0.3693, allocations: 0.6352 MB / 1.062 GB, free: 2.629 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001785/0.3695, allocations: 4 kB / 1.062 GB, free: 2.625 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 5.171e-05/0.3696, allocations: 15.8 kB / 1.062 GB, free: 2.609 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0002305/0.3698, allocations: 39.7 kB / 1.062 GB, free: 2.57 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005171/0.3704, allocations: 147.7 kB / 1.062 GB, free: 2.426 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0003853/0.3708, allocations: 263.3 kB / 1.062 GB, free: 2.168 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001761/0.3709, allocations: 62.98 kB / 1.062 GB, free: 2.109 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002194/0.3712, allocations: 95.59 kB / 1.062 GB, free: 2.016 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001763/0.3713, allocations: 91.59 kB / 1.062 GB, free: 1.926 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 4.329e-05/0.3714, allocations: 8 kB / 1.062 GB, free: 1.918 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 3.531e-05/0.3714, allocations: 15.94 kB / 1.062 GB, free: 1.902 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 5.162e-05/0.3715, allocations: 43.75 kB / 1.062 GB, free: 1.859 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001423/0.3717, allocations: 121.2 kB / 1.062 GB, free: 1.734 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002208/0.3719, allocations: 183.8 kB / 1.063 GB, free: 1.555 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.3719, allocations: 0 / 1.063 GB, free: 1.555 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.194e-06/0.3719, allocations: 4 kB / 1.063 GB, free: 1.551 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 8.726e-06/0.3719, allocations: 0 / 1.063 GB, free: 1.551 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.001385/0.3733, allocations: 0.623 MB / 1.063 GB, free: 0.8672 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 5.387e-05/0.3734, allocations: 15.97 kB / 1.063 GB, free: 0.8516 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.062e-05/0.3735, allocations: 20.75 kB / 1.063 GB, free: 0.832 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004113/0.3739, allocations: 259.8 kB / 1.064 GB, free: 0.5391 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.635e-05/0.3739, allocations: 12.38 kB / 1.064 GB, free: 0.5273 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.709e-05/0.374, allocations: 16.36 kB / 1.064 GB, free: 0.5117 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007205/0.3747, allocations: 268.3 kB / 1.064 GB, free: 240 kB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.003e-05/0.3747, allocations: 0 / 1.064 GB, free: 240 kB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.042e-05/0.3747, allocations: 8 kB / 1.064 GB, free: 232 kB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.005e-06/0.3748, allocations: 4 kB / 1.064 GB, free: 228 kB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009764/0.3757, allocations: 268.3 kB / 1.064 GB, free: 15.96 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008436/0.3766, allocations: 0.5273 MB / 1.065 GB, free: 15.38 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001087/0.3777, allocations: 314.5 kB / 1.065 GB, free: 15.07 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004864/0.3782, allocations: 148.7 kB / 1.065 GB, free: 14.92 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.113e-05/0.3782, allocations: 0 / 1.065 GB, free: 14.92 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006557/0.3789, allocations: 223 kB / 1.065 GB, free: 14.69 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=15): time 3.586e-06/0.3789, allocations: 3.984 kB / 1.065 GB, free: 14.68 MB / 0.8262 GB Notification: Performance of matching and sorting (n=15): time 0.001561/0.3805, allocations: 455.8 kB / 1.066 GB, free: 14.23 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.571e-05/0.3805, allocations: 59.39 kB / 1.066 GB, free: 14.16 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002107/0.3808, allocations: 215 kB / 1.066 GB, free: 13.95 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.317e-05/0.3808, allocations: 33.7 kB / 1.066 GB, free: 13.91 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 8.279e-05/0.3809, allocations: 128.2 kB / 1.066 GB, free: 13.77 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 5.028e-05/0.3809, allocations: 35.45 kB / 1.066 GB, free: 13.74 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.226e-05/0.381, allocations: 29.7 kB / 1.066 GB, free: 13.7 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001225/0.3811, allocations: 326.8 kB / 1.066 GB, free: 13.38 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004879/0.3816, allocations: 135.9 kB / 1.067 GB, free: 13.24 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004834/0.3821, allocations: 147.9 kB / 1.067 GB, free: 13.1 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009292/0.3831, allocations: 318.6 kB / 1.067 GB, free: 12.77 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.285e-06/0.3831, allocations: 0 / 1.067 GB, free: 12.77 MB / 0.8262 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001124/0.3842, allocations: 420.5 kB / 1.067 GB, free: 12.34 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001008/0.3843, allocations: 154.7 kB / 1.068 GB, free: 12.18 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.598e-06/0.3843, allocations: 4 kB / 1.068 GB, free: 12.17 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.666e-05/0.3844, allocations: 3.938 kB / 1.068 GB, free: 12.17 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003054/0.3847, allocations: 59.88 kB / 1.068 GB, free: 12.11 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.074e-06/0.3847, allocations: 0 / 1.068 GB, free: 12.11 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003269/0.385, allocations: 59.8 kB / 1.068 GB, free: 12.05 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.458e-05/0.385, allocations: 7.984 kB / 1.068 GB, free: 12.04 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 8.165e-06/0.3851, allocations: 4 kB / 1.068 GB, free: 12.04 MB / 0.8262 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009683/0.386, allocations: 368.4 kB / 1.068 GB, free: 11.67 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.574e-06/0.3861, allocations: 4 kB / 1.068 GB, free: 11.66 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.42e-06/0.3861, allocations: 3.938 kB / 1.068 GB, free: 11.66 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002446/0.3863, allocations: 55.89 kB / 1.068 GB, free: 11.61 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.104e-06/0.3863, allocations: 0 / 1.068 GB, free: 11.61 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000304/0.3866, allocations: 59.8 kB / 1.068 GB, free: 11.55 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.674e-05/0.3867, allocations: 8 kB / 1.068 GB, free: 11.54 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.0001732/0.3868, allocations: 206.5 kB / 1.068 GB, free: 11.33 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.779e-05/0.3869, allocations: 19.75 kB / 1.068 GB, free: 11.31 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.624e-05/0.387, allocations: 29.52 kB / 1.068 GB, free: 11.28 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-06/0.387, allocations: 3.938 kB / 1.068 GB, free: 11.28 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/0.387, allocations: 0 / 1.068 GB, free: 11.28 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.65e-06/0.387, allocations: 4 kB / 1.068 GB, free: 11.27 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00026/0.3872, allocations: 261.5 kB / 1.069 GB, free: 10.97 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.3873, allocations: 4 kB / 1.069 GB, free: 10.96 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002809/0.3875, allocations: 63.88 kB / 1.069 GB, free: 10.9 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.647e-06/0.3876, allocations: 7.938 kB / 1.069 GB, free: 10.89 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.668e-05/0.3876, allocations: 0 / 1.069 GB, free: 10.89 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.3876, allocations: 0 / 1.069 GB, free: 10.89 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.3876, allocations: 0 / 1.069 GB, free: 10.89 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001071/0.3887, allocations: 360.5 kB / 1.069 GB, free: 10.52 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 7.642e-05/0.3888, allocations: 92.92 kB / 1.069 GB, free: 10.41 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.113e-05/0.3888, allocations: 15.92 kB / 1.069 GB, free: 10.4 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002907/0.3891, allocations: 43.95 kB / 1.069 GB, free: 10.36 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001006/0.3892, allocations: 35.95 kB / 1.069 GB, free: 10.32 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.499e-05/0.3893, allocations: 4 kB / 1.069 GB, free: 10.32 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001457/0.3894, allocations: 152.6 kB / 1.069 GB, free: 10.17 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3894, allocations: 0 / 1.069 GB, free: 10.17 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003492/0.3898, allocations: 71.84 kB / 1.07 GB, free: 10.1 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.0001709/0.3899, allocations: 111.2 kB / 1.07 GB, free: 9.977 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001589/0.3915, allocations: 0.6613 MB / 1.07 GB, free: 9.266 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.983e-06/0.3916, allocations: 0 / 1.07 GB, free: 9.266 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0004994/0.3921, allocations: 151.8 kB / 1.07 GB, free: 9.117 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003506/0.3924, allocations: 41.73 kB / 1.07 GB, free: 9.078 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009015/0.3933, allocations: 441.3 kB / 1.071 GB, free: 8.617 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002609/0.3936, allocations: 0.7326 MB / 1.072 GB, free: 7.855 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.661e-05/0.3937, allocations: 27.36 kB / 1.072 GB, free: 7.828 MB / 0.8262 GB Notification: Performance of SimCode: time 3.71e-07/0.3937, allocations: 0 / 1.072 GB, free: 7.828 MB / 0.8262 GB Notification: Performance of Templates: time 0.004831/0.3985, allocations: 2.726 MB / 1.074 GB, free: 5.117 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/jenkins1/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