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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.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.001585/0.001585, allocations: 108 kB / 15.6 MB, free: 132 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.001783/0.001783, allocations: 192.7 kB / 16.53 MB, free: 6.391 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: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.923/2.923, allocations: 472.6 MB / 0.7451 GB, free: 4.598 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001238/0.001238, allocations: 66.16 kB / 0.9121 GB, free: 33.34 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4323/0.4336, allocations: 159.9 MB / 1.068 GB, free: 10.34 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable): time 0.003025/0.4367, allocations: 0.8529 MB / 1.069 GB, free: 9.488 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002743/0.4394, allocations: 1.459 MB / 1.07 GB, free: 8.016 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001156/0.4396, allocations: 3.938 kB / 1.071 GB, free: 8.012 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0007282/0.4403, allocations: 195.5 kB / 1.071 GB, free: 7.82 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001614/0.4405, allocations: 119.6 kB / 1.071 GB, free: 7.703 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.001205/0.4417, allocations: 346 kB / 1.071 GB, free: 7.371 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.001109/0.4428, allocations: 0.8619 MB / 1.072 GB, free: 6.508 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002796/0.4431, allocations: 96.22 kB / 1.072 GB, free: 6.414 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003958/0.4435, allocations: 347.5 kB / 1.072 GB, free: 6.074 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004679/0.444, allocations: 267.2 kB / 1.073 GB, free: 5.812 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.000158/0.4442, allocations: 44 kB / 1.073 GB, free: 5.77 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003168/0.4445, allocations: 107.9 kB / 1.073 GB, free: 5.664 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0004695/0.445, allocations: 343.3 kB / 1.073 GB, free: 5.328 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.000354/0.4453, allocations: 278.7 kB / 1.073 GB, free: 5.055 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0009092/0.4463, allocations: 0.8925 MB / 1.074 GB, free: 4.16 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.4463, allocations: 0 / 1.074 GB, free: 4.16 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.874e-06/0.4463, allocations: 7.938 kB / 1.074 GB, free: 4.152 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 9.548e-06/0.4463, allocations: 0 / 1.074 GB, free: 4.152 MB / 0.8262 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.001599/0.4479, allocations: 0.8919 MB / 1.075 GB, free: 3.203 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.087e-05/0.448, allocations: 8.031 kB / 1.075 GB, free: 3.195 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001946/0.4482, allocations: 56.38 kB / 1.075 GB, free: 3.141 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008693/0.449, allocations: 0.5448 MB / 1.076 GB, free: 2.555 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.924e-05/0.4491, allocations: 24.61 kB / 1.076 GB, free: 2.531 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001145/0.4492, allocations: 32.38 kB / 1.076 GB, free: 2.5 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005318/0.4497, allocations: 307.4 kB / 1.076 GB, free: 2.188 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.239e-05/0.4498, allocations: 192 / 1.076 GB, free: 2.188 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.672e-05/0.4498, allocations: 11.92 kB / 1.076 GB, free: 2.176 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.677e-06/0.4498, allocations: 4 kB / 1.076 GB, free: 2.172 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003599/0.4502, allocations: 219.8 kB / 1.076 GB, free: 1.957 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002037/0.4522, allocations: 1.195 MB / 1.077 GB, free: 0.7031 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006302/0.4529, allocations: 467.7 kB / 1.078 GB, free: 224 kB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002468/0.4531, allocations: 182.6 kB / 1.078 GB, free: 32 kB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.446e-05/0.4531, allocations: 4 kB / 1.078 GB, free: 28 kB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005/0.4536, allocations: 335.4 kB / 1.078 GB, free: 15.68 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=24): time 1.423e-06/0.4537, allocations: 0 / 1.078 GB, free: 15.68 MB / 0.8419 GB Notification: Performance of matching and sorting (n=24): time 0.001061/0.4547, allocations: 0.6297 MB / 1.079 GB, free: 15.05 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.843e-05/0.4548, allocations: 118.7 kB / 1.079 GB, free: 14.91 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007317/0.4556, allocations: 0.5923 MB / 1.08 GB, free: 14.31 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 0.000105/0.4557, allocations: 53.69 kB / 1.08 GB, free: 14.25 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002853/0.456, allocations: 218.4 kB / 1.08 GB, free: 14.03 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 6.176e-05/0.456, allocations: 55.41 kB / 1.08 GB, free: 13.98 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002706/0.4563, allocations: 181.5 kB / 1.08 GB, free: 13.79 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001776/0.4565, allocations: 354.8 kB / 1.081 GB, free: 13.44 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001914/0.4567, allocations: 127.9 kB / 1.081 GB, free: 13.31 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009487/0.4577, allocations: 0.7214 MB / 1.081 GB, free: 12.41 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003995/0.4581, allocations: 300.6 kB / 1.082 GB, free: 12.07 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.4581, allocations: 0 / 1.082 GB, free: 12.07 MB / 0.8419 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0006865/0.4588, allocations: 420.7 kB / 1.082 GB, free: 11.66 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 3.041e-05/0.4588, allocations: 8.375 kB / 1.082 GB, free: 11.65 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.141e-05/0.4588, allocations: 8 kB / 1.082 GB, free: 11.64 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.662e-05/0.4589, allocations: 7.938 kB / 1.082 GB, free: 11.63 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001771/0.4591, allocations: 31.92 kB / 1.082 GB, free: 11.6 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.503e-05/0.4591, allocations: 7.938 kB / 1.082 GB, free: 11.59 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001275/0.4604, allocations: 136.1 kB / 1.082 GB, free: 11.46 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.44e-05/0.4604, allocations: 12 kB / 1.082 GB, free: 11.45 MB / 0.8419 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.0003835/0.4608, allocations: 259.2 kB / 1.083 GB, free: 11.19 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.747e-05/0.4609, allocations: 43.52 kB / 1.083 GB, free: 11.15 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001027/0.461, allocations: 55.31 kB / 1.083 GB, free: 11.09 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.807e-06/0.461, allocations: 0 / 1.083 GB, free: 11.09 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.979e-06/0.461, allocations: 8 kB / 1.083 GB, free: 11.08 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.548e-05/0.461, allocations: 3.984 kB / 1.083 GB, free: 11.08 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004797/0.4615, allocations: 405.2 kB / 1.083 GB, free: 10.63 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-06/0.4615, allocations: 0 / 1.083 GB, free: 10.63 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.209e-05/0.4616, allocations: 4 kB / 1.083 GB, free: 10.63 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.337e-05/0.4616, allocations: 11.92 kB / 1.083 GB, free: 10.62 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.497e-05/0.4616, allocations: 11.94 kB / 1.083 GB, free: 10.61 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.023e-06/0.4616, allocations: 0 / 1.083 GB, free: 10.61 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.709e-06/0.4616, allocations: 4 kB / 1.083 GB, free: 10.6 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007099/0.4623, allocations: 0.5136 MB / 1.084 GB, free: 10.06 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001306/0.4625, allocations: 124.6 kB / 1.084 GB, free: 9.922 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.646e-05/0.4625, allocations: 11.94 kB / 1.084 GB, free: 9.91 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001617/0.4627, allocations: 19.97 kB / 1.084 GB, free: 9.891 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.75e-05/0.4628, allocations: 31.91 kB / 1.084 GB, free: 9.859 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.189e-05/0.4628, allocations: 12 kB / 1.084 GB, free: 9.848 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.000514/0.4634, allocations: 435.1 kB / 1.084 GB, free: 9.422 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4634, allocations: 4 kB / 1.084 GB, free: 9.418 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0004944/0.4639, allocations: 111.8 kB / 1.084 GB, free: 9.309 MB / 0.8419 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.0003357/0.4642, allocations: 142 kB / 1.084 GB, free: 9.164 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0006235/0.4649, allocations: 374.7 kB / 1.085 GB, free: 8.801 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.015e-06/0.4649, allocations: 8 kB / 1.085 GB, free: 8.793 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0002576/0.4651, allocations: 187.8 kB / 1.085 GB, free: 8.609 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003432/0.4655, allocations: 39.67 kB / 1.085 GB, free: 8.574 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001402/0.4669, allocations: 0.8309 MB / 1.086 GB, free: 7.707 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005113/0.4674, allocations: 0.835 MB / 1.087 GB, free: 6.848 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0002336/0.4677, allocations: 86.94 kB / 1.087 GB, free: 6.766 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.245e-05/0.4678, allocations: 43.42 kB / 1.087 GB, free: 6.723 MB / 0.8419 GB Notification: Performance of SimCode: time 6.21e-07/0.4678, allocations: 0 / 1.087 GB, free: 6.723 MB / 0.8419 GB Notification: Performance of Templates: time 0.01496/0.4827, allocations: 7.934 MB / 1.094 GB, free: 14.86 MB / 0.8575 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