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.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: "" <> 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.001161/0.001161, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.008361/0.008361, allocations: 169.1 kB / 16.26 MB, free: 6.652 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.362/1.362, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.69/2.69, allocations: 462.6 MB / 0.7364 GB, free: 15.53 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004665/0.0004668, allocations: 9.5 kB / 0.9029 GB, free: 36.41 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3835/0.384, allocations: 159.6 MB / 1.059 GB, free: 4.797 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable): time 0.0013/0.3854, allocations: 0.5674 MB / 1.059 GB, free: 4.23 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002684/0.3881, allocations: 1.447 MB / 1.061 GB, free: 2.77 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000179/0.3883, allocations: 8 kB / 1.061 GB, free: 2.762 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0006495/0.389, allocations: 187.5 kB / 1.061 GB, free: 2.578 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0002152/0.3892, allocations: 107.7 kB / 1.061 GB, free: 2.473 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.001216/0.3904, allocations: 337.7 kB / 1.061 GB, free: 2.148 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.001045/0.3915, allocations: 0.7566 MB / 1.062 GB, free: 1.391 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002433/0.3917, allocations: 92.23 kB / 1.062 GB, free: 1.301 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005813/0.3923, allocations: 291.4 kB / 1.062 GB, free: 1.016 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005006/0.3928, allocations: 239.3 kB / 1.063 GB, free: 0.7812 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.000161/0.393, allocations: 16 kB / 1.063 GB, free: 0.7656 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003217/0.3933, allocations: 91.81 kB / 1.063 GB, free: 0.6758 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0004058/0.3938, allocations: 299.3 kB / 1.063 GB, free: 392 kB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0004097/0.3942, allocations: 260.5 kB / 1.063 GB, free: 124 kB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.001073/0.3953, allocations: 0.8571 MB / 1.064 GB, free: 15.26 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.3953, allocations: 3.938 kB / 1.064 GB, free: 15.26 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.044e-06/0.3953, allocations: 0 / 1.064 GB, free: 15.26 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 2.651e-05/0.3953, allocations: 0 / 1.064 GB, free: 15.26 MB / 0.8262 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.001806/0.3971, allocations: 0.7011 MB / 1.065 GB, free: 14.5 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 5.713e-05/0.3972, allocations: 11.97 kB / 1.065 GB, free: 14.49 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001065/0.3973, allocations: 42.73 kB / 1.065 GB, free: 14.44 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002707/0.3976, allocations: 52.47 kB / 1.065 GB, free: 14.39 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009578/0.3986, allocations: 0.5448 MB / 1.066 GB, free: 13.8 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.374e-05/0.3986, allocations: 24.61 kB / 1.066 GB, free: 13.78 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001556/0.3988, allocations: 36.38 kB / 1.066 GB, free: 13.74 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005299/0.3993, allocations: 314.8 kB / 1.066 GB, free: 13.42 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.234e-05/0.3993, allocations: 3.938 kB / 1.066 GB, free: 13.42 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.056e-05/0.3994, allocations: 7.984 kB / 1.066 GB, free: 13.41 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.177e-05/0.3994, allocations: 4 kB / 1.066 GB, free: 13.41 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000346/0.3997, allocations: 219.8 kB / 1.066 GB, free: 13.19 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002158/0.4019, allocations: 1.195 MB / 1.067 GB, free: 11.94 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006348/0.4025, allocations: 463.8 kB / 1.068 GB, free: 11.46 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002417/0.4028, allocations: 182.5 kB / 1.068 GB, free: 11.27 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.582e-05/0.4028, allocations: 4 kB / 1.068 GB, free: 11.27 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004782/0.4033, allocations: 333.1 kB / 1.068 GB, free: 10.92 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=24): time 3.367e-06/0.4033, allocations: 0 / 1.068 GB, free: 10.92 MB / 0.8262 GB Notification: Performance of matching and sorting (n=24): time 0.001038/0.4044, allocations: 0.6301 MB / 1.069 GB, free: 10.29 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.36e-05/0.4044, allocations: 114.8 kB / 1.069 GB, free: 10.15 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007554/0.4052, allocations: 0.5956 MB / 1.07 GB, free: 9.547 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 0.0001128/0.4053, allocations: 45.7 kB / 1.07 GB, free: 9.496 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002271/0.4056, allocations: 234.4 kB / 1.07 GB, free: 9.254 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 5.263e-05/0.4056, allocations: 47.36 kB / 1.07 GB, free: 9.207 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.058e-05/0.4057, allocations: 41.7 kB / 1.07 GB, free: 9.16 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001402/0.4058, allocations: 362.8 kB / 1.07 GB, free: 8.797 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001779/0.406, allocations: 131.8 kB / 1.07 GB, free: 8.668 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007345/0.4068, allocations: 0.7098 MB / 1.071 GB, free: 7.785 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003538/0.4071, allocations: 300.6 kB / 1.071 GB, free: 7.445 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.947e-06/0.4071, allocations: 4 kB / 1.071 GB, free: 7.441 MB / 0.8262 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0006033/0.4077, allocations: 416.7 kB / 1.072 GB, free: 7.027 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.389e-05/0.4078, allocations: 4 kB / 1.072 GB, free: 7.023 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.168e-05/0.4078, allocations: 7.938 kB / 1.072 GB, free: 7.016 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.72e-05/0.4078, allocations: 8.312 kB / 1.072 GB, free: 7.008 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001638/0.408, allocations: 39.92 kB / 1.072 GB, free: 6.969 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.799e-06/0.408, allocations: 4 kB / 1.072 GB, free: 6.965 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00127/0.4093, allocations: 135.8 kB / 1.072 GB, free: 6.848 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.751e-05/0.4093, allocations: 16 kB / 1.072 GB, free: 6.832 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.0003162/0.4096, allocations: 261.6 kB / 1.072 GB, free: 6.57 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.963e-05/0.4097, allocations: 39.44 kB / 1.072 GB, free: 6.531 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.832e-05/0.4098, allocations: 59.3 kB / 1.072 GB, free: 6.469 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.314e-06/0.4098, allocations: 4 kB / 1.072 GB, free: 6.465 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.444e-06/0.4098, allocations: 3.938 kB / 1.072 GB, free: 6.461 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.409e-06/0.4098, allocations: 4 kB / 1.072 GB, free: 6.457 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003916/0.4102, allocations: 397.3 kB / 1.073 GB, free: 6.02 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.4102, allocations: 4 kB / 1.073 GB, free: 6.016 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.461e-05/0.4103, allocations: 8 kB / 1.073 GB, free: 6.008 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.4103, allocations: 3.938 kB / 1.073 GB, free: 6.004 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.082e-05/0.4103, allocations: 12.17 kB / 1.073 GB, free: 5.992 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.041e-06/0.4103, allocations: 8 kB / 1.073 GB, free: 5.984 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.193e-06/0.4103, allocations: 240 / 1.073 GB, free: 5.984 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006528/0.411, allocations: 0.5189 MB / 1.073 GB, free: 5.441 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001306/0.4111, allocations: 136.5 kB / 1.073 GB, free: 5.289 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.488e-05/0.4112, allocations: 15.92 kB / 1.073 GB, free: 5.273 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001608/0.4113, allocations: 15.98 kB / 1.073 GB, free: 5.258 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.954e-05/0.4114, allocations: 27.97 kB / 1.073 GB, free: 5.23 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.932e-05/0.4115, allocations: 15.98 kB / 1.073 GB, free: 5.215 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0004533/0.4119, allocations: 435.1 kB / 1.074 GB, free: 4.793 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4119, allocations: 0 / 1.074 GB, free: 4.793 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0004409/0.4124, allocations: 119.8 kB / 1.074 GB, free: 4.676 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.001027/0.4134, allocations: 1.102 MB / 1.075 GB, free: 3.543 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0005234/0.414, allocations: 351.6 kB / 1.075 GB, free: 3.199 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.414, allocations: 0 / 1.075 GB, free: 3.199 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002268/0.4142, allocations: 183.9 kB / 1.076 GB, free: 3.02 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003249/0.4145, allocations: 42.7 kB / 1.076 GB, free: 2.98 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005295/0.4198, allocations: 4.511 MB / 1.08 GB, free: 14.29 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004043/0.4203, allocations: 0.8353 MB / 1.081 GB, free: 13.42 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0002512/0.4205, allocations: 94.92 kB / 1.081 GB, free: 13.33 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001862/0.4207, allocations: 127.4 kB / 1.081 GB, free: 13.2 MB / 0.8419 GB Notification: Performance of SimCode: time 8.41e-07/0.4207, allocations: 0 / 1.081 GB, free: 13.2 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05559/0.4763, allocations: 10.95 MB / 1.092 GB, free: 2.551 MB / 0.8419 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001929/0.4766, allocations: 223.2 kB / 1.092 GB, free: 2.293 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.116/2.593, allocations: 4 kB / 1.092 GB, free: 2.289 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