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.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.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.001598/0.001599, allocations: 103.6 kB / 16.35 MB, free: 6.289 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.001813/0.001813, allocations: 191.6 kB / 17.29 MB, free: 5.863 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.358/1.358, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.503/2.503, allocations: 442.6 MB / 0.7165 GB, free: 14.68 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00126/0.00126, allocations: 62.62 kB / 0.8773 GB, free: 11 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3178/0.3191, allocations: 153 MB / 1.027 GB, free: 2.078 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.TimeTable): time 0.003625/0.3227, allocations: 2.483 MB / 1.029 GB, free: 15.58 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.00257/0.3253, allocations: 1.575 MB / 1.031 GB, free: 14 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001661/0.3255, allocations: 7.938 kB / 1.031 GB, free: 13.99 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0005686/0.3261, allocations: 330.8 kB / 1.031 GB, free: 13.66 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0005443/0.3266, allocations: 338.7 kB / 1.031 GB, free: 13.33 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008967/0.3276, allocations: 437.4 kB / 1.032 GB, free: 12.91 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0007582/0.3283, allocations: 0.7051 MB / 1.032 GB, free: 12.2 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001869/0.3285, allocations: 85.7 kB / 1.033 GB, free: 12.11 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003436/0.3289, allocations: 322.7 kB / 1.033 GB, free: 11.8 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003168/0.3292, allocations: 318.7 kB / 1.033 GB, free: 11.48 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 5.171e-05/0.3293, allocations: 28 kB / 1.033 GB, free: 11.46 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001718/0.3294, allocations: 95.89 kB / 1.033 GB, free: 11.36 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001758/0.3296, allocations: 187.4 kB / 1.033 GB, free: 11.18 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0002235/0.3299, allocations: 278.1 kB / 1.034 GB, free: 10.91 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0006612/0.3305, allocations: 0.7356 MB / 1.034 GB, free: 10.17 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.3305, allocations: 0 / 1.034 GB, free: 10.17 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.372e-06/0.3305, allocations: 0 / 1.034 GB, free: 10.17 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.21e-05/0.3306, allocations: 0 / 1.034 GB, free: 10.17 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.00144/0.332, allocations: 1.008 MB / 1.035 GB, free: 9.109 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.068e-05/0.332, allocations: 12.03 kB / 1.035 GB, free: 9.098 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001073/0.3322, allocations: 76 kB / 1.035 GB, free: 9.023 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008447/0.333, allocations: 0.6172 MB / 1.036 GB, free: 8.363 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.133e-05/0.333, allocations: 16.38 kB / 1.036 GB, free: 8.348 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.836e-05/0.3331, allocations: 15.92 kB / 1.036 GB, free: 8.332 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003475/0.3334, allocations: 207.7 kB / 1.036 GB, free: 8.109 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.616e-06/0.3334, allocations: 0 / 1.036 GB, free: 8.109 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.189e-05/0.3335, allocations: 7.984 kB / 1.036 GB, free: 8.102 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.512e-06/0.3335, allocations: 0 / 1.036 GB, free: 8.102 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002409/0.3337, allocations: 103.8 kB / 1.036 GB, free: 8 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00122/0.335, allocations: 1.056 MB / 1.037 GB, free: 6.879 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005421/0.3355, allocations: 273 kB / 1.038 GB, free: 6.566 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000196/0.3357, allocations: 104.2 kB / 1.038 GB, free: 6.449 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 4.744e-05/0.3358, allocations: 11.98 kB / 1.038 GB, free: 6.438 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003666/0.3362, allocations: 219.4 kB / 1.038 GB, free: 6.195 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=25): time 1.573e-06/0.3362, allocations: 0 / 1.038 GB, free: 6.195 MB / 0.8106 GB Notification: Performance of matching and sorting (n=25): time 0.0008853/0.3371, allocations: 425.6 kB / 1.038 GB, free: 5.773 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.466e-05/0.3371, allocations: 166.1 kB / 1.039 GB, free: 5.574 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001075/0.3382, allocations: 1.032 MB / 1.04 GB, free: 4.531 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.856e-05/0.3383, allocations: 37.69 kB / 1.04 GB, free: 4.488 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002081/0.3385, allocations: 284.9 kB / 1.04 GB, free: 4.203 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 6.72e-05/0.3385, allocations: 79.08 kB / 1.04 GB, free: 4.125 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001754/0.3387, allocations: 142.2 kB / 1.04 GB, free: 3.98 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001036/0.3388, allocations: 334 kB / 1.04 GB, free: 3.648 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003535/0.3392, allocations: 209.2 kB / 1.041 GB, free: 3.445 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004072/0.3396, allocations: 303 kB / 1.041 GB, free: 3.117 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006265/0.3402, allocations: 411.2 kB / 1.041 GB, free: 2.691 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.619e-06/0.3403, allocations: 8 kB / 1.041 GB, free: 2.684 MB / 0.8106 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001048/0.3413, allocations: 0.6676 MB / 1.042 GB, free: 2.012 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.705e-05/0.3413, allocations: 8 kB / 1.042 GB, free: 2.004 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.848e-06/0.3414, allocations: 4.125 kB / 1.042 GB, free: 2 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.714e-05/0.3414, allocations: 7.938 kB / 1.042 GB, free: 1.992 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003969/0.3418, allocations: 119.8 kB / 1.042 GB, free: 1.875 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.119e-05/0.3418, allocations: 12.09 kB / 1.042 GB, free: 1.863 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000259/0.3421, allocations: 43.67 kB / 1.042 GB, free: 1.82 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.283e-05/0.3421, allocations: 23.98 kB / 1.042 GB, free: 1.797 MB / 0.8106 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.0002676/0.3424, allocations: 281.6 kB / 1.042 GB, free: 1.512 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.903e-05/0.3425, allocations: 67.16 kB / 1.043 GB, free: 1.445 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001129/0.3426, allocations: 73.88 kB / 1.043 GB, free: 1.371 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.861e-06/0.3426, allocations: 4 kB / 1.043 GB, free: 1.367 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.034e-05/0.3426, allocations: 7.938 kB / 1.043 GB, free: 1.359 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.509e-06/0.3427, allocations: 7.938 kB / 1.043 GB, free: 1.352 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004188/0.3431, allocations: 469.1 kB / 1.043 GB, free: 0.8438 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.3431, allocations: 0 / 1.043 GB, free: 0.8438 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.415e-05/0.3432, allocations: 19.98 kB / 1.043 GB, free: 0.8242 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.817e-06/0.3432, allocations: 7.938 kB / 1.043 GB, free: 0.8164 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.101e-05/0.3432, allocations: 7.984 kB / 1.043 GB, free: 0.8086 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.194e-06/0.3432, allocations: 0 / 1.043 GB, free: 0.8086 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.907e-06/0.3432, allocations: 7.938 kB / 1.043 GB, free: 0.8008 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006428/0.3439, allocations: 394.5 kB / 1.043 GB, free: 396 kB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001871/0.3441, allocations: 164.1 kB / 1.044 GB, free: 212 kB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.27e-05/0.3441, allocations: 12 kB / 1.044 GB, free: 200 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001627/0.3443, allocations: 11.98 kB / 1.044 GB, free: 188 kB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.011e-05/0.3444, allocations: 31.91 kB / 1.044 GB, free: 156 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.53e-05/0.3444, allocations: 19.98 kB / 1.044 GB, free: 136 kB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0006655/0.3451, allocations: 0.5966 MB / 1.044 GB, free: 15.54 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.7e-07/0.3451, allocations: 0 / 1.044 GB, free: 15.54 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0004036/0.3455, allocations: 112 kB / 1.044 GB, free: 15.43 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.001122/0.3466, allocations: 485 kB / 1.045 GB, free: 15.14 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0007243/0.3474, allocations: 411.4 kB / 1.045 GB, free: 14.74 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.3474, allocations: 320 / 1.045 GB, free: 14.74 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002364/0.3476, allocations: 111.9 kB / 1.045 GB, free: 14.63 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000845/0.3485, allocations: 225.4 kB / 1.046 GB, free: 14.43 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001447/0.3499, allocations: 1.08 MB / 1.047 GB, free: 13.31 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004419/0.3504, allocations: 0.9246 MB / 1.048 GB, free: 12.36 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0002446/0.3506, allocations: 108.9 kB / 1.048 GB, free: 12.25 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001263/0.3508, allocations: 63.41 kB / 1.048 GB, free: 12.18 MB / 0.8262 GB Notification: Performance of SimCode: time 6.52e-07/0.3508, allocations: 0 / 1.048 GB, free: 12.18 MB / 0.8262 GB Notification: Performance of Templates: time 0.01295/0.3637, allocations: 7.767 MB / 1.055 GB, free: 4.496 MB / 0.8262 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 -s gbode -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/jenkins1/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