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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_TimeTable",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_TimeTable",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002301/0.002301, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.002675/0.002675, allocations: 194.7 kB / 16.25 MB, free: 6.621 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.453/1.453, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.755/2.755, allocations: 461.9 MB / 0.7343 GB, free: 15 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001242/0.001242, allocations: 69.58 kB / 0.8987 GB, free: 37.11 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3268/0.3281, allocations: 157.4 MB / 1.052 GB, free: 8.676 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable): time 0.001873/0.33, allocations: 0.914 MB / 1.053 GB, free: 7.758 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001723/0.3317, allocations: 1.459 MB / 1.055 GB, free: 6.285 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.617e-05/0.3318, allocations: 4 kB / 1.055 GB, free: 6.281 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0004209/0.3323, allocations: 187.5 kB / 1.055 GB, free: 6.098 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001402/0.3324, allocations: 111.7 kB / 1.055 GB, free: 5.988 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008731/0.3333, allocations: 333.3 kB / 1.055 GB, free: 5.668 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0007736/0.3341, allocations: 0.8582 MB / 1.056 GB, free: 4.809 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001748/0.3343, allocations: 92.25 kB / 1.056 GB, free: 4.719 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004271/0.3347, allocations: 355.4 kB / 1.057 GB, free: 4.371 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003461/0.3351, allocations: 259.3 kB / 1.057 GB, free: 4.117 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.0001435/0.3352, allocations: 52 kB / 1.057 GB, free: 4.066 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002419/0.3355, allocations: 111.9 kB / 1.057 GB, free: 3.957 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.00036/0.3358, allocations: 347.3 kB / 1.057 GB, free: 3.617 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0003034/0.3361, allocations: 278.7 kB / 1.058 GB, free: 3.344 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0007377/0.3369, allocations: 0.9002 MB / 1.059 GB, free: 2.441 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.3369, allocations: 0 / 1.059 GB, free: 2.441 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.553e-06/0.3369, allocations: 0 / 1.059 GB, free: 2.441 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 2.034e-05/0.3369, allocations: 0 / 1.059 GB, free: 2.441 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.001537/0.3385, allocations: 0.888 MB / 1.059 GB, free: 1.496 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.579e-05/0.3385, allocations: 8.625 kB / 1.059 GB, free: 1.488 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.592e-05/0.3386, allocations: 46.73 kB / 1.059 GB, free: 1.434 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001854/0.3388, allocations: 60.31 kB / 1.059 GB, free: 1.375 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006931/0.3395, allocations: 0.5371 MB / 1.06 GB, free: 0.8008 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.67e-05/0.3395, allocations: 20.61 kB / 1.06 GB, free: 0.7812 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.775e-05/0.3396, allocations: 40.31 kB / 1.06 GB, free: 0.7422 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004061/0.34, allocations: 314.9 kB / 1.06 GB, free: 432 kB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.001e-05/0.34, allocations: 7.938 kB / 1.06 GB, free: 424 kB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.014e-05/0.3401, allocations: 0 / 1.06 GB, free: 424 kB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.523e-06/0.3401, allocations: 4 kB / 1.06 GB, free: 420 kB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002824/0.3404, allocations: 227.8 kB / 1.061 GB, free: 192 kB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001725/0.3421, allocations: 1.176 MB / 1.062 GB, free: 14.95 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005682/0.3427, allocations: 467.8 kB / 1.062 GB, free: 14.47 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002141/0.3429, allocations: 186.6 kB / 1.062 GB, free: 14.28 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.437e-05/0.3429, allocations: 4 kB / 1.062 GB, free: 14.27 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004026/0.3433, allocations: 328.8 kB / 1.063 GB, free: 13.93 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=24): time 1.703e-06/0.3433, allocations: 0 / 1.063 GB, free: 13.93 MB / 0.8262 GB Notification: Performance of matching and sorting (n=24): time 0.0009247/0.3443, allocations: 0.6341 MB / 1.063 GB, free: 13.29 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.897e-05/0.3443, allocations: 106.8 kB / 1.063 GB, free: 13.16 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005981/0.3449, allocations: 0.6032 MB / 1.064 GB, free: 12.56 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 9.189e-05/0.345, allocations: 49.64 kB / 1.064 GB, free: 12.5 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001936/0.3452, allocations: 214.5 kB / 1.064 GB, free: 12.29 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 5.141e-05/0.3453, allocations: 59.44 kB / 1.064 GB, free: 12.23 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002282/0.3455, allocations: 189.5 kB / 1.064 GB, free: 12.04 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001174/0.3456, allocations: 354.8 kB / 1.065 GB, free: 11.68 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001553/0.3458, allocations: 131.8 kB / 1.065 GB, free: 11.55 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000738/0.3466, allocations: 0.7181 MB / 1.066 GB, free: 10.66 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003275/0.3469, allocations: 292.6 kB / 1.066 GB, free: 10.33 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.502e-06/0.3469, allocations: 4 kB / 1.066 GB, free: 10.32 MB / 0.8262 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0006324/0.3475, allocations: 420.7 kB / 1.066 GB, free: 9.906 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.59e-05/0.3476, allocations: 8 kB / 1.066 GB, free: 9.898 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.067e-06/0.3476, allocations: 12.12 kB / 1.066 GB, free: 9.887 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.375e-05/0.3476, allocations: 4 kB / 1.066 GB, free: 9.883 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00014/0.3477, allocations: 35.92 kB / 1.066 GB, free: 9.848 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.11e-05/0.3478, allocations: 8.359 kB / 1.066 GB, free: 9.84 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001233/0.349, allocations: 131.8 kB / 1.067 GB, free: 9.711 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.164e-05/0.349, allocations: 8 kB / 1.067 GB, free: 9.703 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.0002594/0.3493, allocations: 263.2 kB / 1.067 GB, free: 9.438 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.249e-05/0.3494, allocations: 39.53 kB / 1.067 GB, free: 9.398 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.391e-05/0.3494, allocations: 55.31 kB / 1.067 GB, free: 9.34 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.968e-06/0.3495, allocations: 7.938 kB / 1.067 GB, free: 9.332 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.3495, allocations: 0 / 1.067 GB, free: 9.332 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/0.3495, allocations: 3.984 kB / 1.067 GB, free: 9.328 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003322/0.3498, allocations: 401.3 kB / 1.067 GB, free: 8.887 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.529e-06/0.3498, allocations: 0 / 1.067 GB, free: 8.887 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.138e-05/0.3498, allocations: 19.91 kB / 1.067 GB, free: 8.867 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.23e-06/0.3499, allocations: 4 kB / 1.067 GB, free: 8.863 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.003e-05/0.3499, allocations: 11.94 kB / 1.067 GB, free: 8.852 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.264e-06/0.3499, allocations: 0 / 1.067 GB, free: 8.852 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.3499, allocations: 4 kB / 1.067 GB, free: 8.848 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005886/0.3505, allocations: 0.5164 MB / 1.068 GB, free: 8.309 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 9.07e-05/0.3506, allocations: 120.6 kB / 1.068 GB, free: 8.172 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.841e-05/0.3506, allocations: 19.92 kB / 1.068 GB, free: 8.152 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000144/0.3508, allocations: 11.98 kB / 1.068 GB, free: 8.141 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.656e-05/0.3509, allocations: 31.97 kB / 1.068 GB, free: 8.109 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.142e-05/0.3509, allocations: 15.98 kB / 1.068 GB, free: 8.094 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0004227/0.3513, allocations: 431.1 kB / 1.068 GB, free: 7.676 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.61e-07/0.3513, allocations: 0 / 1.068 GB, free: 7.676 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0004086/0.3518, allocations: 115.8 kB / 1.069 GB, free: 7.562 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.0009121/0.3527, allocations: 1.104 MB / 1.07 GB, free: 6.426 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0005054/0.3532, allocations: 371.9 kB / 1.07 GB, free: 6.062 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.3532, allocations: 0 / 1.07 GB, free: 6.062 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002107/0.3534, allocations: 187.9 kB / 1.07 GB, free: 5.879 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002682/0.3537, allocations: 37.95 kB / 1.07 GB, free: 5.844 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004661/0.3584, allocations: 4.494 MB / 1.075 GB, free: 1.16 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003262/0.3587, allocations: 0.835 MB / 1.075 GB, free: 308 kB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0002115/0.3589, allocations: 98.86 kB / 1.075 GB, free: 208 kB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00016/0.3591, allocations: 127.4 kB / 1.076 GB, free: 80 kB / 0.8262 GB Notification: Performance of SimCode: time 2.51e-07/0.3591, allocations: 7.938 kB / 1.076 GB, free: 72 kB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.311/4.67, allocations: 11.36 MB / 1.087 GB, free: 5 MB / 0.8419 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002571/4.67, allocations: 221.5 kB / 1.087 GB, free: 4.746 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.842/7.513, allocations: 4 kB / 1.087 GB, free: 4.742 MB / 0.8419 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_TimeTable_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_TimeTable.fmu > 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