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.001206/0.001206, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001231/0.001231, allocations: 195.3 kB / 16.53 MB, free: 6.664 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.466/1.466, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.653/2.653, allocations: 461.9 MB / 0.7346 GB, free: 14.74 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001632/0.001632, allocations: 64.11 kB / 0.8992 GB, free: 36.98 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3097/0.3114, allocations: 157.4 MB / 1.053 GB, free: 8.25 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable): time 0.002632/0.3141, allocations: 0.8591 MB / 1.054 GB, free: 7.391 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002242/0.3163, allocations: 1.462 MB / 1.055 GB, free: 5.914 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001195/0.3165, allocations: 7.938 kB / 1.055 GB, free: 5.906 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0005011/0.317, allocations: 203.4 kB / 1.055 GB, free: 5.707 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001677/0.3172, allocations: 103.6 kB / 1.055 GB, free: 5.605 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.001066/0.3183, allocations: 358.1 kB / 1.056 GB, free: 5.262 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.001006/0.3193, allocations: 0.8582 MB / 1.057 GB, free: 4.402 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002501/0.3195, allocations: 92.27 kB / 1.057 GB, free: 4.312 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006722/0.3202, allocations: 347.4 kB / 1.057 GB, free: 3.973 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006134/0.3208, allocations: 263.3 kB / 1.057 GB, free: 3.715 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.0002997/0.3212, allocations: 48 kB / 1.057 GB, free: 3.668 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004448/0.3216, allocations: 103.9 kB / 1.057 GB, free: 3.566 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.000576/0.3222, allocations: 351.8 kB / 1.058 GB, free: 3.223 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0005693/0.3228, allocations: 274.8 kB / 1.058 GB, free: 2.953 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.001052/0.3238, allocations: 0.9042 MB / 1.059 GB, free: 2.047 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.3238, allocations: 0 / 1.059 GB, free: 2.047 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.274e-06/0.3239, allocations: 0 / 1.059 GB, free: 2.047 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 2.042e-05/0.3239, allocations: 0 / 1.059 GB, free: 2.047 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.001918/0.3258, allocations: 0.8879 MB / 1.06 GB, free: 1.102 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 6.2e-05/0.3259, allocations: 8.625 kB / 1.06 GB, free: 1.094 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.374e-05/0.326, allocations: 46.67 kB / 1.06 GB, free: 1.039 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003621/0.3263, allocations: 52.38 kB / 1.06 GB, free: 0.9883 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001223/0.3276, allocations: 0.5449 MB / 1.06 GB, free: 412 kB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.384e-05/0.3276, allocations: 20.61 kB / 1.06 GB, free: 392 kB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000151/0.3278, allocations: 36.38 kB / 1.061 GB, free: 356 kB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006058/0.3284, allocations: 314.9 kB / 1.061 GB, free: 28 kB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.486e-05/0.3284, allocations: 7.938 kB / 1.061 GB, free: 20 kB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.073e-05/0.3285, allocations: 4 kB / 1.061 GB, free: 16 kB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.309e-05/0.3285, allocations: 4 kB / 1.061 GB, free: 12 kB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004215/0.3289, allocations: 219.8 kB / 1.061 GB, free: 15.8 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002295/0.3312, allocations: 1.195 MB / 1.062 GB, free: 14.54 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006156/0.3319, allocations: 463.7 kB / 1.063 GB, free: 14.06 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002333/0.3321, allocations: 178.6 kB / 1.063 GB, free: 13.88 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.267e-05/0.3321, allocations: 0 / 1.063 GB, free: 13.88 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004291/0.3326, allocations: 329.9 kB / 1.063 GB, free: 13.54 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=24): time 2.334e-06/0.3326, allocations: 0 / 1.063 GB, free: 13.54 MB / 0.8262 GB Notification: Performance of matching and sorting (n=24): time 0.001202/0.3338, allocations: 0.6334 MB / 1.064 GB, free: 12.9 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001206/0.3339, allocations: 126.7 kB / 1.064 GB, free: 12.75 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009166/0.3348, allocations: 0.5993 MB / 1.064 GB, free: 12.15 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 0.0001306/0.335, allocations: 41.7 kB / 1.065 GB, free: 12.1 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002504/0.3352, allocations: 222.5 kB / 1.065 GB, free: 11.88 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 6.926e-05/0.3353, allocations: 51.41 kB / 1.065 GB, free: 11.82 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002616/0.3356, allocations: 181.5 kB / 1.065 GB, free: 11.64 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001565/0.3357, allocations: 362.7 kB / 1.065 GB, free: 11.28 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001825/0.3359, allocations: 131.8 kB / 1.065 GB, free: 11.15 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008381/0.3368, allocations: 0.7142 MB / 1.066 GB, free: 10.26 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003765/0.3372, allocations: 304.8 kB / 1.066 GB, free: 9.918 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.3372, allocations: 0 / 1.066 GB, free: 9.918 MB / 0.8262 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0007133/0.3379, allocations: 420.9 kB / 1.067 GB, free: 9.5 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.928e-05/0.3379, allocations: 8 kB / 1.067 GB, free: 9.492 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.227e-05/0.3379, allocations: 7.938 kB / 1.067 GB, free: 9.484 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.054e-05/0.338, allocations: 4 kB / 1.067 GB, free: 9.48 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001571/0.3381, allocations: 31.92 kB / 1.067 GB, free: 9.449 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.315e-05/0.3381, allocations: 11.98 kB / 1.067 GB, free: 9.438 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001334/0.3395, allocations: 128 kB / 1.067 GB, free: 9.312 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.518e-05/0.3395, allocations: 16 kB / 1.067 GB, free: 9.297 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.0003473/0.3399, allocations: 267.1 kB / 1.067 GB, free: 9.031 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.664e-05/0.34, allocations: 43.53 kB / 1.067 GB, free: 8.988 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.241e-05/0.3401, allocations: 51.31 kB / 1.067 GB, free: 8.934 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.32e-06/0.3401, allocations: 4 kB / 1.067 GB, free: 8.93 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.3401, allocations: 0 / 1.067 GB, free: 8.93 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.791e-06/0.3401, allocations: 7.984 kB / 1.067 GB, free: 8.922 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004185/0.3405, allocations: 401.2 kB / 1.068 GB, free: 8.48 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.145e-06/0.3405, allocations: 0.75 kB / 1.068 GB, free: 8.48 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.371e-05/0.3406, allocations: 7.984 kB / 1.068 GB, free: 8.473 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.32e-06/0.3406, allocations: 4 kB / 1.068 GB, free: 8.469 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.26e-05/0.3406, allocations: 11.94 kB / 1.068 GB, free: 8.457 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.689e-06/0.3406, allocations: 4 kB / 1.068 GB, free: 8.453 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.549e-06/0.3406, allocations: 7.938 kB / 1.068 GB, free: 8.445 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006466/0.3413, allocations: 0.5137 MB / 1.068 GB, free: 7.906 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001032/0.3414, allocations: 128.5 kB / 1.068 GB, free: 7.762 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.375e-05/0.3415, allocations: 11.92 kB / 1.068 GB, free: 7.75 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001596/0.3416, allocations: 15.98 kB / 1.068 GB, free: 7.734 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001163/0.3417, allocations: 31.97 kB / 1.068 GB, free: 7.703 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.866e-05/0.3418, allocations: 15.98 kB / 1.068 GB, free: 7.688 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0004903/0.3423, allocations: 435 kB / 1.069 GB, free: 7.266 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.51e-07/0.3423, allocations: 4 kB / 1.069 GB, free: 7.262 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0004508/0.3427, allocations: 111.8 kB / 1.069 GB, free: 7.152 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.001088/0.3438, allocations: 1.095 MB / 1.07 GB, free: 6.027 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0006078/0.3445, allocations: 371.6 kB / 1.07 GB, free: 5.664 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.3445, allocations: 0.75 kB / 1.07 GB, free: 5.664 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002558/0.3447, allocations: 187.9 kB / 1.071 GB, free: 5.48 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003322/0.3451, allocations: 39.67 kB / 1.071 GB, free: 5.445 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005596/0.3507, allocations: 4.433 MB / 1.075 GB, free: 0.8242 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005654/0.3513, allocations: 0.8389 MB / 1.076 GB, free: 15.96 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0003439/0.3516, allocations: 98.86 kB / 1.076 GB, free: 15.86 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000237/0.3519, allocations: 127.4 kB / 1.076 GB, free: 15.73 MB / 0.8419 GB Notification: Performance of SimCode: time 9.72e-07/0.3519, allocations: 0 / 1.076 GB, free: 15.73 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03231/0.3842, allocations: 11.46 MB / 1.087 GB, free: 4.52 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.919/8.303, allocations: 17.3 kB / 1.087 GB, free: 4.504 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