Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable.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.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booTimTab.y.1.|booTimTab.y.2.|booTimTabTwi.y.1.|booTimTabTwi.y.2.|booTimTabOneRow.y.1.|booTimTabOneRow.y.2.",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable") translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booTimTab.y.1.|booTimTab.y.2.|booTimTabTwi.y.1.|booTimTabTwi.y.2.|booTimTabOneRow.y.1.|booTimTabOneRow.y.2.",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008554/0.008553, allocations: 101.6 kB / 15.73 MB, free: 5.98 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.002666/0.002666, allocations: 187.4 kB / 16.67 MB, free: 5.918 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.587/1.587, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 3.185/3.185, allocations: 461.9 MB / 0.7348 GB, free: 14.57 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00126/0.001261, allocations: 67.89 kB / 1.054 GB, free: 7.055 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4479/0.4491, allocations: 157.4 MB / 1.208 GB, free: 9.547 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable): time 0.00227/0.4515, allocations: 0.8474 MB / 1.209 GB, free: 8.695 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001922/0.4534, allocations: 1.463 MB / 1.21 GB, free: 7.219 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.187e-05/0.4535, allocations: 7.938 kB / 1.21 GB, free: 7.211 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0005133/0.454, allocations: 187.5 kB / 1.21 GB, free: 7.027 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0001417/0.4542, allocations: 115.6 kB / 1.21 GB, free: 6.914 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.001007/0.4552, allocations: 371.2 kB / 1.211 GB, free: 6.559 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0008792/0.4561, allocations: 0.8776 MB / 1.212 GB, free: 5.68 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001863/0.4563, allocations: 92.25 kB / 1.212 GB, free: 5.586 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000306/0.4566, allocations: 343.5 kB / 1.212 GB, free: 5.25 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003496/0.457, allocations: 271.2 kB / 1.212 GB, free: 4.984 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.0001109/0.4571, allocations: 48 kB / 1.212 GB, free: 4.938 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000231/0.4573, allocations: 104 kB / 1.212 GB, free: 4.836 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0003818/0.4577, allocations: 351.3 kB / 1.213 GB, free: 4.492 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.00027/0.458, allocations: 270.8 kB / 1.213 GB, free: 4.227 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0008202/0.4588, allocations: 0.9116 MB / 1.214 GB, free: 3.312 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.4588, allocations: 0 / 1.214 GB, free: 3.312 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.924e-06/0.4588, allocations: 0 / 1.214 GB, free: 3.312 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 1.441e-05/0.4589, allocations: 4 kB / 1.214 GB, free: 3.309 MB / 0.9669 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 27 * Number of variables: 27 Notification: Performance of Generate backend data structure: time 0.001404/0.4603, allocations: 0.8879 MB / 1.215 GB, free: 2.363 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.344e-05/0.4603, allocations: 8.625 kB / 1.215 GB, free: 2.355 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001683/0.4605, allocations: 52.38 kB / 1.215 GB, free: 2.305 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007116/0.4612, allocations: 0.5448 MB / 1.215 GB, free: 1.723 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.609e-05/0.4612, allocations: 24.61 kB / 1.215 GB, free: 1.699 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001107/0.4614, allocations: 36.38 kB / 1.215 GB, free: 1.664 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004281/0.4618, allocations: 306.2 kB / 1.216 GB, free: 1.352 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.237e-06/0.4618, allocations: 192 / 1.216 GB, free: 1.352 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.706e-05/0.4618, allocations: 15.92 kB / 1.216 GB, free: 1.336 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.274e-06/0.4618, allocations: 4 kB / 1.216 GB, free: 1.332 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003091/0.4622, allocations: 215.8 kB / 1.216 GB, free: 1.121 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001708/0.4639, allocations: 1.184 MB / 1.217 GB, free: 15.88 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006011/0.4645, allocations: 467.6 kB / 1.217 GB, free: 15.39 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002274/0.4647, allocations: 182.6 kB / 1.218 GB, free: 15.21 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.148e-05/0.4647, allocations: 7.938 kB / 1.218 GB, free: 15.2 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004201/0.4652, allocations: 323.2 kB / 1.218 GB, free: 14.86 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=24): time 1.512e-06/0.4652, allocations: 4 kB / 1.218 GB, free: 14.86 MB / 0.9825 GB Notification: Performance of matching and sorting (n=24): time 0.0009396/0.4661, allocations: 0.6297 MB / 1.219 GB, free: 14.22 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.802e-05/0.4662, allocations: 114.8 kB / 1.219 GB, free: 14.09 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006298/0.4668, allocations: 0.6031 MB / 1.219 GB, free: 13.48 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 8.649e-05/0.4669, allocations: 49.7 kB / 1.219 GB, free: 13.42 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001974/0.4671, allocations: 213.5 kB / 1.22 GB, free: 13.21 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 4.882e-05/0.4672, allocations: 55.34 kB / 1.22 GB, free: 13.16 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002522/0.4675, allocations: 185.5 kB / 1.22 GB, free: 12.97 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.000143/0.4676, allocations: 358.8 kB / 1.22 GB, free: 12.61 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001664/0.4678, allocations: 131.8 kB / 1.22 GB, free: 12.48 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007428/0.4685, allocations: 0.7103 MB / 1.221 GB, free: 11.6 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003152/0.4689, allocations: 296.6 kB / 1.221 GB, free: 11.26 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.025e-06/0.4689, allocations: 0 / 1.221 GB, free: 11.26 MB / 0.9825 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0006131/0.4695, allocations: 424.7 kB / 1.222 GB, free: 10.84 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 2.14e-05/0.4695, allocations: 8 kB / 1.222 GB, free: 10.83 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.474e-06/0.4695, allocations: 7.938 kB / 1.222 GB, free: 10.82 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.644e-05/0.4696, allocations: 4 kB / 1.222 GB, free: 10.82 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001654/0.4697, allocations: 39.86 kB / 1.222 GB, free: 10.78 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.109e-05/0.4697, allocations: 7.984 kB / 1.222 GB, free: 10.77 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001189/0.4709, allocations: 120.2 kB / 1.222 GB, free: 10.66 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.642e-05/0.471, allocations: 16.73 kB / 1.222 GB, free: 10.64 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 33 ($whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,booTimTab.intTimTab.idx,$PRE.booTimTab.intTimTab.idx,booTimTab.intTimTab.y[2],$PRE.booTimTab.intTimTab.y[2],booTimTab.intTimTab.y[1],$PRE.booTimTab.intTimTab.y[1],booTimTab.y[2],booTimTab.y[1],$whenCondition5,booTimTabOneRow.intTimTab.idx,$PRE.booTimTabOneRow.intTimTab.idx,booTimTabOneRow.intTimTab.y[2],$PRE.booTimTabOneRow.intTimTab.y[2],booTimTabOneRow.intTimTab.y[1],$PRE.booTimTabOneRow.intTimTab.y[1],booTimTabOneRow.y[2],booTimTabOneRow.y[1],$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,booTimTabTwi.intTimTab.idx,$PRE.booTimTabTwi.intTimTab.idx,booTimTabTwi.intTimTab.y[2],$PRE.booTimTabTwi.intTimTab.y[2],booTimTabTwi.intTimTab.y[1],$PRE.booTimTabTwi.intTimTab.y[1],booTimTabTwi.y[2],booTimTabTwi.y[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * 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.0003526/0.4713, allocations: 261.6 kB / 1.222 GB, free: 10.38 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.719e-05/0.4714, allocations: 39.53 kB / 1.222 GB, free: 10.34 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.343e-05/0.4715, allocations: 55.31 kB / 1.222 GB, free: 10.28 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.311e-06/0.4715, allocations: 7.875 kB / 1.222 GB, free: 10.27 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.486e-06/0.4715, allocations: 4.25 kB / 1.222 GB, free: 10.27 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.47e-06/0.4715, allocations: 3.984 kB / 1.222 GB, free: 10.26 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00039/0.4719, allocations: 405.2 kB / 1.223 GB, free: 9.816 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.4719, allocations: 3.938 kB / 1.223 GB, free: 9.812 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.535e-05/0.472, allocations: 11.98 kB / 1.223 GB, free: 9.801 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.927e-06/0.472, allocations: 8 kB / 1.223 GB, free: 9.793 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.847e-05/0.472, allocations: 4 kB / 1.223 GB, free: 9.789 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.276e-06/0.472, allocations: 3.938 kB / 1.223 GB, free: 9.785 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.524e-06/0.472, allocations: 4 kB / 1.223 GB, free: 9.781 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006593/0.4727, allocations: 0.5142 MB / 1.223 GB, free: 9.242 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001041/0.4728, allocations: 120.7 kB / 1.223 GB, free: 9.105 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.871e-05/0.4729, allocations: 11.98 kB / 1.223 GB, free: 9.094 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001519/0.473, allocations: 19.92 kB / 1.223 GB, free: 9.074 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.676e-05/0.4731, allocations: 35.95 kB / 1.223 GB, free: 9.039 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.724e-05/0.4731, allocations: 8 kB / 1.223 GB, free: 9.031 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0004669/0.4736, allocations: 439 kB / 1.224 GB, free: 8.602 MB / 0.9825 GB Notification: Performance of sort global known variables: time 3.5e-07/0.4736, allocations: 0 / 1.224 GB, free: 8.602 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0004362/0.4741, allocations: 107.9 kB / 1.224 GB, free: 8.496 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 24 ($whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,booTimTab.y[1],booTimTab.y[2],booTimTab.intTimTab.y[1],booTimTab.intTimTab.y[2],booTimTab.intTimTab.idx,$whenCondition5,booTimTabOneRow.y[1],booTimTabOneRow.y[2],booTimTabOneRow.intTimTab.y[1],booTimTabOneRow.intTimTab.y[2],booTimTabOneRow.intTimTab.idx,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,booTimTabTwi.y[1],booTimTabTwi.y[2],booTimTabTwi.intTimTab.y[1],booTimTabTwi.intTimTab.y[2],booTimTabTwi.intTimTab.idx) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 9 * 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.0002459/0.4743, allocations: 153.3 kB / 1.224 GB, free: 8.34 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0005329/0.4749, allocations: 361.2 kB / 1.224 GB, free: 7.988 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.4749, allocations: 0 / 1.224 GB, free: 7.988 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0002432/0.4751, allocations: 191.8 kB / 1.224 GB, free: 7.801 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002918/0.4754, allocations: 42.7 kB / 1.224 GB, free: 7.762 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001231/0.4767, allocations: 0.8238 MB / 1.225 GB, free: 6.902 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004481/0.4771, allocations: 0.8387 MB / 1.226 GB, free: 6.035 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.000209/0.4773, allocations: 91.31 kB / 1.226 GB, free: 5.949 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.333e-05/0.4774, allocations: 43.42 kB / 1.226 GB, free: 5.906 MB / 0.9825 GB Notification: Performance of SimCode: time 2.1e-07/0.4774, allocations: 0 / 1.226 GB, free: 5.906 MB / 0.9825 GB Notification: Performance of Templates: time 0.01412/0.4916, allocations: 7.97 MB / 1.234 GB, free: 13.99 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_TimeTable.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches