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.001225/0.001225, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001425/0.001425, allocations: 194.2 kB / 16.25 MB, free: 6.637 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.613/1.613, allocations: 222.9 MB / 239.9 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.985/2.985, allocations: 461.9 MB / 0.7343 GB, free: 14.97 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001393/0.001393, allocations: 68.66 kB / 0.8986 GB, free: 37.27 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4355/0.4369, allocations: 157.4 MB / 1.052 GB, free: 8.719 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable): time 0.002949/0.4399, allocations: 0.9101 MB / 1.053 GB, free: 7.805 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.00272/0.4427, allocations: 1.463 MB / 1.055 GB, free: 6.328 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001952/0.4429, allocations: 8 kB / 1.055 GB, free: 6.32 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0006781/0.4437, allocations: 183.6 kB / 1.055 GB, free: 6.141 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0002157/0.4439, allocations: 107.7 kB / 1.055 GB, free: 6.035 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.001249/0.4452, allocations: 334.4 kB / 1.055 GB, free: 5.715 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.001065/0.4462, allocations: 0.8621 MB / 1.056 GB, free: 4.852 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002499/0.4465, allocations: 92.23 kB / 1.056 GB, free: 4.762 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007033/0.4472, allocations: 351.4 kB / 1.056 GB, free: 4.418 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006255/0.4479, allocations: 267.3 kB / 1.057 GB, free: 4.156 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.0002695/0.4481, allocations: 48 kB / 1.057 GB, free: 4.109 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004357/0.4486, allocations: 107.9 kB / 1.057 GB, free: 4.004 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0005744/0.4492, allocations: 343.3 kB / 1.057 GB, free: 3.668 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0006301/0.4498, allocations: 278.8 kB / 1.057 GB, free: 3.395 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.001332/0.4511, allocations: 0.8963 MB / 1.058 GB, free: 2.496 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.4512, allocations: 0 / 1.058 GB, free: 2.496 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.784e-06/0.4512, allocations: 0 / 1.058 GB, free: 2.496 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 2.985e-05/0.4512, allocations: 0 / 1.058 GB, free: 2.496 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.002233/0.4534, allocations: 0.8957 MB / 1.059 GB, free: 1.543 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 5.491e-05/0.4535, allocations: 8.625 kB / 1.059 GB, free: 1.535 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003076/0.4538, allocations: 56.38 kB / 1.059 GB, free: 1.48 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008882/0.4547, allocations: 0.541 MB / 1.06 GB, free: 0.9023 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.321e-05/0.4548, allocations: 20.61 kB / 1.06 GB, free: 0.8828 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001366/0.4549, allocations: 36.38 kB / 1.06 GB, free: 0.8477 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005163/0.4554, allocations: 314.9 kB / 1.06 GB, free: 0.5273 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.047e-05/0.4555, allocations: 192 / 1.06 GB, free: 0.5273 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.837e-05/0.4555, allocations: 7.938 kB / 1.06 GB, free: 0.5195 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.01e-05/0.4555, allocations: 7.984 kB / 1.06 GB, free: 0.5117 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003332/0.4558, allocations: 219.8 kB / 1.06 GB, free: 304 kB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002127/0.458, allocations: 1.191 MB / 1.062 GB, free: 15.05 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006608/0.4587, allocations: 471.8 kB / 1.062 GB, free: 14.56 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002496/0.4589, allocations: 182.6 kB / 1.062 GB, free: 14.37 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.487e-05/0.4589, allocations: 0 / 1.062 GB, free: 14.37 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005088/0.4595, allocations: 328.5 kB / 1.063 GB, free: 14.03 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=24): time 2.194e-06/0.4595, allocations: 0 / 1.063 GB, free: 14.03 MB / 0.8262 GB Notification: Performance of matching and sorting (n=24): time 0.001157/0.4606, allocations: 0.6257 MB / 1.063 GB, free: 13.4 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001056/0.4608, allocations: 122.7 kB / 1.063 GB, free: 13.25 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008207/0.4616, allocations: 0.5916 MB / 1.064 GB, free: 12.66 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 0.0001275/0.4617, allocations: 53.62 kB / 1.064 GB, free: 12.6 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002694/0.462, allocations: 222.4 kB / 1.064 GB, free: 12.38 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 6.597e-05/0.4621, allocations: 47.5 kB / 1.064 GB, free: 12.33 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002884/0.4624, allocations: 181.5 kB / 1.064 GB, free: 12.14 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001557/0.4625, allocations: 362.8 kB / 1.065 GB, free: 11.78 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001918/0.4627, allocations: 128 kB / 1.065 GB, free: 11.66 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008777/0.4636, allocations: 0.7181 MB / 1.065 GB, free: 10.77 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003846/0.464, allocations: 296.6 kB / 1.066 GB, free: 10.43 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.808e-06/0.464, allocations: 4 kB / 1.066 GB, free: 10.43 MB / 0.8262 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0007061/0.4647, allocations: 424.6 kB / 1.066 GB, free: 10 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.323e-05/0.4648, allocations: 8 kB / 1.066 GB, free: 9.996 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.092e-05/0.4648, allocations: 7.938 kB / 1.066 GB, free: 9.988 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.543e-05/0.4648, allocations: 7.938 kB / 1.066 GB, free: 9.98 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002042/0.465, allocations: 36.3 kB / 1.066 GB, free: 9.945 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.254e-05/0.465, allocations: 8.75 kB / 1.066 GB, free: 9.938 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001366/0.4664, allocations: 119.8 kB / 1.066 GB, free: 9.82 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.78e-05/0.4665, allocations: 16 kB / 1.066 GB, free: 9.805 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.0003679/0.4668, allocations: 263.2 kB / 1.067 GB, free: 9.539 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.276e-05/0.4669, allocations: 43.52 kB / 1.067 GB, free: 9.496 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.946e-05/0.467, allocations: 47.31 kB / 1.067 GB, free: 9.445 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.639e-06/0.467, allocations: 11.88 kB / 1.067 GB, free: 9.434 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.349e-05/0.4671, allocations: 4 kB / 1.067 GB, free: 9.43 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.252e-06/0.4671, allocations: 0 / 1.067 GB, free: 9.43 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004715/0.4675, allocations: 409.2 kB / 1.067 GB, free: 8.98 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.4676, allocations: 4 kB / 1.067 GB, free: 8.977 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.242e-05/0.4676, allocations: 4 kB / 1.067 GB, free: 8.973 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.482e-06/0.4676, allocations: 4 kB / 1.067 GB, free: 8.969 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.798e-05/0.4676, allocations: 19.92 kB / 1.067 GB, free: 8.949 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.4676, allocations: 0 / 1.067 GB, free: 8.949 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.4676, allocations: 0 / 1.067 GB, free: 8.949 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006948/0.4683, allocations: 0.5086 MB / 1.068 GB, free: 8.418 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000128/0.4685, allocations: 140.5 kB / 1.068 GB, free: 8.262 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.461e-05/0.4685, allocations: 7.938 kB / 1.068 GB, free: 8.254 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001548/0.4687, allocations: 19.97 kB / 1.068 GB, free: 8.234 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.539e-05/0.4688, allocations: 27.97 kB / 1.068 GB, free: 8.207 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.348e-05/0.4688, allocations: 12 kB / 1.068 GB, free: 8.195 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.000485/0.4693, allocations: 435.1 kB / 1.068 GB, free: 7.773 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.8e-07/0.4693, allocations: 0 / 1.068 GB, free: 7.773 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0005124/0.4699, allocations: 107.9 kB / 1.068 GB, free: 7.668 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.0002994/0.4702, allocations: 153.4 kB / 1.068 GB, free: 7.512 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0006248/0.4708, allocations: 371.5 kB / 1.069 GB, free: 7.148 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.025e-06/0.4708, allocations: 0 / 1.069 GB, free: 7.148 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002565/0.4711, allocations: 188.6 kB / 1.069 GB, free: 6.965 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003115/0.4714, allocations: 43.14 kB / 1.069 GB, free: 6.926 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00129/0.4727, allocations: 0.9211 MB / 1.07 GB, free: 5.965 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005618/0.4733, allocations: 0.8388 MB / 1.071 GB, free: 5.102 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0002522/0.4735, allocations: 98.81 kB / 1.071 GB, free: 5.004 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.603e-05/0.4736, allocations: 39.42 kB / 1.071 GB, free: 4.965 MB / 0.8262 GB Notification: Performance of SimCode: time 2.91e-07/0.4736, allocations: 0 / 1.071 GB, free: 4.965 MB / 0.8262 GB Notification: Performance of Templates: time 0.01628/0.4899, allocations: 7.897 MB / 1.079 GB, free: 13.13 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