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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.001385/0.001385, allocations: 119.8 kB / 16.37 MB, free: 6.016 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.001444/0.001444, allocations: 193 kB / 17.31 MB, free: 5.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.485/1.485, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.607/2.607, allocations: 442.6 MB / 0.7165 GB, free: 14.7 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001682/0.001682, allocations: 68.2 kB / 0.8774 GB, free: 10.98 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4232/0.4249, allocations: 153 MB / 1.027 GB, free: 2.055 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable): time 0.003604/0.4286, allocations: 0.8629 MB / 1.028 GB, free: 1.195 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.003429/0.4321, allocations: 1.451 MB / 1.029 GB, free: 15.73 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001628/0.4323, allocations: 3.938 kB / 1.029 GB, free: 15.72 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0006946/0.433, allocations: 207.4 kB / 1.029 GB, free: 15.52 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0002523/0.4333, allocations: 107.6 kB / 1.029 GB, free: 15.41 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.001735/0.435, allocations: 353.3 kB / 1.03 GB, free: 15.07 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.001564/0.4366, allocations: 0.8816 MB / 1.031 GB, free: 14.19 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003687/0.437, allocations: 96.17 kB / 1.031 GB, free: 14.09 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009122/0.4379, allocations: 347.4 kB / 1.031 GB, free: 13.75 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009609/0.4389, allocations: 263.3 kB / 1.031 GB, free: 13.5 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.0003711/0.4393, allocations: 48 kB / 1.031 GB, free: 13.45 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005775/0.4399, allocations: 111.9 kB / 1.031 GB, free: 13.34 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.000805/0.4407, allocations: 347.3 kB / 1.032 GB, free: 13 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0009136/0.4416, allocations: 270.8 kB / 1.032 GB, free: 12.73 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.001856/0.4435, allocations: 0.9077 MB / 1.033 GB, free: 11.82 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.4435, allocations: 4 kB / 1.033 GB, free: 11.82 MB / 0.8106 GB Notification: Performance of FrontEnd: time 3.146e-06/0.4435, allocations: 0 / 1.033 GB, free: 11.82 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.388e-05/0.4436, allocations: 0 / 1.033 GB, free: 11.82 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.003048/0.4467, allocations: 0.8841 MB / 1.034 GB, free: 10.88 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 6.231e-05/0.4467, allocations: 16.02 kB / 1.034 GB, free: 10.86 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004002/0.4471, allocations: 52.38 kB / 1.034 GB, free: 10.81 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001479/0.4486, allocations: 0.5448 MB / 1.034 GB, free: 10.23 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.479e-05/0.4487, allocations: 24.61 kB / 1.034 GB, free: 10.2 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000186/0.4489, allocations: 36.36 kB / 1.034 GB, free: 10.17 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006862/0.4496, allocations: 311.7 kB / 1.035 GB, free: 9.852 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.902e-05/0.4496, allocations: 4.125 kB / 1.035 GB, free: 9.848 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.269e-05/0.4497, allocations: 11.94 kB / 1.035 GB, free: 9.836 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.311e-05/0.4497, allocations: 0 / 1.035 GB, free: 9.836 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004939/0.4502, allocations: 223.8 kB / 1.035 GB, free: 9.617 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003136/0.4533, allocations: 1.184 MB / 1.036 GB, free: 8.375 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009202/0.4543, allocations: 463.7 kB / 1.036 GB, free: 7.895 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003582/0.4547, allocations: 178.6 kB / 1.037 GB, free: 7.711 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.449e-05/0.4547, allocations: 0 / 1.037 GB, free: 7.711 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006478/0.4553, allocations: 334 kB / 1.037 GB, free: 7.367 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=24): time 2.765e-06/0.4554, allocations: 0 / 1.037 GB, free: 7.367 MB / 0.8106 GB Notification: Performance of matching and sorting (n=24): time 0.001618/0.457, allocations: 0.6262 MB / 1.038 GB, free: 6.734 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002018/0.4572, allocations: 126.9 kB / 1.038 GB, free: 6.586 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00127/0.4585, allocations: 0.5916 MB / 1.038 GB, free: 5.988 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 0.0001769/0.4587, allocations: 49.64 kB / 1.038 GB, free: 5.934 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003158/0.459, allocations: 213.5 kB / 1.039 GB, free: 5.723 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 9.063e-05/0.4591, allocations: 51.44 kB / 1.039 GB, free: 5.672 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004083/0.4595, allocations: 181.5 kB / 1.039 GB, free: 5.488 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.000208/0.4597, allocations: 358.8 kB / 1.039 GB, free: 5.129 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002971/0.4601, allocations: 131.9 kB / 1.039 GB, free: 5 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001348/0.4614, allocations: 0.7142 MB / 1.04 GB, free: 4.113 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006647/0.4621, allocations: 304.6 kB / 1.04 GB, free: 3.77 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.426e-06/0.4621, allocations: 0 / 1.04 GB, free: 3.77 MB / 0.8106 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001084/0.4632, allocations: 421 kB / 1.041 GB, free: 3.352 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.73e-05/0.4632, allocations: 8 kB / 1.041 GB, free: 3.344 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.433e-05/0.4633, allocations: 4 kB / 1.041 GB, free: 3.34 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.702e-05/0.4633, allocations: 4 kB / 1.041 GB, free: 3.336 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002466/0.4636, allocations: 43.84 kB / 1.041 GB, free: 3.293 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.405e-05/0.4636, allocations: 8.172 kB / 1.041 GB, free: 3.285 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001743/0.4653, allocations: 131.9 kB / 1.041 GB, free: 3.156 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.824e-05/0.4654, allocations: 12 kB / 1.041 GB, free: 3.145 MB / 0.8106 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.0005676/0.466, allocations: 261.6 kB / 1.041 GB, free: 2.883 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001664/0.4661, allocations: 47.53 kB / 1.041 GB, free: 2.836 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001529/0.4663, allocations: 47.36 kB / 1.041 GB, free: 2.789 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.464e-06/0.4663, allocations: 7.938 kB / 1.041 GB, free: 2.781 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.093e-05/0.4663, allocations: 4 kB / 1.041 GB, free: 2.777 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.541e-06/0.4664, allocations: 0 / 1.041 GB, free: 2.777 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007351/0.4671, allocations: 405.2 kB / 1.042 GB, free: 2.332 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.488e-06/0.4671, allocations: 0 / 1.042 GB, free: 2.332 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.225e-05/0.4672, allocations: 7.938 kB / 1.042 GB, free: 2.324 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.334e-06/0.4672, allocations: 4 kB / 1.042 GB, free: 2.32 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.718e-05/0.4672, allocations: 11.98 kB / 1.042 GB, free: 2.309 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.582e-06/0.4672, allocations: 7.938 kB / 1.042 GB, free: 2.301 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.265e-06/0.4672, allocations: 0 / 1.042 GB, free: 2.301 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001079/0.4683, allocations: 0.5091 MB / 1.042 GB, free: 1.77 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001894/0.4685, allocations: 136.4 kB / 1.042 GB, free: 1.617 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.638e-05/0.4686, allocations: 8 kB / 1.042 GB, free: 1.609 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002348/0.4689, allocations: 19.92 kB / 1.042 GB, free: 1.59 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001167/0.469, allocations: 31.97 kB / 1.042 GB, free: 1.559 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.977e-05/0.469, allocations: 19.97 kB / 1.042 GB, free: 1.539 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0007326/0.4698, allocations: 439 kB / 1.043 GB, free: 1.105 MB / 0.8106 GB Notification: Performance of sort global known variables: time 3.7e-07/0.4698, allocations: 0 / 1.043 GB, free: 1.105 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0007941/0.4706, allocations: 100 kB / 1.043 GB, free: 1.008 MB / 0.8106 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.0003678/0.471, allocations: 153.3 kB / 1.043 GB, free: 0.8477 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0008267/0.4718, allocations: 355.5 kB / 1.043 GB, free: 0.5 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.4718, allocations: 0 / 1.043 GB, free: 0.5 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0003789/0.4722, allocations: 187.9 kB / 1.043 GB, free: 324 kB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004592/0.4727, allocations: 37.95 kB / 1.043 GB, free: 288 kB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001848/0.4746, allocations: 0.8344 MB / 1.044 GB, free: 15.41 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006933/0.4753, allocations: 0.8311 MB / 1.045 GB, free: 14.55 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0003962/0.4757, allocations: 94.88 kB / 1.045 GB, free: 14.46 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001365/0.4758, allocations: 35.42 kB / 1.045 GB, free: 14.43 MB / 0.8262 GB Notification: Performance of SimCode: time 1.272e-06/0.4758, allocations: 0 / 1.045 GB, free: 14.43 MB / 0.8262 GB Notification: Performance of Templates: time 0.02038/0.4962, allocations: 7.942 MB / 1.053 GB, free: 6.555 MB / 0.8262 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 -s cvode -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