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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001853/0.001853, allocations: 108.2 kB / 16.46 MB, free: 6.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001347/0.001347, allocations: 191.8 kB / 19.41 MB, free: 3.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.439/1.439, allocations: 225.6 MB / 247.8 MB, free: 13.94 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.24/3.24, allocations: 497.2 MB / 0.7811 GB, free: 33.7 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001958/0.001958, allocations: 68.86 kB / 1.134 GB, free: 33.71 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.392/0.394, allocations: 173.9 MB / 1.304 GB, free: 1.578 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable): time 0.00247/0.3965, allocations: 0.8633 MB / 1.305 GB, free: 0.7148 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.002344/0.3988, allocations: 1.466 MB / 1.306 GB, free: 15.23 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001308/0.3989, allocations: 7.938 kB / 1.306 GB, free: 15.23 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0005753/0.3995, allocations: 195.5 kB / 1.306 GB, free: 15.04 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.000194/0.3997, allocations: 115.6 kB / 1.307 GB, free: 14.92 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.00116/0.4009, allocations: 354.5 kB / 1.307 GB, free: 14.58 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.001058/0.4019, allocations: 0.8777 MB / 1.308 GB, free: 13.7 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002156/0.4021, allocations: 80.25 kB / 1.308 GB, free: 13.62 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000578/0.4027, allocations: 339.5 kB / 1.308 GB, free: 13.29 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005352/0.4032, allocations: 279.3 kB / 1.308 GB, free: 13.02 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 0.0002088/0.4035, allocations: 44 kB / 1.308 GB, free: 12.97 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003171/0.4038, allocations: 119.9 kB / 1.309 GB, free: 12.86 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.0005403/0.4043, allocations: 355.2 kB / 1.309 GB, free: 12.51 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.0004988/0.4048, allocations: 274.8 kB / 1.309 GB, free: 12.24 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.001087/0.4059, allocations: 0.9153 MB / 1.31 GB, free: 11.32 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.4059, allocations: 0 / 1.31 GB, free: 11.32 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.423e-06/0.4059, allocations: 0 / 1.31 GB, free: 11.32 MB / 1.014 GB Notification: Performance of Transformations before backend: time 1.953e-05/0.4059, allocations: 0 / 1.31 GB, free: 11.32 MB / 1.014 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.002045/0.408, allocations: 0.9072 MB / 1.311 GB, free: 10.35 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.383e-05/0.408, allocations: 12.62 kB / 1.311 GB, free: 10.34 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.682e-05/0.4081, allocations: 46.73 kB / 1.311 GB, free: 10.29 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002443/0.4083, allocations: 56.66 kB / 1.311 GB, free: 10.23 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001141/0.4095, allocations: 0.5413 MB / 1.312 GB, free: 9.652 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.58e-05/0.4095, allocations: 28.59 kB / 1.312 GB, free: 9.625 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001274/0.4097, allocations: 32.38 kB / 1.312 GB, free: 9.594 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000515/0.4102, allocations: 304.1 kB / 1.312 GB, free: 9.285 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.226e-05/0.4102, allocations: 3.938 kB / 1.312 GB, free: 9.281 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.598e-05/0.4102, allocations: 11.98 kB / 1.312 GB, free: 9.27 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.114e-06/0.4102, allocations: 4 kB / 1.312 GB, free: 9.266 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003599/0.4106, allocations: 223.8 kB / 1.312 GB, free: 9.047 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002247/0.4128, allocations: 1.176 MB / 1.313 GB, free: 7.812 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006734/0.4135, allocations: 463.7 kB / 1.314 GB, free: 7.332 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002451/0.4138, allocations: 178.6 kB / 1.314 GB, free: 7.148 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 1.559e-05/0.4138, allocations: 4 kB / 1.314 GB, free: 7.145 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004906/0.4143, allocations: 335.5 kB / 1.314 GB, free: 6.797 MB / 1.014 GB Notification: Performance of pre-optimization done (n=24): time 1.934e-06/0.4143, allocations: 0 / 1.314 GB, free: 6.797 MB / 1.014 GB Notification: Performance of matching and sorting (n=24): time 0.001165/0.4154, allocations: 0.6337 MB / 1.315 GB, free: 6.156 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.719e-05/0.4155, allocations: 118.8 kB / 1.315 GB, free: 6.016 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008076/0.4163, allocations: 0.5994 MB / 1.316 GB, free: 5.406 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 0.0001073/0.4164, allocations: 45.7 kB / 1.316 GB, free: 5.355 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002652/0.4167, allocations: 221.5 kB / 1.316 GB, free: 5.137 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 6.752e-05/0.4168, allocations: 47.69 kB / 1.316 GB, free: 5.09 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003213/0.4171, allocations: 189.4 kB / 1.316 GB, free: 4.898 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0002128/0.4173, allocations: 362.8 kB / 1.316 GB, free: 4.535 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002014/0.4175, allocations: 123.9 kB / 1.317 GB, free: 4.414 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009455/0.4185, allocations: 0.7188 MB / 1.317 GB, free: 3.52 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004247/0.4189, allocations: 304.6 kB / 1.318 GB, free: 3.176 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.975e-06/0.4189, allocations: 0 / 1.318 GB, free: 3.176 MB / 1.014 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0007357/0.4196, allocations: 421.2 kB / 1.318 GB, free: 2.758 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 2.14e-05/0.4196, allocations: 8 kB / 1.318 GB, free: 2.75 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/0.4196, allocations: 0 / 1.318 GB, free: 2.75 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.378e-05/0.4197, allocations: 15.92 kB / 1.318 GB, free: 2.734 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001587/0.4198, allocations: 31.92 kB / 1.318 GB, free: 2.703 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.924e-05/0.4198, allocations: 12.19 kB / 1.318 GB, free: 2.691 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00123/0.4211, allocations: 137.8 kB / 1.318 GB, free: 2.559 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.585e-05/0.4211, allocations: 16 kB / 1.318 GB, free: 2.543 MB / 1.014 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.0003458/0.4214, allocations: 261.6 kB / 1.318 GB, free: 2.281 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.365e-05/0.4215, allocations: 43.72 kB / 1.318 GB, free: 2.238 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001001/0.4216, allocations: 51.36 kB / 1.318 GB, free: 2.184 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.198e-06/0.4216, allocations: 15.92 kB / 1.318 GB, free: 2.168 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.4216, allocations: 0 / 1.318 GB, free: 2.168 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.802e-06/0.4216, allocations: 4 kB / 1.318 GB, free: 2.164 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004483/0.4221, allocations: 406 kB / 1.319 GB, free: 1.719 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.4221, allocations: 0 / 1.319 GB, free: 1.719 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.555e-05/0.4221, allocations: 11.94 kB / 1.319 GB, free: 1.707 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.825e-06/0.4221, allocations: 0 / 1.319 GB, free: 1.707 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.007e-05/0.4221, allocations: 7.984 kB / 1.319 GB, free: 1.699 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.318e-06/0.4221, allocations: 7.938 kB / 1.319 GB, free: 1.691 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/0.4221, allocations: 0 / 1.319 GB, free: 1.691 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007312/0.4229, allocations: 0.5207 MB / 1.319 GB, free: 1.148 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001433/0.423, allocations: 128.8 kB / 1.32 GB, free: 1.004 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.637e-05/0.4231, allocations: 0 / 1.32 GB, free: 1.004 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000157/0.4232, allocations: 27.92 kB / 1.32 GB, free: 0.9766 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.379e-05/0.4233, allocations: 31.91 kB / 1.32 GB, free: 0.9453 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.546e-05/0.4233, allocations: 15.98 kB / 1.32 GB, free: 0.9297 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0005366/0.4239, allocations: 435.1 kB / 1.32 GB, free: 0.5 MB / 1.014 GB Notification: Performance of sort global known variables: time 8e-08/0.4239, allocations: 0 / 1.32 GB, free: 0.5 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0004818/0.4244, allocations: 115.9 kB / 1.32 GB, free: 396 kB / 1.014 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.001211/0.4256, allocations: 1.088 MB / 1.321 GB, free: 15.26 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0005938/0.4262, allocations: 351.6 kB / 1.322 GB, free: 14.92 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.4262, allocations: 0 / 1.322 GB, free: 14.92 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0002445/0.4264, allocations: 164.5 kB / 1.322 GB, free: 14.76 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003108/0.4267, allocations: 41.95 kB / 1.322 GB, free: 14.72 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005975/0.4327, allocations: 4.409 MB / 1.326 GB, free: 10.12 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005561/0.4333, allocations: 0.8466 MB / 1.327 GB, free: 9.242 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.0002402/0.4335, allocations: 94.92 kB / 1.327 GB, free: 9.152 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000206/0.4337, allocations: 131.4 kB / 1.327 GB, free: 9.023 MB / 1.029 GB Notification: Performance of SimCode: time 6.91e-07/0.4337, allocations: 0 / 1.327 GB, free: 9.023 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03815/0.4719, allocations: 11.58 MB / 1.338 GB, free: 13.7 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.692/9.164, allocations: 30.11 kB / 1.338 GB, free: 13.68 MB / 1.045 GB " [Timeout remaining time 291] (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 --stepSize=0.006 --timeout=800 --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) [Timeout 840.0] 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_2/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 16.025763527024537]