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.008068/0.008068, allocations: 100.7 kB / 15.73 MB, free: 6.004 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.001308/0.001309, allocations: 196.8 kB / 16.67 MB, free: 5.926 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.49/1.49, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.694/2.694, allocations: 461.9 MB / 0.7348 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001396/0.001397, allocations: 67.89 kB / 1.054 GB, free: 7.664 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.26/1.261, allocations: 157.4 MB / 1.208 GB, free: 13.61 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable): time 0.002698/1.264, allocations: 0.8551 MB / 1.209 GB, free: 12.76 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.002195/1.266, allocations: 1.458 MB / 1.21 GB, free: 11.29 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001336/1.266, allocations: 3.938 kB / 1.21 GB, free: 11.29 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0007004/1.267, allocations: 203.5 kB / 1.21 GB, free: 11.09 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001941/1.267, allocations: 111.6 kB / 1.21 GB, free: 10.98 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.00127/1.269, allocations: 344.8 kB / 1.211 GB, free: 10.64 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.001269/1.27, allocations: 0.8894 MB / 1.212 GB, free: 9.754 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002135/1.27, allocations: 84.27 kB / 1.212 GB, free: 9.668 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004991/1.271, allocations: 347.5 kB / 1.212 GB, free: 9.328 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003932/1.271, allocations: 267.2 kB / 1.212 GB, free: 9.066 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 0.0001134/1.271, allocations: 48 kB / 1.212 GB, free: 9.02 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003291/1.272, allocations: 103.9 kB / 1.212 GB, free: 8.918 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0003837/1.272, allocations: 343.3 kB / 1.213 GB, free: 8.582 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0002796/1.272, allocations: 278.7 kB / 1.213 GB, free: 8.309 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0009222/1.273, allocations: 0.9132 MB / 1.214 GB, free: 7.398 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/1.273, allocations: 4 kB / 1.214 GB, free: 7.395 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.273e-06/1.273, allocations: 0 / 1.214 GB, free: 7.395 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 8.897e-06/1.273, allocations: 0 / 1.214 GB, free: 7.395 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.00155/1.275, allocations: 0.8918 MB / 1.215 GB, free: 6.445 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.152e-05/1.275, allocations: 12.03 kB / 1.215 GB, free: 6.434 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001787/1.275, allocations: 52.38 kB / 1.215 GB, free: 6.383 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009875/1.276, allocations: 0.5409 MB / 1.215 GB, free: 5.801 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.951e-05/1.276, allocations: 28.61 kB / 1.215 GB, free: 5.773 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001118/1.276, allocations: 36.36 kB / 1.215 GB, free: 5.738 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005849/1.277, allocations: 310.2 kB / 1.216 GB, free: 5.422 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.066e-05/1.277, allocations: 192 / 1.216 GB, free: 5.422 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.27e-05/1.277, allocations: 11.94 kB / 1.216 GB, free: 5.41 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.711e-06/1.277, allocations: 0 / 1.216 GB, free: 5.41 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003631/1.277, allocations: 223.8 kB / 1.216 GB, free: 5.191 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002094/1.279, allocations: 1.18 MB / 1.217 GB, free: 3.953 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006309/1.28, allocations: 467.9 kB / 1.217 GB, free: 3.469 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002371/1.28, allocations: 178.4 kB / 1.218 GB, free: 3.285 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.103e-05/1.28, allocations: 0 / 1.218 GB, free: 3.285 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004755/1.281, allocations: 340.7 kB / 1.218 GB, free: 2.934 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=24): time 1.843e-06/1.281, allocations: 0 / 1.218 GB, free: 2.934 MB / 0.9356 GB Notification: Performance of matching and sorting (n=24): time 0.001037/1.282, allocations: 0.6187 MB / 1.219 GB, free: 2.309 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.866e-05/1.282, allocations: 130.7 kB / 1.219 GB, free: 2.156 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000738/1.283, allocations: 0.5916 MB / 1.219 GB, free: 1.559 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 7.87e-05/1.283, allocations: 45.7 kB / 1.219 GB, free: 1.508 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002284/1.283, allocations: 213.4 kB / 1.219 GB, free: 1.297 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 5.965e-05/1.283, allocations: 63.28 kB / 1.22 GB, free: 1.234 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002783/1.283, allocations: 181.6 kB / 1.22 GB, free: 1.051 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001921/1.283, allocations: 366.7 kB / 1.22 GB, free: 0.6836 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001781/1.284, allocations: 131.8 kB / 1.22 GB, free: 0.5547 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008898/1.284, allocations: 0.7098 MB / 1.221 GB, free: 15.67 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003842/1.285, allocations: 300.6 kB / 1.221 GB, free: 15.33 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.976e-06/1.285, allocations: 0 / 1.221 GB, free: 15.33 MB / 0.9512 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0006301/1.286, allocations: 420.7 kB / 1.222 GB, free: 14.91 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 2.104e-05/1.286, allocations: 8 kB / 1.222 GB, free: 14.91 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.954e-06/1.286, allocations: 4 kB / 1.222 GB, free: 14.9 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.013e-05/1.286, allocations: 4 kB / 1.222 GB, free: 14.9 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001748/1.286, allocations: 43.78 kB / 1.222 GB, free: 14.86 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.312e-05/1.286, allocations: 4 kB / 1.222 GB, free: 14.85 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001249/1.287, allocations: 132.5 kB / 1.222 GB, free: 14.72 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.263e-05/1.287, allocations: 12 kB / 1.222 GB, free: 14.71 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.0003376/1.287, allocations: 253.7 kB / 1.222 GB, free: 14.46 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.521e-05/1.288, allocations: 43.53 kB / 1.222 GB, free: 14.41 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.471e-05/1.288, allocations: 51.36 kB / 1.222 GB, free: 14.36 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.638e-06/1.288, allocations: 7.938 kB / 1.222 GB, free: 14.35 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.564e-06/1.288, allocations: 4 kB / 1.222 GB, free: 14.34 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.094e-06/1.288, allocations: 0 / 1.222 GB, free: 14.34 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003994/1.288, allocations: 421 kB / 1.223 GB, free: 13.88 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/1.288, allocations: 0 / 1.223 GB, free: 13.88 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.34e-05/1.288, allocations: 7.984 kB / 1.223 GB, free: 13.88 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.218e-06/1.288, allocations: 4 kB / 1.223 GB, free: 13.87 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.35e-05/1.288, allocations: 11.98 kB / 1.223 GB, free: 13.86 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.957e-06/1.288, allocations: 7.938 kB / 1.223 GB, free: 13.85 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/1.288, allocations: 0 / 1.223 GB, free: 13.85 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000674/1.289, allocations: 0.512 MB / 1.223 GB, free: 13.32 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000129/1.289, allocations: 124.6 kB / 1.223 GB, free: 13.18 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.793e-05/1.289, allocations: 8 kB / 1.223 GB, free: 13.17 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001569/1.289, allocations: 19.92 kB / 1.223 GB, free: 13.15 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.035e-05/1.289, allocations: 31.97 kB / 1.223 GB, free: 13.12 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.273e-05/1.289, allocations: 15.98 kB / 1.223 GB, free: 13.1 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0005172/1.29, allocations: 435.1 kB / 1.224 GB, free: 12.68 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.3e-07/1.29, allocations: 0 / 1.224 GB, free: 12.68 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0004818/1.29, allocations: 107.8 kB / 1.224 GB, free: 12.57 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.0002688/1.291, allocations: 149.3 kB / 1.224 GB, free: 12.42 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0006533/1.291, allocations: 363.3 kB / 1.224 GB, free: 12.06 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/1.291, allocations: 0 / 1.224 GB, free: 12.06 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0002458/1.292, allocations: 191.8 kB / 1.224 GB, free: 11.88 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002967/1.292, allocations: 42.08 kB / 1.224 GB, free: 11.84 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001382/1.293, allocations: 0.8239 MB / 1.225 GB, free: 10.98 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005379/1.294, allocations: 0.8349 MB / 1.226 GB, free: 10.11 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.0002296/1.294, allocations: 98.86 kB / 1.226 GB, free: 10.02 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.988e-05/1.294, allocations: 35.42 kB / 1.226 GB, free: 9.984 MB / 0.9512 GB Notification: Performance of SimCode: time 1.714e-06/1.294, allocations: 0 / 1.226 GB, free: 9.984 MB / 0.9512 GB Notification: Performance of Templates: time 0.01462/1.309, allocations: 8.146 MB / 1.234 GB, free: 1.914 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/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