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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.001496/0.001496, allocations: 107.6 kB / 16.27 MB, free: 6.414 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.001494/0.001494, allocations: 190.3 kB / 17.2 MB, free: 5.953 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.329/1.329, allocations: 222.9 MB / 240.9 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.624/2.624, allocations: 482.4 MB / 0.7553 GB, free: 6.969 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001905/0.001905, allocations: 68.45 kB / 0.9245 GB, free: 15.93 MB / 0.7012 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7247/0.7266, allocations: 162.2 MB / 1.083 GB, free: 1.629 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable): time 0.002403/0.7291, allocations: 0.8439 MB / 1.084 GB, free: 1.082 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002244/0.7314, allocations: 1.459 MB / 1.085 GB, free: 36 kB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001029/0.7315, allocations: 2.625 kB / 1.085 GB, free: 36 kB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.000634/0.7322, allocations: 196.1 kB / 1.085 GB, free: 15.98 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0002088/0.7324, allocations: 118.7 kB / 1.085 GB, free: 15.94 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.001258/0.7337, allocations: 352.1 kB / 1.086 GB, free: 15.77 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.001345/0.735, allocations: 0.8575 MB / 1.087 GB, free: 15.43 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002297/0.7352, allocations: 91.23 kB / 1.087 GB, free: 15.4 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004972/0.7358, allocations: 349.5 kB / 1.087 GB, free: 15.29 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004725/0.7362, allocations: 269.3 kB / 1.087 GB, free: 15.21 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.0001508/0.7364, allocations: 44.75 kB / 1.087 GB, free: 15.21 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003284/0.7367, allocations: 109.3 kB / 1.087 GB, free: 15.18 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0004716/0.7372, allocations: 345.3 kB / 1.088 GB, free: 15.07 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0003857/0.7376, allocations: 270.5 kB / 1.088 GB, free: 14.91 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.001063/0.7387, allocations: 0.8996 MB / 1.089 GB, free: 14.64 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.506e-06/0.7387, allocations: 0.5625 kB / 1.089 GB, free: 14.64 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.523e-06/0.7387, allocations: 0.7188 kB / 1.089 GB, free: 14.64 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 9.148e-06/0.7387, allocations: 4 kB / 1.089 GB, free: 14.64 MB / 0.8419 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.001623/0.7403, allocations: 0.8851 MB / 1.09 GB, free: 14.03 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.529e-05/0.7404, allocations: 9.859 kB / 1.09 GB, free: 14.03 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001995/0.7406, allocations: 54.66 kB / 1.09 GB, free: 14 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008401/0.7414, allocations: 0.5425 MB / 1.09 GB, free: 13.67 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.008e-05/0.7415, allocations: 26.22 kB / 1.09 GB, free: 13.66 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001151/0.7416, allocations: 32.47 kB / 1.09 GB, free: 13.66 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004931/0.7421, allocations: 313.4 kB / 1.091 GB, free: 13.52 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.748e-06/0.7421, allocations: 192 / 1.091 GB, free: 13.52 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.769e-05/0.7421, allocations: 10.5 kB / 1.091 GB, free: 13.51 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.522e-06/0.7422, allocations: 2.625 kB / 1.091 GB, free: 13.51 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003369/0.7425, allocations: 221.9 kB / 1.091 GB, free: 13.44 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002043/0.7446, allocations: 1.183 MB / 1.092 GB, free: 12.75 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007136/0.7453, allocations: 468.4 kB / 1.093 GB, free: 12.55 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002753/0.7456, allocations: 181.3 kB / 1.093 GB, free: 12.47 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 1.057e-05/0.7456, allocations: 6.094 kB / 1.093 GB, free: 12.46 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004792/0.7461, allocations: 341.3 kB / 1.093 GB, free: 12.32 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=24): time 1.533e-06/0.7461, allocations: 0 / 1.093 GB, free: 12.32 MB / 0.8419 GB Notification: Performance of matching and sorting (n=24): time 0.001078/0.7472, allocations: 0.6208 MB / 1.094 GB, free: 12.11 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.354e-05/0.7473, allocations: 120.1 kB / 1.094 GB, free: 11.98 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007612/0.748, allocations: 0.5952 MB / 1.094 GB, free: 11.73 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 9.532e-05/0.7481, allocations: 45.83 kB / 1.094 GB, free: 11.7 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002589/0.7484, allocations: 221.3 kB / 1.095 GB, free: 11.52 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 5.93e-05/0.7485, allocations: 56.61 kB / 1.095 GB, free: 11.47 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002751/0.7488, allocations: 184.4 kB / 1.095 GB, free: 11.42 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001853/0.7489, allocations: 355.6 kB / 1.095 GB, free: 11.09 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002014/0.7491, allocations: 134.1 kB / 1.095 GB, free: 11.05 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009108/0.7501, allocations: 0.7172 MB / 1.096 GB, free: 10.48 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003749/0.7504, allocations: 299.7 kB / 1.096 GB, free: 10.28 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.427e-06/0.7505, allocations: 5.469 kB / 1.096 GB, free: 10.28 MB / 0.8419 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0007052/0.7512, allocations: 422.2 kB / 1.097 GB, free: 10.11 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.665e-05/0.7512, allocations: 6.344 kB / 1.097 GB, free: 10.11 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.524e-06/0.7512, allocations: 3.875 kB / 1.097 GB, free: 10.11 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.984e-05/0.7512, allocations: 13.22 kB / 1.097 GB, free: 10.1 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001593/0.7514, allocations: 36.47 kB / 1.097 GB, free: 10.09 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.006e-05/0.7514, allocations: 4.734 kB / 1.097 GB, free: 10.09 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00133/0.7528, allocations: 137.5 kB / 1.097 GB, free: 10.05 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.618e-05/0.7528, allocations: 11.58 kB / 1.097 GB, free: 10.05 MB / 0.8419 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.0003813/0.7532, allocations: 261 kB / 1.097 GB, free: 9.891 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.749e-05/0.7533, allocations: 40.52 kB / 1.097 GB, free: 9.871 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001054/0.7534, allocations: 55.28 kB / 1.097 GB, free: 9.84 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.431e-06/0.7534, allocations: 3.281 kB / 1.097 GB, free: 9.84 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.286e-06/0.7534, allocations: 1.219 kB / 1.097 GB, free: 9.84 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.011e-06/0.7534, allocations: 6.312 kB / 1.097 GB, free: 9.836 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004929/0.7539, allocations: 407.6 kB / 1.098 GB, free: 9.562 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.896e-06/0.7539, allocations: 0.8438 kB / 1.098 GB, free: 9.562 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.436e-05/0.754, allocations: 10.66 kB / 1.098 GB, free: 9.559 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.457e-06/0.754, allocations: 0.8125 kB / 1.098 GB, free: 9.559 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.458e-05/0.754, allocations: 14.17 kB / 1.098 GB, free: 9.551 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.006e-06/0.754, allocations: 2.344 kB / 1.098 GB, free: 9.551 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/0.754, allocations: 0.6562 kB / 1.098 GB, free: 9.551 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000724/0.7547, allocations: 0.5163 MB / 1.098 GB, free: 9.324 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001276/0.7549, allocations: 119.4 kB / 1.098 GB, free: 9.211 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.942e-05/0.7549, allocations: 15.67 kB / 1.098 GB, free: 9.199 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000168/0.7551, allocations: 16.5 kB / 1.098 GB, free: 9.195 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.433e-05/0.7552, allocations: 31.61 kB / 1.098 GB, free: 9.188 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.396e-05/0.7552, allocations: 20.2 kB / 1.098 GB, free: 9.18 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0005393/0.7558, allocations: 434.6 kB / 1.099 GB, free: 9.004 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.7e-07/0.7558, allocations: 4 kB / 1.099 GB, free: 9 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0005279/0.7563, allocations: 111.9 kB / 1.099 GB, free: 8.98 MB / 0.8419 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.000245/0.7566, allocations: 150.2 kB / 1.099 GB, free: 8.875 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0006217/0.7572, allocations: 368.7 kB / 1.099 GB, free: 8.77 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 4.659e-06/0.7572, allocations: 4.188 kB / 1.099 GB, free: 8.766 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0003193/0.7575, allocations: 221.5 kB / 1.1 GB, free: 8.691 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003058/0.7579, allocations: 34.97 kB / 1.1 GB, free: 8.676 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001386/0.7593, allocations: 0.8742 MB / 1.101 GB, free: 8.219 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005031/0.7598, allocations: 0.8315 MB / 1.101 GB, free: 7.5 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.386e-05/0.7599, allocations: 38.73 kB / 1.101 GB, free: 7.488 MB / 0.8419 GB Notification: Performance of SimCode: time 3.91e-07/0.7599, allocations: 0 / 1.101 GB, free: 7.488 MB / 0.8419 GB Notification: Performance of Templates: time 0.01186/0.7717, allocations: 6.966 MB / 1.108 GB, free: 6.836 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=400 -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