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.001555/0.001555, allocations: 108 kB / 16.41 MB, free: 6.5 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.001761/0.001761, allocations: 188.1 kB / 17.34 MB, free: 5.762 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.393/1.393, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.64/2.64, allocations: 461.9 MB / 0.7355 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001541/0.001541, allocations: 63.91 kB / 1.055 GB, free: 7.684 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8745/0.8761, allocations: 157.4 MB / 1.208 GB, free: 13.64 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable): time 0.002236/0.8783, allocations: 0.8528 MB / 1.209 GB, free: 12.79 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.00228/0.8806, allocations: 1.459 MB / 1.211 GB, free: 11.32 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001569/0.8808, allocations: 0 / 1.211 GB, free: 11.32 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0005887/0.8815, allocations: 199.4 kB / 1.211 GB, free: 11.12 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0002573/0.8817, allocations: 115.6 kB / 1.211 GB, free: 11.01 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.001132/0.8829, allocations: 361.9 kB / 1.211 GB, free: 10.66 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.001083/0.884, allocations: 0.8738 MB / 1.212 GB, free: 9.789 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002479/0.8842, allocations: 88.27 kB / 1.212 GB, free: 9.699 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006571/0.8849, allocations: 351.4 kB / 1.213 GB, free: 9.355 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005236/0.8854, allocations: 259.3 kB / 1.213 GB, free: 9.102 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 0.0002335/0.8857, allocations: 48 kB / 1.213 GB, free: 9.055 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003544/0.886, allocations: 107.9 kB / 1.213 GB, free: 8.949 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0005119/0.8865, allocations: 347.3 kB / 1.213 GB, free: 8.609 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0005107/0.8871, allocations: 270.9 kB / 1.214 GB, free: 8.344 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.001272/0.8883, allocations: 0.9171 MB / 1.214 GB, free: 7.43 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 8.346e-06/0.8884, allocations: 3.984 kB / 1.214 GB, free: 7.426 MB / 0.9356 GB Notification: Performance of FrontEnd: time 2.595e-06/0.8884, allocations: 0 / 1.214 GB, free: 7.426 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 3.487e-05/0.8884, allocations: 0 / 1.214 GB, free: 7.426 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.00213/0.8906, allocations: 0.884 MB / 1.215 GB, free: 6.484 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.127e-05/0.8906, allocations: 12.03 kB / 1.215 GB, free: 6.473 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002658/0.8909, allocations: 52.38 kB / 1.215 GB, free: 6.422 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008293/0.8917, allocations: 0.5487 MB / 1.216 GB, free: 5.832 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.413e-05/0.8918, allocations: 28.59 kB / 1.216 GB, free: 5.805 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001216/0.8919, allocations: 32.38 kB / 1.216 GB, free: 5.773 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004941/0.8924, allocations: 306.2 kB / 1.216 GB, free: 5.461 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.229e-05/0.8924, allocations: 8.062 kB / 1.216 GB, free: 5.453 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.934e-05/0.8925, allocations: 11.94 kB / 1.216 GB, free: 5.441 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.412e-06/0.8925, allocations: 0 / 1.216 GB, free: 5.441 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003586/0.8928, allocations: 219.9 kB / 1.217 GB, free: 5.227 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002083/0.8949, allocations: 1.18 MB / 1.218 GB, free: 3.988 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006415/0.8956, allocations: 467.7 kB / 1.218 GB, free: 3.504 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002396/0.8958, allocations: 182.6 kB / 1.218 GB, free: 3.316 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.324e-05/0.8959, allocations: 0 / 1.218 GB, free: 3.316 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00049/0.8964, allocations: 341.4 kB / 1.219 GB, free: 2.961 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=24): time 1.563e-06/0.8964, allocations: 0 / 1.219 GB, free: 2.961 MB / 0.9356 GB Notification: Performance of matching and sorting (n=24): time 0.001083/0.8975, allocations: 0.6219 MB / 1.219 GB, free: 2.332 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.273e-05/0.8975, allocations: 118.8 kB / 1.219 GB, free: 2.191 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007774/0.8983, allocations: 0.5955 MB / 1.22 GB, free: 1.59 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 0.0001108/0.8985, allocations: 45.7 kB / 1.22 GB, free: 1.539 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002423/0.8987, allocations: 217.4 kB / 1.22 GB, free: 1.324 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 6.64e-05/0.8988, allocations: 59.34 kB / 1.22 GB, free: 1.266 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002659/0.899, allocations: 181.5 kB / 1.22 GB, free: 1.082 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001614/0.8992, allocations: 358.8 kB / 1.221 GB, free: 0.7227 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001806/0.8994, allocations: 131.8 kB / 1.221 GB, free: 0.5938 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008877/0.9003, allocations: 0.7176 MB / 1.222 GB, free: 15.7 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003875/0.9007, allocations: 300.6 kB / 1.222 GB, free: 15.36 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.9007, allocations: 0.75 kB / 1.222 GB, free: 15.36 MB / 0.9512 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0007089/0.9014, allocations: 420.7 kB / 1.222 GB, free: 14.95 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.935e-05/0.9014, allocations: 8 kB / 1.222 GB, free: 14.94 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.145e-06/0.9015, allocations: 4 kB / 1.222 GB, free: 14.93 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.155e-05/0.9015, allocations: 8.375 kB / 1.222 GB, free: 14.93 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001754/0.9017, allocations: 35.86 kB / 1.222 GB, free: 14.89 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.707e-05/0.9017, allocations: 11.92 kB / 1.222 GB, free: 14.88 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001355/0.9031, allocations: 131.8 kB / 1.222 GB, free: 14.75 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.69e-05/0.9031, allocations: 8 kB / 1.222 GB, free: 14.74 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.0003709/0.9035, allocations: 261.7 kB / 1.223 GB, free: 14.48 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.247e-05/0.9036, allocations: 39.78 kB / 1.223 GB, free: 14.44 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001006/0.9037, allocations: 51.38 kB / 1.223 GB, free: 14.38 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.182e-06/0.9037, allocations: 3.938 kB / 1.223 GB, free: 14.38 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.207e-06/0.9037, allocations: 8 kB / 1.223 GB, free: 14.37 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.893e-06/0.9037, allocations: 3.984 kB / 1.223 GB, free: 14.37 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004485/0.9042, allocations: 413.1 kB / 1.223 GB, free: 13.91 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.537e-06/0.9042, allocations: 0 / 1.223 GB, free: 13.91 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.644e-05/0.9042, allocations: 11.92 kB / 1.223 GB, free: 13.9 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.861e-06/0.9042, allocations: 4 kB / 1.223 GB, free: 13.9 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.18e-05/0.9042, allocations: 8 kB / 1.223 GB, free: 13.89 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.27e-06/0.9043, allocations: 3.938 kB / 1.223 GB, free: 13.89 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.9043, allocations: 0 / 1.223 GB, free: 13.89 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007164/0.905, allocations: 0.5237 MB / 1.224 GB, free: 13.34 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001039/0.9051, allocations: 116.6 kB / 1.224 GB, free: 13.21 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.777e-05/0.9052, allocations: 11.98 kB / 1.224 GB, free: 13.2 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001707/0.9053, allocations: 19.92 kB / 1.224 GB, free: 13.18 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.937e-05/0.9054, allocations: 23.97 kB / 1.224 GB, free: 13.15 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.13e-05/0.9055, allocations: 19.98 kB / 1.224 GB, free: 13.13 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0005235/0.906, allocations: 435.1 kB / 1.224 GB, free: 12.71 MB / 0.9512 GB Notification: Performance of sort global known variables: time 3.21e-07/0.906, allocations: 0 / 1.224 GB, free: 12.71 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0005339/0.9065, allocations: 111.8 kB / 1.224 GB, free: 12.6 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.0002982/0.9068, allocations: 156 kB / 1.225 GB, free: 12.44 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.000642/0.9075, allocations: 352.1 kB / 1.225 GB, free: 12.1 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 3.347e-06/0.9075, allocations: 0 / 1.225 GB, free: 12.1 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0003299/0.9079, allocations: 223.9 kB / 1.225 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.0003454/0.9082, allocations: 46.27 kB / 1.225 GB, free: 11.84 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001446/0.9097, allocations: 0.8638 MB / 1.226 GB, free: 10.93 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004935/0.9102, allocations: 0.8388 MB / 1.227 GB, free: 10.06 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001216/0.9103, allocations: 31.44 kB / 1.227 GB, free: 10.03 MB / 0.9512 GB Notification: Performance of SimCode: time 5.31e-07/0.9103, allocations: 0 / 1.227 GB, free: 10.03 MB / 0.9512 GB Notification: Performance of Templates: time 0.01285/0.9232, allocations: 7.015 MB / 1.234 GB, free: 3.156 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