Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.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.Reals.Sources.Validation.TimeTable,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|timTabLin.y.1.|timTabLinCon.y.1.|timTabCon.y.1.|timTabLinHol.y.1.|timTabLinDer.y.1.",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.TimeTable") translateModel(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.TimeTable,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|timTabLin.y.1.|timTabLinCon.y.1.|timTabCon.y.1.|timTabLinHol.y.1.|timTabLinDer.y.1.",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.TimeTable") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001348/0.001348, allocations: 107.4 kB / 15.22 MB, free: 0.6562 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.001228/0.001228, allocations: 194.7 kB / 16.14 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.407/1.407, allocations: 222.9 MB / 239.8 MB, free: 4.59 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.79/2.79, allocations: 461.9 MB / 0.7342 GB, free: 15.03 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001492/0.001492, allocations: 71.45 kB / 0.8984 GB, free: 37.31 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3441/0.3456, allocations: 157.4 MB / 1.052 GB, free: 8.859 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.TimeTable): time 0.004443/0.3501, allocations: 2.515 MB / 1.055 GB, free: 6.328 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002898/0.3531, allocations: 1.563 MB / 1.056 GB, free: 4.758 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001887/0.3533, allocations: 11.88 kB / 1.056 GB, free: 4.746 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0006296/0.3539, allocations: 311.1 kB / 1.056 GB, free: 4.441 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0005264/0.3545, allocations: 306.9 kB / 1.057 GB, free: 4.141 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.001058/0.3556, allocations: 409.5 kB / 1.057 GB, free: 3.746 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0007176/0.3563, allocations: 0.6621 MB / 1.058 GB, free: 3.082 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002016/0.3565, allocations: 81.72 kB / 1.058 GB, free: 3 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000361/0.3569, allocations: 286.6 kB / 1.058 GB, free: 2.719 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003289/0.3572, allocations: 310.7 kB / 1.058 GB, free: 2.414 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 5.05e-05/0.3573, allocations: 12 kB / 1.058 GB, free: 2.402 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001983/0.3575, allocations: 71.97 kB / 1.058 GB, free: 2.332 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001915/0.3577, allocations: 183.3 kB / 1.059 GB, free: 2.152 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0002427/0.3579, allocations: 254.1 kB / 1.059 GB, free: 1.902 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.000962/0.3589, allocations: 0.7164 MB / 1.06 GB, free: 1.184 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.08e-06/0.3589, allocations: 0 / 1.06 GB, free: 1.184 MB / 0.8106 GB Notification: Performance of FrontEnd: time 9.11e-07/0.3589, allocations: 0 / 1.06 GB, free: 1.184 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 8.546e-06/0.3589, allocations: 0 / 1.06 GB, free: 1.184 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: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.001773/0.3607, allocations: 0.9925 MB / 1.061 GB, free: 140 kB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.464e-05/0.3607, allocations: 16.02 kB / 1.061 GB, free: 124 kB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001326/0.3609, allocations: 76 kB / 1.061 GB, free: 48 kB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001057/0.362, allocations: 0.6172 MB / 1.061 GB, free: 15.39 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.385e-05/0.362, allocations: 12.38 kB / 1.061 GB, free: 15.38 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.263e-05/0.362, allocations: 19.92 kB / 1.061 GB, free: 15.36 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005042/0.3625, allocations: 195.3 kB / 1.061 GB, free: 15.14 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.181e-05/0.3626, allocations: 7.984 kB / 1.061 GB, free: 15.14 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.204e-05/0.3626, allocations: 4 kB / 1.061 GB, free: 15.13 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.145e-06/0.3626, allocations: 7.984 kB / 1.061 GB, free: 15.12 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003668/0.363, allocations: 99.88 kB / 1.062 GB, free: 15.03 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001656/0.3646, allocations: 1.059 MB / 1.063 GB, free: 13.9 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006058/0.3653, allocations: 276.9 kB / 1.063 GB, free: 13.59 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002112/0.3655, allocations: 108.2 kB / 1.063 GB, free: 13.46 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.186e-05/0.3655, allocations: 7.984 kB / 1.063 GB, free: 13.46 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004132/0.3659, allocations: 224.5 kB / 1.063 GB, free: 13.21 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=25): time 1.863e-06/0.3659, allocations: 0 / 1.063 GB, free: 13.21 MB / 0.8262 GB Notification: Performance of matching and sorting (n=25): time 0.001029/0.367, allocations: 421.5 kB / 1.064 GB, free: 12.79 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.023e-05/0.3671, allocations: 170.2 kB / 1.064 GB, free: 12.59 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001439/0.3685, allocations: 1.036 MB / 1.065 GB, free: 11.55 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.38e-05/0.3686, allocations: 37.7 kB / 1.065 GB, free: 11.5 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003054/0.3689, allocations: 284.9 kB / 1.065 GB, free: 11.22 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001083/0.369, allocations: 83.08 kB / 1.065 GB, free: 11.14 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001868/0.3692, allocations: 134.2 kB / 1.065 GB, free: 11 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001323/0.3693, allocations: 334 kB / 1.066 GB, free: 10.67 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003749/0.3697, allocations: 213.2 kB / 1.066 GB, free: 10.46 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004447/0.3702, allocations: 307 kB / 1.066 GB, free: 10.13 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006591/0.3708, allocations: 405.1 kB / 1.066 GB, free: 9.711 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.566e-06/0.3709, allocations: 4 kB / 1.066 GB, free: 9.707 MB / 0.8262 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001528/0.3724, allocations: 0.6745 MB / 1.067 GB, free: 9.031 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.539e-05/0.3724, allocations: 4 kB / 1.067 GB, free: 9.027 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.136e-05/0.3725, allocations: 4 kB / 1.067 GB, free: 9.023 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.225e-05/0.3725, allocations: 4 kB / 1.067 GB, free: 9.02 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004191/0.3729, allocations: 115.8 kB / 1.067 GB, free: 8.906 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.524e-05/0.3729, allocations: 11.88 kB / 1.067 GB, free: 8.895 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003745/0.3733, allocations: 47.92 kB / 1.067 GB, free: 8.848 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.642e-05/0.3734, allocations: 23.98 kB / 1.067 GB, free: 8.824 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 25 ($PRE.timTabLin.tab.nextTimeEvent,$whenCondition5,$PRE.timTabLinHol.tab.nextTimeEvent,$whenCondition4,$PRE.timTabLinDer.tab.nextTimeEvent,$whenCondition3,$PRE.timTabCon.tab.nextTimeEvent,$whenCondition2,$PRE.timTabLinCon.tab.nextTimeEvent,$whenCondition1,timTabLinCon.tab.nextTimeEventScaled,$PRE.timTabLinCon.tab.nextTimeEventScaled,timTabLinCon.tab.nextTimeEvent,timTabCon.tab.nextTimeEventScaled,$PRE.timTabCon.tab.nextTimeEventScaled,timTabCon.tab.nextTimeEvent,timTabLinDer.tab.nextTimeEventScaled,$PRE.timTabLinDer.tab.nextTimeEventScaled,timTabLinDer.tab.nextTimeEvent,timTabLinHol.tab.nextTimeEventScaled,$PRE.timTabLinHol.tab.nextTimeEventScaled,timTabLinHol.tab.nextTimeEvent,timTabLin.tab.nextTimeEventScaled,$PRE.timTabLin.tab.nextTimeEventScaled,timTabLin.tab.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (75): * Single equations (assignments): 75 * 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.0003591/0.3737, allocations: 278.9 kB / 1.068 GB, free: 8.547 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001019/0.3738, allocations: 71.06 kB / 1.068 GB, free: 8.477 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001274/0.374, allocations: 73.88 kB / 1.068 GB, free: 8.402 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.181e-06/0.374, allocations: 4 kB / 1.068 GB, free: 8.398 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.016e-05/0.374, allocations: 7.938 kB / 1.068 GB, free: 8.391 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/0.374, allocations: 0 / 1.068 GB, free: 8.391 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004536/0.3745, allocations: 465.4 kB / 1.068 GB, free: 7.887 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.3745, allocations: 0 / 1.068 GB, free: 7.887 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.732e-05/0.3746, allocations: 23.98 kB / 1.068 GB, free: 7.863 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.44e-06/0.3746, allocations: 4 kB / 1.068 GB, free: 7.859 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.31e-05/0.3746, allocations: 11.98 kB / 1.068 GB, free: 7.848 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.161e-06/0.3746, allocations: 11.88 kB / 1.068 GB, free: 7.836 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.008e-06/0.3746, allocations: 3.938 kB / 1.068 GB, free: 7.832 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000824/0.3754, allocations: 384.3 kB / 1.069 GB, free: 7.426 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001578/0.3756, allocations: 164.1 kB / 1.069 GB, free: 7.246 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.838e-05/0.3757, allocations: 8 kB / 1.069 GB, free: 7.238 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001694/0.3759, allocations: 15.98 kB / 1.069 GB, free: 7.223 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.174e-05/0.376, allocations: 35.84 kB / 1.069 GB, free: 7.188 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.661e-05/0.376, allocations: 15.98 kB / 1.069 GB, free: 7.172 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0008447/0.3768, allocations: 0.6005 MB / 1.069 GB, free: 6.574 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.7e-07/0.3769, allocations: 4 kB / 1.069 GB, free: 6.57 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0004323/0.3774, allocations: 112 kB / 1.07 GB, free: 6.461 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition5,timTabLin.tab.nextTimeEvent,timTabLin.tab.nextTimeEventScaled,$whenCondition4,timTabLinHol.tab.nextTimeEvent,timTabLinHol.tab.nextTimeEventScaled,$whenCondition3,timTabLinDer.tab.nextTimeEvent,timTabLinDer.tab.nextTimeEventScaled,$whenCondition2,timTabCon.tab.nextTimeEvent,timTabCon.tab.nextTimeEventScaled,$whenCondition1,timTabLinCon.tab.nextTimeEvent,timTabLinCon.tab.nextTimeEventScaled) * Number of discrete states: 10 (timTabLinCon.tab.nextTimeEventScaled,timTabLinCon.tab.nextTimeEvent,timTabCon.tab.nextTimeEventScaled,timTabCon.tab.nextTimeEvent,timTabLinDer.tab.nextTimeEventScaled,timTabLinDer.tab.nextTimeEvent,timTabLinHol.tab.nextTimeEventScaled,timTabLinHol.tab.nextTimeEvent,timTabLin.tab.nextTimeEventScaled,timTabLin.tab.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 10 * 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.001334/0.3787, allocations: 488.8 kB / 1.07 GB, free: 6.164 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0008232/0.3796, allocations: 406.3 kB / 1.07 GB, free: 5.77 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 4.669e-06/0.3796, allocations: 0 / 1.07 GB, free: 5.77 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0003481/0.3799, allocations: 120.3 kB / 1.071 GB, free: 5.652 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000899/0.3808, allocations: 197.9 kB / 1.071 GB, free: 5.461 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001957/0.3828, allocations: 1.223 MB / 1.072 GB, free: 4.195 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006085/0.3834, allocations: 0.9288 MB / 1.073 GB, free: 3.238 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0002998/0.3837, allocations: 109.3 kB / 1.073 GB, free: 3.129 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001453/0.3839, allocations: 63.41 kB / 1.073 GB, free: 3.066 MB / 0.8262 GB Notification: Performance of SimCode: time 1.042e-06/0.3839, allocations: 0 / 1.073 GB, free: 3.066 MB / 0.8262 GB Notification: Performance of Templates: time 0.01617/0.4001, allocations: 7.416 MB / 1.08 GB, free: 11.73 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.TimeTable.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.TimeTable.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.TimeTable.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.TimeTable.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.TimeTable.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.TimeTable -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.TimeTable.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.TimeTable_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Sources_Validation_TimeTable.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.TimeTable.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches