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.001484/0.001484, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001865/0.001866, allocations: 193.3 kB / 16.14 MB, free: 6.656 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.487/1.487, allocations: 222.9 MB / 239.8 MB, free: 4.59 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.861/2.861, allocations: 461.9 MB / 0.7342 GB, free: 14.99 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001247/0.001247, allocations: 60.91 kB / 0.8984 GB, free: 37.2 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3458/0.347, allocations: 157.4 MB / 1.052 GB, free: 8.789 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable): time 0.002419/0.3495, allocations: 0.9061 MB / 1.053 GB, free: 7.879 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002175/0.3517, allocations: 1.466 MB / 1.054 GB, free: 6.398 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.223e-05/0.3518, allocations: 7.938 kB / 1.054 GB, free: 6.391 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.000546/0.3524, allocations: 187.5 kB / 1.055 GB, free: 6.207 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.000136/0.3525, allocations: 107.7 kB / 1.055 GB, free: 6.102 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009138/0.3535, allocations: 333.8 kB / 1.055 GB, free: 5.781 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0007806/0.3542, allocations: 0.7644 MB / 1.056 GB, free: 5.016 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002205/0.3545, allocations: 92.23 kB / 1.056 GB, free: 4.926 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003073/0.3548, allocations: 303.4 kB / 1.056 GB, free: 4.629 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003329/0.3551, allocations: 251.3 kB / 1.056 GB, free: 4.383 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.0001252/0.3553, allocations: 16 kB / 1.056 GB, free: 4.367 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002757/0.3555, allocations: 83.89 kB / 1.057 GB, free: 4.285 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0004041/0.356, allocations: 307.3 kB / 1.057 GB, free: 3.984 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0003142/0.3563, allocations: 242.8 kB / 1.057 GB, free: 3.746 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0008951/0.3572, allocations: 0.8729 MB / 1.058 GB, free: 2.871 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.429e-06/0.3572, allocations: 0 / 1.058 GB, free: 2.871 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.293e-06/0.3572, allocations: 4 kB / 1.058 GB, free: 2.867 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 7.644e-06/0.3572, allocations: 0 / 1.058 GB, free: 2.867 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: 27 * Number of variables: 27 Notification: Performance of Generate backend data structure: time 0.001642/0.3589, allocations: 0.8918 MB / 1.059 GB, free: 1.918 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.798e-05/0.3589, allocations: 8.031 kB / 1.059 GB, free: 1.91 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001956/0.3591, allocations: 60.31 kB / 1.059 GB, free: 1.852 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007889/0.3599, allocations: 0.541 MB / 1.059 GB, free: 1.273 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.932e-05/0.36, allocations: 24.61 kB / 1.059 GB, free: 1.25 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001128/0.3601, allocations: 32.38 kB / 1.059 GB, free: 1.219 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004574/0.3605, allocations: 310.9 kB / 1.06 GB, free: 0.9023 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.112e-05/0.3606, allocations: 192 / 1.06 GB, free: 0.9023 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.94e-05/0.3606, allocations: 7.938 kB / 1.06 GB, free: 0.8945 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.775e-06/0.3606, allocations: 4 kB / 1.06 GB, free: 0.8906 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003273/0.3609, allocations: 223.8 kB / 1.06 GB, free: 0.6719 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001932/0.3629, allocations: 1.187 MB / 1.061 GB, free: 15.43 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006084/0.3635, allocations: 471.8 kB / 1.062 GB, free: 14.94 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002272/0.3637, allocations: 178.6 kB / 1.062 GB, free: 14.75 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.521e-05/0.3638, allocations: 3.938 kB / 1.062 GB, free: 14.75 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004725/0.3642, allocations: 325.7 kB / 1.062 GB, free: 14.41 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=24): time 1.523e-06/0.3642, allocations: 0 / 1.062 GB, free: 14.41 MB / 0.8262 GB Notification: Performance of matching and sorting (n=24): time 0.001031/0.3653, allocations: 0.622 MB / 1.063 GB, free: 13.78 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000113/0.3654, allocations: 122.7 kB / 1.063 GB, free: 13.64 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007684/0.3662, allocations: 0.5916 MB / 1.063 GB, free: 13.04 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 0.0001045/0.3663, allocations: 53.69 kB / 1.063 GB, free: 12.98 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003107/0.3666, allocations: 226.4 kB / 1.064 GB, free: 12.75 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 7.802e-05/0.3667, allocations: 43.52 kB / 1.064 GB, free: 12.71 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003274/0.367, allocations: 182.3 kB / 1.064 GB, free: 12.53 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0002145/0.3673, allocations: 362.8 kB / 1.064 GB, free: 12.16 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001933/0.3675, allocations: 127.8 kB / 1.064 GB, free: 12.04 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009837/0.3685, allocations: 0.7302 MB / 1.065 GB, free: 11.14 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003936/0.3689, allocations: 292.6 kB / 1.065 GB, free: 10.8 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.897e-06/0.3689, allocations: 0 / 1.065 GB, free: 10.8 MB / 0.8262 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.000731/0.3696, allocations: 420.7 kB / 1.066 GB, free: 10.39 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 3.561e-05/0.3697, allocations: 9.625 kB / 1.066 GB, free: 10.38 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.33e-05/0.3697, allocations: 11.94 kB / 1.066 GB, free: 10.37 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.79e-05/0.3697, allocations: 7.938 kB / 1.066 GB, free: 10.36 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002098/0.3699, allocations: 35.86 kB / 1.066 GB, free: 10.32 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.358e-05/0.3699, allocations: 4.234 kB / 1.066 GB, free: 10.32 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001316/0.3713, allocations: 127.6 kB / 1.066 GB, free: 10.2 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.971e-05/0.3713, allocations: 20 kB / 1.066 GB, free: 10.18 MB / 0.8262 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.0004215/0.3717, allocations: 257.6 kB / 1.066 GB, free: 9.914 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.26e-05/0.3718, allocations: 43.52 kB / 1.066 GB, free: 9.871 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001065/0.3719, allocations: 51.31 kB / 1.066 GB, free: 9.816 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.622e-06/0.372, allocations: 0 / 1.066 GB, free: 9.816 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.419e-05/0.372, allocations: 4 kB / 1.066 GB, free: 9.812 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.812e-06/0.372, allocations: 4 kB / 1.066 GB, free: 9.809 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005691/0.3726, allocations: 409.2 kB / 1.067 GB, free: 9.359 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-06/0.3726, allocations: 0 / 1.067 GB, free: 9.359 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.165e-05/0.3726, allocations: 11.94 kB / 1.067 GB, free: 9.348 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.161e-06/0.3726, allocations: 4 kB / 1.067 GB, free: 9.344 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.237e-05/0.3727, allocations: 15.92 kB / 1.067 GB, free: 9.328 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.194e-06/0.3727, allocations: 0 / 1.067 GB, free: 9.328 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.003e-06/0.3727, allocations: 0 / 1.067 GB, free: 9.328 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008104/0.3735, allocations: 0.5125 MB / 1.067 GB, free: 8.793 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001367/0.3737, allocations: 140.5 kB / 1.067 GB, free: 8.637 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.793e-05/0.3737, allocations: 7.938 kB / 1.067 GB, free: 8.629 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001585/0.3739, allocations: 19.97 kB / 1.067 GB, free: 8.609 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001148/0.374, allocations: 23.97 kB / 1.067 GB, free: 8.586 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.427e-05/0.3741, allocations: 16 kB / 1.067 GB, free: 8.57 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0006267/0.3747, allocations: 435.1 kB / 1.068 GB, free: 8.148 MB / 0.8262 GB Notification: Performance of sort global known variables: time 4.81e-07/0.3747, allocations: 4 kB / 1.068 GB, free: 8.145 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0005654/0.3753, allocations: 107.9 kB / 1.068 GB, free: 8.039 MB / 0.8262 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.0004023/0.3757, allocations: 145.4 kB / 1.068 GB, free: 7.891 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0009146/0.3766, allocations: 344.2 kB / 1.068 GB, free: 7.555 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.3766, allocations: 4.25 kB / 1.068 GB, free: 7.551 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0003632/0.377, allocations: 199.7 kB / 1.069 GB, free: 7.355 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000393/0.3774, allocations: 30.83 kB / 1.069 GB, free: 7.328 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001606/0.379, allocations: 0.9252 MB / 1.069 GB, free: 6.367 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006313/0.3797, allocations: 0.8314 MB / 1.07 GB, free: 5.512 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0002812/0.38, allocations: 94.92 kB / 1.07 GB, free: 5.418 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.796e-05/0.3801, allocations: 35.38 kB / 1.07 GB, free: 5.383 MB / 0.8262 GB Notification: Performance of SimCode: time 4.31e-07/0.3801, allocations: 0 / 1.07 GB, free: 5.383 MB / 0.8262 GB Notification: Performance of Templates: time 0.01552/0.3956, allocations: 7.662 MB / 1.078 GB, free: 13.78 MB / 0.8419 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