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.001481/0.001481, allocations: 103.9 kB / 16.4 MB, free: 6.469 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.001656/0.001656, allocations: 189.7 kB / 17.34 MB, free: 5.719 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.269/1.269, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.466/2.466, allocations: 461.9 MB / 0.7355 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001451/0.001451, allocations: 71.88 kB / 1.055 GB, free: 7.637 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7218/0.7232, allocations: 157.4 MB / 1.208 GB, free: 13.6 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable): time 0.00193/0.7252, allocations: 0.8589 MB / 1.209 GB, free: 12.75 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001857/0.7271, allocations: 1.447 MB / 1.211 GB, free: 11.29 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001018/0.7272, allocations: 7.938 kB / 1.211 GB, free: 11.28 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0004634/0.7277, allocations: 203.4 kB / 1.211 GB, free: 11.08 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001543/0.7278, allocations: 107.6 kB / 1.211 GB, free: 10.98 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009915/0.7288, allocations: 368.2 kB / 1.211 GB, free: 10.62 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0009037/0.7298, allocations: 0.8816 MB / 1.212 GB, free: 9.742 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001761/0.7299, allocations: 84.27 kB / 1.212 GB, free: 9.656 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004891/0.7304, allocations: 351.5 kB / 1.213 GB, free: 9.312 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004444/0.7309, allocations: 267.2 kB / 1.213 GB, free: 9.051 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 0.0002191/0.7311, allocations: 44 kB / 1.213 GB, free: 9.008 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003141/0.7314, allocations: 107.9 kB / 1.213 GB, free: 8.902 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0004148/0.7319, allocations: 343.3 kB / 1.213 GB, free: 8.566 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0003786/0.7322, allocations: 270.9 kB / 1.214 GB, free: 8.301 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0008768/0.7331, allocations: 0.9132 MB / 1.214 GB, free: 7.391 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.598e-06/0.7331, allocations: 0 / 1.214 GB, free: 7.391 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.773e-06/0.7332, allocations: 0 / 1.214 GB, free: 7.391 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.594e-05/0.7332, allocations: 0 / 1.214 GB, free: 7.391 MB / 0.9356 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.001632/0.7348, allocations: 0.8958 MB / 1.215 GB, free: 6.438 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.245e-05/0.7348, allocations: 8.031 kB / 1.215 GB, free: 6.43 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002172/0.7351, allocations: 56.38 kB / 1.215 GB, free: 6.375 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007396/0.7358, allocations: 0.5448 MB / 1.216 GB, free: 5.789 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.6e-05/0.7358, allocations: 24.61 kB / 1.216 GB, free: 5.766 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001107/0.736, allocations: 32.38 kB / 1.216 GB, free: 5.734 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004528/0.7364, allocations: 314.2 kB / 1.216 GB, free: 5.414 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.716e-06/0.7364, allocations: 192 / 1.216 GB, free: 5.414 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.8e-05/0.7365, allocations: 7.938 kB / 1.216 GB, free: 5.406 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.562e-06/0.7365, allocations: 4 kB / 1.216 GB, free: 5.402 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003178/0.7368, allocations: 227.8 kB / 1.217 GB, free: 5.18 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001797/0.7386, allocations: 1.176 MB / 1.218 GB, free: 3.945 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000586/0.7392, allocations: 463.8 kB / 1.218 GB, free: 3.465 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002269/0.7394, allocations: 182.5 kB / 1.218 GB, free: 3.277 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.215e-05/0.7395, allocations: 4 kB / 1.218 GB, free: 3.273 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004227/0.7399, allocations: 337.4 kB / 1.219 GB, free: 2.922 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=24): time 1.482e-06/0.7399, allocations: 0 / 1.219 GB, free: 2.922 MB / 0.9356 GB Notification: Performance of matching and sorting (n=24): time 0.0009633/0.7409, allocations: 0.626 MB / 1.219 GB, free: 2.289 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.991e-05/0.741, allocations: 122.8 kB / 1.219 GB, free: 2.145 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006635/0.7416, allocations: 0.5955 MB / 1.22 GB, free: 1.543 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 9.489e-05/0.7417, allocations: 41.7 kB / 1.22 GB, free: 1.496 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002076/0.7419, allocations: 221.4 kB / 1.22 GB, free: 1.277 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 5.153e-05/0.742, allocations: 51.34 kB / 1.22 GB, free: 1.227 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002495/0.7423, allocations: 185.5 kB / 1.22 GB, free: 1.039 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001332/0.7424, allocations: 362.8 kB / 1.221 GB, free: 0.6758 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001774/0.7426, allocations: 135.7 kB / 1.221 GB, free: 0.543 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007695/0.7434, allocations: 0.7098 MB / 1.222 GB, free: 15.66 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000336/0.7437, allocations: 300.6 kB / 1.222 GB, free: 15.32 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.7437, allocations: 0 / 1.222 GB, free: 15.32 MB / 0.9512 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0006403/0.7443, allocations: 424.8 kB / 1.222 GB, free: 14.9 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.519e-05/0.7444, allocations: 6.031 kB / 1.222 GB, free: 14.89 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.7444, allocations: 4 kB / 1.222 GB, free: 14.89 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.878e-05/0.7444, allocations: 8 kB / 1.222 GB, free: 14.88 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001475/0.7446, allocations: 35.8 kB / 1.222 GB, free: 14.85 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.086e-05/0.7446, allocations: 7.984 kB / 1.222 GB, free: 14.84 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001287/0.7459, allocations: 128.2 kB / 1.222 GB, free: 14.71 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.399e-05/0.7459, allocations: 15.98 kB / 1.222 GB, free: 14.7 MB / 0.9512 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.0003116/0.7462, allocations: 253.7 kB / 1.223 GB, free: 14.45 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.022e-05/0.7463, allocations: 47.78 kB / 1.223 GB, free: 14.4 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000103/0.7464, allocations: 43.38 kB / 1.223 GB, free: 14.35 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.34e-06/0.7464, allocations: 11.88 kB / 1.223 GB, free: 14.34 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.7464, allocations: 4 kB / 1.223 GB, free: 14.33 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.161e-06/0.7464, allocations: 3.984 kB / 1.223 GB, free: 14.33 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003724/0.7468, allocations: 413.2 kB / 1.223 GB, free: 13.88 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.185e-06/0.7468, allocations: 0 / 1.223 GB, free: 13.88 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.443e-05/0.7469, allocations: 11.92 kB / 1.223 GB, free: 13.86 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.7469, allocations: 0 / 1.223 GB, free: 13.86 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.874e-05/0.7469, allocations: 8 kB / 1.223 GB, free: 13.86 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.849e-06/0.7469, allocations: 8.406 kB / 1.223 GB, free: 13.85 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.7469, allocations: 4 kB / 1.223 GB, free: 13.84 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000652/0.7476, allocations: 0.5197 MB / 1.224 GB, free: 13.3 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 9.687e-05/0.7477, allocations: 120.6 kB / 1.224 GB, free: 13.16 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.927e-05/0.7477, allocations: 7.984 kB / 1.224 GB, free: 13.16 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001637/0.7479, allocations: 23.92 kB / 1.224 GB, free: 13.13 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.575e-05/0.748, allocations: 31.97 kB / 1.224 GB, free: 13.1 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.682e-05/0.748, allocations: 12 kB / 1.224 GB, free: 13.09 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.000462/0.7485, allocations: 435 kB / 1.224 GB, free: 12.66 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7485, allocations: 0 / 1.224 GB, free: 12.66 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0004356/0.7489, allocations: 111.8 kB / 1.224 GB, free: 12.55 MB / 0.9512 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.000243/0.7492, allocations: 153.3 kB / 1.225 GB, free: 12.4 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0005492/0.7497, allocations: 359.4 kB / 1.225 GB, free: 12.05 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.7497, allocations: 0 / 1.225 GB, free: 12.05 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0002749/0.75, allocations: 219.8 kB / 1.225 GB, free: 11.83 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002959/0.7503, allocations: 37.95 kB / 1.225 GB, free: 11.8 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00127/0.7516, allocations: 0.8569 MB / 1.226 GB, free: 10.9 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000449/0.7521, allocations: 0.8349 MB / 1.227 GB, free: 10.04 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.194e-05/0.7522, allocations: 43.31 kB / 1.227 GB, free: 9.992 MB / 0.9512 GB Notification: Performance of SimCode: time 2.3e-07/0.7522, allocations: 0 / 1.227 GB, free: 9.992 MB / 0.9512 GB Notification: Performance of Templates: time 0.0102/0.7624, allocations: 7.011 MB / 1.234 GB, free: 3.121 MB / 0.9512 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/jenkins1/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