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.0009257/0.0009261, allocations: 91.06 kB / 15.36 MB, free: 0.7383 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.009058/0.009058, allocations: 172.3 kB / 16.26 MB, free: 6.613 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.678/1.678, allocations: 223.3 MB / 240.3 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 3.006/3.006, allocations: 462.7 MB / 0.7364 GB, free: 320 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0003537/0.0003537, allocations: 11.41 kB / 0.9028 GB, free: 36.62 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4292/0.4296, allocations: 159.6 MB / 1.059 GB, free: 5.508 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable): time 0.001184/0.4308, allocations: 0.5634 MB / 1.059 GB, free: 4.945 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.00217/0.433, allocations: 1.459 MB / 1.061 GB, free: 3.473 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.183e-05/0.4331, allocations: 0 / 1.061 GB, free: 3.473 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0005692/0.4337, allocations: 191.5 kB / 1.061 GB, free: 3.285 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001478/0.4338, allocations: 111.7 kB / 1.061 GB, free: 3.176 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009653/0.4348, allocations: 333.5 kB / 1.061 GB, free: 2.859 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.000825/0.4357, allocations: 0.7644 MB / 1.062 GB, free: 2.094 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002099/0.4359, allocations: 96.23 kB / 1.062 GB, free: 2 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003334/0.4362, allocations: 295.4 kB / 1.062 GB, free: 1.711 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000358/0.4366, allocations: 235.3 kB / 1.063 GB, free: 1.48 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 9.622e-05/0.4367, allocations: 16 kB / 1.063 GB, free: 1.465 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002224/0.4369, allocations: 79.88 kB / 1.063 GB, free: 1.387 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0003755/0.4373, allocations: 303.3 kB / 1.063 GB, free: 1.09 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0002972/0.4376, allocations: 260.5 kB / 1.063 GB, free: 0.8281 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0009254/0.4385, allocations: 0.8649 MB / 1.064 GB, free: 15.96 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 7.043e-06/0.4386, allocations: 0 / 1.064 GB, free: 15.96 MB / 0.8262 GB Notification: Performance of FrontEnd: time 6.502e-06/0.4386, allocations: 4 kB / 1.064 GB, free: 15.96 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 9.888e-06/0.4386, allocations: 0 / 1.064 GB, free: 15.96 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.001439/0.44, allocations: 0.6932 MB / 1.065 GB, free: 15.21 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.844e-05/0.4401, allocations: 12.03 kB / 1.065 GB, free: 15.2 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001758/0.4403, allocations: 52.47 kB / 1.065 GB, free: 15.14 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008195/0.4411, allocations: 0.5448 MB / 1.065 GB, free: 14.56 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.739e-05/0.4411, allocations: 24.61 kB / 1.065 GB, free: 14.54 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001203/0.4413, allocations: 36.38 kB / 1.065 GB, free: 14.5 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000547/0.4418, allocations: 310.9 kB / 1.066 GB, free: 14.19 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.069e-05/0.4418, allocations: 192 / 1.066 GB, free: 14.19 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.293e-05/0.4419, allocations: 7.938 kB / 1.066 GB, free: 14.18 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.878e-06/0.4419, allocations: 8 kB / 1.066 GB, free: 14.17 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003769/0.4423, allocations: 223.8 kB / 1.066 GB, free: 13.95 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002006/0.4443, allocations: 1.187 MB / 1.067 GB, free: 12.71 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006327/0.4449, allocations: 463.8 kB / 1.068 GB, free: 12.23 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000251/0.4452, allocations: 186.5 kB / 1.068 GB, free: 12.04 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.409e-05/0.4452, allocations: 8 kB / 1.068 GB, free: 12.03 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000481/0.4457, allocations: 328.4 kB / 1.068 GB, free: 11.69 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=24): time 1.423e-06/0.4457, allocations: 4 kB / 1.068 GB, free: 11.68 MB / 0.8262 GB Notification: Performance of matching and sorting (n=24): time 0.001062/0.4468, allocations: 0.6219 MB / 1.069 GB, free: 11.05 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.868e-05/0.4469, allocations: 122.7 kB / 1.069 GB, free: 10.91 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007586/0.4477, allocations: 0.5954 MB / 1.069 GB, free: 10.31 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 9.253e-05/0.4478, allocations: 49.7 kB / 1.069 GB, free: 10.26 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002508/0.448, allocations: 218.5 kB / 1.07 GB, free: 10.03 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 5.628e-05/0.4481, allocations: 47.41 kB / 1.07 GB, free: 9.984 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.163e-05/0.4482, allocations: 41.7 kB / 1.07 GB, free: 9.938 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0002019/0.4484, allocations: 366.8 kB / 1.07 GB, free: 9.57 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001943/0.4486, allocations: 135.7 kB / 1.07 GB, free: 9.438 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008258/0.4494, allocations: 0.7108 MB / 1.071 GB, free: 8.555 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000364/0.4498, allocations: 296.6 kB / 1.071 GB, free: 8.219 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.4498, allocations: 3.938 kB / 1.071 GB, free: 8.215 MB / 0.8262 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0006408/0.4504, allocations: 424.7 kB / 1.072 GB, free: 7.793 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.041e-05/0.4505, allocations: 4 kB / 1.072 GB, free: 7.789 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.849e-06/0.4505, allocations: 4 kB / 1.072 GB, free: 7.785 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.408e-05/0.4505, allocations: 11.94 kB / 1.072 GB, free: 7.773 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001652/0.4507, allocations: 31.86 kB / 1.072 GB, free: 7.742 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.057e-05/0.4507, allocations: 4.234 kB / 1.072 GB, free: 7.738 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001279/0.452, allocations: 144.7 kB / 1.072 GB, free: 7.609 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.805e-05/0.452, allocations: 15.98 kB / 1.072 GB, free: 7.594 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.0003492/0.4524, allocations: 263.2 kB / 1.072 GB, free: 7.328 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.427e-05/0.4524, allocations: 43.42 kB / 1.072 GB, free: 7.285 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.74e-05/0.4525, allocations: 55.31 kB / 1.072 GB, free: 7.227 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.242e-06/0.4526, allocations: 4 kB / 1.072 GB, free: 7.223 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.328e-06/0.4526, allocations: 256 / 1.072 GB, free: 7.223 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.943e-06/0.4526, allocations: 3.984 kB / 1.072 GB, free: 7.219 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004383/0.453, allocations: 409.3 kB / 1.073 GB, free: 6.77 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.406e-06/0.453, allocations: 0 / 1.073 GB, free: 6.77 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.959e-05/0.4531, allocations: 7.938 kB / 1.073 GB, free: 6.762 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.118e-06/0.4531, allocations: 8.734 kB / 1.073 GB, free: 6.754 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.631e-05/0.4531, allocations: 11.94 kB / 1.073 GB, free: 6.742 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.689e-06/0.4531, allocations: 4 kB / 1.073 GB, free: 6.738 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/0.4531, allocations: 0 / 1.073 GB, free: 6.738 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007038/0.4538, allocations: 0.5135 MB / 1.073 GB, free: 6.199 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001301/0.454, allocations: 140.5 kB / 1.073 GB, free: 6.043 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.075e-05/0.454, allocations: 15.88 kB / 1.073 GB, free: 6.027 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001603/0.4542, allocations: 15.98 kB / 1.073 GB, free: 6.012 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001006/0.4543, allocations: 35.95 kB / 1.073 GB, free: 5.977 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.393e-05/0.4544, allocations: 11.98 kB / 1.073 GB, free: 5.965 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0005184/0.4549, allocations: 435.1 kB / 1.074 GB, free: 5.543 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.31e-07/0.4549, allocations: 0 / 1.074 GB, free: 5.543 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0004774/0.4554, allocations: 115.8 kB / 1.074 GB, free: 5.43 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.0003052/0.4557, allocations: 145.4 kB / 1.074 GB, free: 5.281 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0005611/0.4562, allocations: 347.6 kB / 1.074 GB, free: 4.941 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.4563, allocations: 0 / 1.074 GB, free: 4.941 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002521/0.4565, allocations: 191.8 kB / 1.074 GB, free: 4.754 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003384/0.4569, allocations: 39.91 kB / 1.074 GB, free: 4.719 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001291/0.4582, allocations: 0.92 MB / 1.075 GB, free: 3.766 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004286/0.4586, allocations: 0.8392 MB / 1.076 GB, free: 2.902 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0002388/0.4589, allocations: 90.94 kB / 1.076 GB, free: 2.812 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.22e-05/0.4589, allocations: 35.42 kB / 1.076 GB, free: 2.777 MB / 0.8262 GB Notification: Performance of SimCode: time 2.6e-07/0.459, allocations: 3.938 kB / 1.076 GB, free: 2.773 MB / 0.8262 GB Notification: Performance of Templates: time 0.01437/0.4733, allocations: 7.589 MB / 1.084 GB, free: 11.24 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