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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001429/0.001429, allocations: 104.4 kB / 19.7 MB, free: 2.125 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001797/0.001797, allocations: 214.4 kB / 22.99 MB, free: 4.945 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.477/1.477, allocations: 230.6 MB / 256.8 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.304/3.304, allocations: 0.5107 GB / 0.8166 GB, free: 17.81 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|booTimTab.y.1.|booTimTab.y.2.|booTimTabTwi.y.1.|booTimTabTwi.y.2.|booTimTabOneRow.y.1.|booTimTabOneRow.y.2.",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable") translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|booTimTab.y.1.|booTimTab.y.2.|booTimTabTwi.y.1.|booTimTabTwi.y.2.|booTimTabOneRow.y.1.|booTimTabOneRow.y.2.",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002103/0.002103, allocations: 71.44 kB / 1.187 GB, free: 13.5 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3636/0.3657, allocations: 181.9 MB / 1.365 GB, free: 13.6 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable): time 0.002058/0.3678, allocations: 0.8282 MB / 1.365 GB, free: 12.76 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.002052/0.3698, allocations: 1.456 MB / 1.367 GB, free: 11.29 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.594e-05/0.3699, allocations: 7.938 kB / 1.367 GB, free: 11.29 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0005084/0.3704, allocations: 195.4 kB / 1.367 GB, free: 11.09 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0001825/0.3706, allocations: 111.7 kB / 1.367 GB, free: 10.98 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.001012/0.3716, allocations: 367.4 kB / 1.368 GB, free: 10.63 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0009669/0.3726, allocations: 0.8699 MB / 1.368 GB, free: 9.762 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001679/0.3727, allocations: 60.36 kB / 1.368 GB, free: 9.699 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004033/0.3732, allocations: 359.4 kB / 1.369 GB, free: 9.348 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004278/0.3736, allocations: 287.3 kB / 1.369 GB, free: 9.066 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 0.0001616/0.3737, allocations: 44 kB / 1.369 GB, free: 9.023 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003113/0.3741, allocations: 123.8 kB / 1.369 GB, free: 8.902 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 0.0004781/0.3745, allocations: 367.3 kB / 1.37 GB, free: 8.543 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0002873/0.3748, allocations: 231.1 kB / 1.37 GB, free: 8.316 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0009628/0.3758, allocations: 0.9229 MB / 1.371 GB, free: 7.391 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.3758, allocations: 0 / 1.371 GB, free: 7.391 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.362e-06/0.3758, allocations: 0 / 1.371 GB, free: 7.391 MB / 1.061 GB Notification: Performance of Transformations before backend: time 8.225e-06/0.3758, allocations: 0 / 1.371 GB, free: 7.391 MB / 1.061 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.001593/0.3774, allocations: 0.8319 MB / 1.371 GB, free: 6.516 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.494e-05/0.3774, allocations: 8.031 kB / 1.371 GB, free: 6.508 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002002/0.3776, allocations: 64.58 kB / 1.372 GB, free: 6.445 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009449/0.3786, allocations: 0.4887 MB / 1.372 GB, free: 5.934 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.512e-05/0.3786, allocations: 24.61 kB / 1.372 GB, free: 5.91 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001238/0.3787, allocations: 40.36 kB / 1.372 GB, free: 5.871 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000505/0.3792, allocations: 306.2 kB / 1.372 GB, free: 5.559 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.171e-05/0.3792, allocations: 192 / 1.372 GB, free: 5.559 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.653e-05/0.3793, allocations: 7.938 kB / 1.372 GB, free: 5.551 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.197e-06/0.3793, allocations: 8 kB / 1.372 GB, free: 5.543 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003659/0.3796, allocations: 223.8 kB / 1.373 GB, free: 5.324 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001917/0.3816, allocations: 0.9922 MB / 1.374 GB, free: 4.293 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000703/0.3823, allocations: 467.8 kB / 1.374 GB, free: 3.809 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002684/0.3825, allocations: 178.5 kB / 1.374 GB, free: 3.625 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.498e-05/0.3825, allocations: 4 kB / 1.374 GB, free: 3.621 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004759/0.383, allocations: 335.8 kB / 1.375 GB, free: 3.273 MB / 1.061 GB Notification: Performance of pre-optimization done (n=24): time 1.383e-06/0.383, allocations: 0 / 1.375 GB, free: 3.273 MB / 1.061 GB Notification: Performance of matching and sorting (n=24): time 0.00108/0.3841, allocations: 0.6221 MB / 1.375 GB, free: 2.645 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.063e-05/0.3842, allocations: 114.8 kB / 1.375 GB, free: 2.508 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007471/0.3849, allocations: 0.6033 MB / 1.376 GB, free: 1.895 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 9.552e-05/0.385, allocations: 45.7 kB / 1.376 GB, free: 1.844 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.000242/0.3853, allocations: 213.6 kB / 1.376 GB, free: 1.633 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 5.201e-05/0.3853, allocations: 51.64 kB / 1.376 GB, free: 1.582 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002717/0.3856, allocations: 186.3 kB / 1.376 GB, free: 1.395 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001839/0.3858, allocations: 358.8 kB / 1.377 GB, free: 1.035 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001994/0.386, allocations: 135.9 kB / 1.377 GB, free: 0.9023 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001505/0.3875, allocations: 1.775 MB / 1.378 GB, free: 14.7 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004091/0.3879, allocations: 308.3 kB / 1.379 GB, free: 14.35 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-06/0.3879, allocations: 0 / 1.379 GB, free: 14.35 MB / 1.076 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0006793/0.3886, allocations: 416.9 kB / 1.379 GB, free: 13.93 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 1.664e-05/0.3886, allocations: 8.375 kB / 1.379 GB, free: 13.93 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.141e-06/0.3886, allocations: 7.938 kB / 1.379 GB, free: 13.92 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.219e-05/0.3886, allocations: 8 kB / 1.379 GB, free: 13.91 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001597/0.3888, allocations: 35.86 kB / 1.379 GB, free: 13.88 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.756e-05/0.3888, allocations: 15.92 kB / 1.379 GB, free: 13.86 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001215/0.39, allocations: 119.9 kB / 1.379 GB, free: 13.74 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.685e-05/0.3901, allocations: 23.98 kB / 1.379 GB, free: 13.72 MB / 1.076 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.0003301/0.3904, allocations: 254.8 kB / 1.38 GB, free: 13.46 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.917e-05/0.3905, allocations: 43.72 kB / 1.38 GB, free: 13.42 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.292e-05/0.3906, allocations: 47.38 kB / 1.38 GB, free: 13.38 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.17e-06/0.3906, allocations: 4 kB / 1.38 GB, free: 13.37 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.027e-06/0.3906, allocations: 4.188 kB / 1.38 GB, free: 13.37 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.395e-06/0.3906, allocations: 7.984 kB / 1.38 GB, free: 13.36 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003436/0.3909, allocations: 293.1 kB / 1.38 GB, free: 13.04 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.3909, allocations: 0 / 1.38 GB, free: 13.04 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.705e-05/0.3909, allocations: 11.94 kB / 1.38 GB, free: 13.03 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.619e-06/0.391, allocations: 4 kB / 1.38 GB, free: 13.03 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.13e-05/0.391, allocations: 7.984 kB / 1.38 GB, free: 13.02 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.823e-06/0.391, allocations: 0 / 1.38 GB, free: 13.02 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.391, allocations: 0 / 1.38 GB, free: 13.02 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007429/0.3917, allocations: 0.5177 MB / 1.381 GB, free: 12.48 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000107/0.3918, allocations: 51.69 kB / 1.381 GB, free: 12.43 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.81e-05/0.3919, allocations: 4 kB / 1.381 GB, free: 12.42 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001597/0.392, allocations: 15.98 kB / 1.381 GB, free: 12.41 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.812e-05/0.3921, allocations: 39.89 kB / 1.381 GB, free: 12.37 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.192e-05/0.3922, allocations: 16 kB / 1.381 GB, free: 12.35 MB / 1.076 GB Notification: Performance of sorting global known variables: time 0.0005461/0.3927, allocations: 431.1 kB / 1.381 GB, free: 11.93 MB / 1.076 GB Notification: Performance of sort global known variables: time 8e-08/0.3927, allocations: 0 / 1.381 GB, free: 11.93 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0004639/0.3932, allocations: 115.8 kB / 1.381 GB, free: 11.81 MB / 1.076 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.0002264/0.3934, allocations: 149.6 kB / 1.381 GB, free: 11.66 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.0006132/0.394, allocations: 343.7 kB / 1.382 GB, free: 11.32 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.394, allocations: 0 / 1.382 GB, free: 11.32 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.0003218/0.3943, allocations: 207.7 kB / 1.382 GB, free: 11.12 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002955/0.3946, allocations: 37.95 kB / 1.382 GB, free: 11.09 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00134/0.396, allocations: 0.8711 MB / 1.383 GB, free: 10.17 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002619/0.3962, allocations: 234.2 kB / 1.383 GB, free: 9.918 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001012/0.3963, allocations: 39.44 kB / 1.383 GB, free: 9.879 MB / 1.076 GB Notification: Performance of SimCode: time 4.61e-07/0.3963, allocations: 3.938 kB / 1.383 GB, free: 9.875 MB / 1.076 GB Notification: Performance of Templates: time 0.01082/0.4071, allocations: 7.119 MB / 1.39 GB, free: 2.887 MB / 1.076 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable.makefile [Timeout 300] (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 & ./Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable.pipe 2>&1) [Timeout 800] 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) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 12.281528615858406]