Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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_10_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_10_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.001634/0.001634, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001904/0.001904, allocations: 194.8 kB / 16.25 MB, free: 6.637 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.255/1.255, allocations: 222.9 MB / 239.9 MB, free: 4.508 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.22/2.22, allocations: 437 MB / 0.7101 GB, free: 5.328 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001188/0.001188, allocations: 63.91 kB / 0.8689 GB, free: 4.977 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5/0.5012, allocations: 151.6 MB / 1.017 GB, free: 2.734 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable): time 0.001695/0.5029, allocations: 0.9222 MB / 1.018 GB, free: 1.812 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001493/0.5044, allocations: 1.444 MB / 1.019 GB, free: 360 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.415e-05/0.5045, allocations: 3.938 kB / 1.019 GB, free: 356 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.0003883/0.5049, allocations: 195.5 kB / 1.019 GB, free: 160 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.0001139/0.505, allocations: 103.7 kB / 1.02 GB, free: 56 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007572/0.5058, allocations: 334.5 kB / 1.02 GB, free: 15.73 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0006967/0.5065, allocations: 0.8659 MB / 1.021 GB, free: 14.87 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001552/0.5067, allocations: 96.22 kB / 1.021 GB, free: 14.77 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002747/0.507, allocations: 347.4 kB / 1.021 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002979/0.5073, allocations: 267.3 kB / 1.021 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 9.879e-05/0.5074, allocations: 48 kB / 1.021 GB, free: 14.12 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001885/0.5076, allocations: 107.9 kB / 1.022 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0003266/0.5079, allocations: 347.3 kB / 1.022 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0002403/0.5081, allocations: 270.9 kB / 1.022 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0006681/0.5088, allocations: 0.8982 MB / 1.023 GB, free: 12.51 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.5088, allocations: 3.984 kB / 1.023 GB, free: 12.51 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.082e-06/0.5088, allocations: 0 / 1.023 GB, free: 12.51 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 6.181e-06/0.5088, allocations: 3.938 kB / 1.023 GB, free: 12.5 MB / 0.7794 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.001225/0.5101, allocations: 0.8918 MB / 1.024 GB, free: 11.56 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 2.91e-05/0.5101, allocations: 8.031 kB / 1.024 GB, free: 11.55 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.621e-05/0.5102, allocations: 42.73 kB / 1.024 GB, free: 11.5 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000155/0.5103, allocations: 52.47 kB / 1.024 GB, free: 11.45 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006453/0.511, allocations: 0.5487 MB / 1.025 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.266e-05/0.511, allocations: 20.61 kB / 1.025 GB, free: 10.84 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.609e-05/0.5111, allocations: 40.38 kB / 1.025 GB, free: 10.8 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004056/0.5115, allocations: 311.4 kB / 1.025 GB, free: 10.48 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.155e-06/0.5115, allocations: 3.938 kB / 1.025 GB, free: 10.48 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.105e-05/0.5116, allocations: 3.984 kB / 1.025 GB, free: 10.48 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.313e-06/0.5116, allocations: 4 kB / 1.025 GB, free: 10.47 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002821/0.5119, allocations: 219.8 kB / 1.025 GB, free: 10.26 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001585/0.5134, allocations: 1.191 MB / 1.026 GB, free: 9.008 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005373/0.514, allocations: 463.8 kB / 1.027 GB, free: 8.527 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002119/0.5142, allocations: 194.5 kB / 1.027 GB, free: 8.328 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.016e-05/0.5142, allocations: 0 / 1.027 GB, free: 8.328 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003728/0.5146, allocations: 330.9 kB / 1.027 GB, free: 7.988 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=24): time 1.363e-06/0.5146, allocations: 0 / 1.027 GB, free: 7.988 MB / 0.7794 GB Notification: Performance of matching and sorting (n=24): time 0.0008751/0.5155, allocations: 0.6257 MB / 1.028 GB, free: 7.355 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.167e-05/0.5156, allocations: 114.8 kB / 1.028 GB, free: 7.219 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005681/0.5161, allocations: 0.5962 MB / 1.029 GB, free: 6.621 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 9.003e-05/0.5162, allocations: 49.7 kB / 1.029 GB, free: 6.566 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001876/0.5164, allocations: 214.5 kB / 1.029 GB, free: 6.352 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 4.929e-05/0.5165, allocations: 55.44 kB / 1.029 GB, free: 6.297 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002224/0.5167, allocations: 181.5 kB / 1.029 GB, free: 6.113 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001264/0.5169, allocations: 358.8 kB / 1.029 GB, free: 5.754 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001578/0.517, allocations: 131.9 kB / 1.029 GB, free: 5.625 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006824/0.5177, allocations: 0.7149 MB / 1.03 GB, free: 4.738 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003146/0.518, allocations: 304.5 kB / 1.03 GB, free: 4.395 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.518, allocations: 4 kB / 1.03 GB, free: 4.391 MB / 0.7794 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0005662/0.5186, allocations: 420.8 kB / 1.031 GB, free: 3.973 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.275e-05/0.5186, allocations: 8 kB / 1.031 GB, free: 3.965 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.054e-06/0.5186, allocations: 7.938 kB / 1.031 GB, free: 3.957 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.146e-05/0.5187, allocations: 4 kB / 1.031 GB, free: 3.953 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001346/0.5188, allocations: 40.23 kB / 1.031 GB, free: 3.914 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.348e-06/0.5188, allocations: 11.98 kB / 1.031 GB, free: 3.902 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001208/0.52, allocations: 115.5 kB / 1.031 GB, free: 3.789 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.577e-05/0.5201, allocations: 19.98 kB / 1.031 GB, free: 3.77 MB / 0.7794 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.000245/0.5203, allocations: 258.5 kB / 1.031 GB, free: 3.508 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.684e-05/0.5204, allocations: 43.44 kB / 1.031 GB, free: 3.465 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.885e-05/0.5204, allocations: 51.31 kB / 1.031 GB, free: 3.414 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.427e-06/0.5205, allocations: 7.984 kB / 1.031 GB, free: 3.406 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.5205, allocations: 8 kB / 1.031 GB, free: 3.398 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.5e-06/0.5205, allocations: 3.984 kB / 1.031 GB, free: 3.395 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003247/0.5208, allocations: 401.2 kB / 1.032 GB, free: 2.953 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.5208, allocations: 4 kB / 1.032 GB, free: 2.949 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.23e-05/0.5208, allocations: 15.92 kB / 1.032 GB, free: 2.934 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.256e-06/0.5208, allocations: 4 kB / 1.032 GB, free: 2.93 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.849e-05/0.5209, allocations: 7.938 kB / 1.032 GB, free: 2.922 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.5209, allocations: 0 / 1.032 GB, free: 2.922 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.5209, allocations: 0 / 1.032 GB, free: 2.922 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005814/0.5215, allocations: 0.5137 MB / 1.032 GB, free: 2.383 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 8.284e-05/0.5216, allocations: 128.6 kB / 1.032 GB, free: 2.238 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.748e-05/0.5216, allocations: 15.92 kB / 1.032 GB, free: 2.223 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001416/0.5218, allocations: 11.98 kB / 1.032 GB, free: 2.211 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.906e-05/0.5218, allocations: 27.97 kB / 1.032 GB, free: 2.184 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.564e-05/0.5219, allocations: 12 kB / 1.032 GB, free: 2.172 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0004164/0.5223, allocations: 439 kB / 1.033 GB, free: 1.746 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5223, allocations: 0 / 1.033 GB, free: 1.746 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003725/0.5227, allocations: 107.9 kB / 1.033 GB, free: 1.641 MB / 0.7794 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.0009127/0.5236, allocations: 1.117 MB / 1.034 GB, free: 500 kB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0004792/0.5241, allocations: 367.8 kB / 1.034 GB, free: 132 kB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.5241, allocations: 0 / 1.034 GB, free: 132 kB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0002273/0.5243, allocations: 191.9 kB / 1.035 GB, free: 15.94 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002609/0.5246, allocations: 33.95 kB / 1.035 GB, free: 15.91 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004589/0.5292, allocations: 4.51 MB / 1.039 GB, free: 11.21 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003473/0.5296, allocations: 0.835 MB / 1.04 GB, free: 10.36 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0002022/0.5298, allocations: 94.92 kB / 1.04 GB, free: 10.26 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001601/0.5299, allocations: 131.4 kB / 1.04 GB, free: 10.13 MB / 0.795 GB Notification: Performance of SimCode: time 2.41e-07/0.5299, allocations: 0 / 1.04 GB, free: 10.13 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.194/1.724, allocations: 11.37 MB / 1.051 GB, free: 15.06 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002533/1.724, allocations: 221.2 kB / 1.051 GB, free: 14.8 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.937/3.661, allocations: 0 / 1.051 GB, free: 14.8 MB / 0.8106 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_TimeTable_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_TimeTable.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_TimeTable.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches