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.001474/0.001474, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001608/0.001608, allocations: 209.5 kB / 22.24 MB, free: 5.262 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.599/1.599, allocations: 230.6 MB / 256 MB, free: 7.777 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.534/3.534, allocations: 0.5107 GB / 0.8158 GB, free: 17.78 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.00216/0.00216, allocations: 64.89 kB / 1.186 GB, free: 13.44 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4392/0.4414, allocations: 181.9 MB / 1.364 GB, free: 13.51 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable): time 0.002311/0.4437, allocations: 0.8231 MB / 1.365 GB, free: 12.68 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.00218/0.4459, allocations: 1.46 MB / 1.366 GB, free: 11.21 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.739e-05/0.446, allocations: 11.88 kB / 1.366 GB, free: 11.2 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0005505/0.4465, allocations: 203.4 kB / 1.366 GB, free: 11 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.00017/0.4467, allocations: 111.6 kB / 1.366 GB, free: 10.89 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.001053/0.4477, allocations: 359.1 kB / 1.367 GB, free: 10.55 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0009465/0.4487, allocations: 0.8699 MB / 1.368 GB, free: 9.676 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001992/0.4489, allocations: 68.39 kB / 1.368 GB, free: 9.605 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004128/0.4493, allocations: 351.4 kB / 1.368 GB, free: 9.262 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004519/0.4497, allocations: 287.3 kB / 1.368 GB, free: 8.98 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 0.0001487/0.4499, allocations: 44 kB / 1.368 GB, free: 8.938 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003211/0.4502, allocations: 119.9 kB / 1.368 GB, free: 8.82 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 0.0004829/0.4507, allocations: 363.3 kB / 1.369 GB, free: 8.465 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0002976/0.451, allocations: 243 kB / 1.369 GB, free: 8.227 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.001013/0.452, allocations: 0.9112 MB / 1.37 GB, free: 7.312 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.257e-06/0.452, allocations: 4 kB / 1.37 GB, free: 7.309 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.744e-06/0.452, allocations: 0 / 1.37 GB, free: 7.309 MB / 1.061 GB Notification: Performance of Transformations before backend: time 8.917e-06/0.452, allocations: 0 / 1.37 GB, free: 7.309 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.001658/0.4537, allocations: 0.8358 MB / 1.371 GB, free: 6.43 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.386e-05/0.4537, allocations: 12.03 kB / 1.371 GB, free: 6.418 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001885/0.4539, allocations: 52.66 kB / 1.371 GB, free: 6.367 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009814/0.4549, allocations: 0.4926 MB / 1.371 GB, free: 5.852 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.38e-05/0.4549, allocations: 24.61 kB / 1.371 GB, free: 5.828 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001143/0.455, allocations: 36.38 kB / 1.371 GB, free: 5.793 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004909/0.4555, allocations: 310.2 kB / 1.372 GB, free: 5.477 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.214e-05/0.4555, allocations: 192 / 1.372 GB, free: 5.477 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.152e-05/0.4556, allocations: 11.94 kB / 1.372 GB, free: 5.465 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.044e-06/0.4556, allocations: 4 kB / 1.372 GB, free: 5.461 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003411/0.4559, allocations: 223.7 kB / 1.372 GB, free: 5.242 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002005/0.4579, allocations: 0.9961 MB / 1.373 GB, free: 4.207 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006906/0.4586, allocations: 459.8 kB / 1.373 GB, free: 3.73 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002505/0.4589, allocations: 178.5 kB / 1.373 GB, free: 3.547 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.402e-05/0.4589, allocations: 0 / 1.373 GB, free: 3.547 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004865/0.4594, allocations: 341.6 kB / 1.374 GB, free: 3.191 MB / 1.061 GB Notification: Performance of pre-optimization done (n=24): time 1.814e-06/0.4594, allocations: 0 / 1.374 GB, free: 3.191 MB / 1.061 GB Notification: Performance of matching and sorting (n=24): time 0.001113/0.4605, allocations: 0.6223 MB / 1.374 GB, free: 2.562 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.919e-05/0.4606, allocations: 118.8 kB / 1.374 GB, free: 2.422 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007331/0.4613, allocations: 0.5955 MB / 1.375 GB, free: 1.816 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 8.973e-05/0.4614, allocations: 41.7 kB / 1.375 GB, free: 1.77 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002609/0.4617, allocations: 217.7 kB / 1.375 GB, free: 1.555 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 6.362e-05/0.4617, allocations: 55.56 kB / 1.375 GB, free: 1.5 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000269/0.462, allocations: 189.5 kB / 1.376 GB, free: 1.309 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.000191/0.4622, allocations: 362.8 kB / 1.376 GB, free: 0.9453 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001971/0.4624, allocations: 127.9 kB / 1.376 GB, free: 0.8203 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001588/0.464, allocations: 1.771 MB / 1.378 GB, free: 14.62 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004004/0.4644, allocations: 304.4 kB / 1.378 GB, free: 14.27 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.4644, allocations: 0 / 1.378 GB, free: 14.27 MB / 1.076 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0007046/0.4651, allocations: 425.2 kB / 1.378 GB, free: 13.85 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 2.566e-05/0.4651, allocations: 8 kB / 1.378 GB, free: 13.84 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.068e-05/0.4651, allocations: 4 kB / 1.378 GB, free: 13.84 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.188e-05/0.4651, allocations: 7.984 kB / 1.378 GB, free: 13.83 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001751/0.4653, allocations: 35.86 kB / 1.378 GB, free: 13.8 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.244e-05/0.4653, allocations: 7.938 kB / 1.378 GB, free: 13.79 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001233/0.4666, allocations: 140.2 kB / 1.379 GB, free: 13.65 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.428e-05/0.4666, allocations: 8 kB / 1.379 GB, free: 13.64 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.000407/0.467, allocations: 258.8 kB / 1.379 GB, free: 13.39 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.704e-05/0.4671, allocations: 43.72 kB / 1.379 GB, free: 13.34 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.744e-05/0.4672, allocations: 55.36 kB / 1.379 GB, free: 13.29 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.057e-06/0.4672, allocations: 8 kB / 1.379 GB, free: 13.28 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.02e-05/0.4672, allocations: 3.938 kB / 1.379 GB, free: 13.28 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.17e-06/0.4672, allocations: 0 / 1.379 GB, free: 13.28 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003896/0.4676, allocations: 293.1 kB / 1.379 GB, free: 12.96 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.4676, allocations: 0 / 1.379 GB, free: 12.96 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.287e-05/0.4676, allocations: 7.938 kB / 1.379 GB, free: 12.95 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.336e-06/0.4676, allocations: 0 / 1.379 GB, free: 12.95 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.476e-05/0.4676, allocations: 11.98 kB / 1.379 GB, free: 12.94 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.531e-06/0.4676, allocations: 4.469 kB / 1.379 GB, free: 12.94 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.4676, allocations: 3.938 kB / 1.379 GB, free: 12.93 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007515/0.4684, allocations: 0.5188 MB / 1.38 GB, free: 12.39 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001103/0.4685, allocations: 51.75 kB / 1.38 GB, free: 12.34 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.333e-05/0.4686, allocations: 8 kB / 1.38 GB, free: 12.33 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001537/0.4687, allocations: 15.97 kB / 1.38 GB, free: 12.32 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.376e-05/0.4688, allocations: 31.91 kB / 1.38 GB, free: 12.29 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.609e-05/0.4688, allocations: 19.98 kB / 1.38 GB, free: 12.27 MB / 1.076 GB Notification: Performance of sorting global known variables: time 0.0005572/0.4694, allocations: 427.1 kB / 1.38 GB, free: 11.84 MB / 1.076 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4694, allocations: 4 kB / 1.38 GB, free: 11.84 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0004914/0.4699, allocations: 111.8 kB / 1.38 GB, free: 11.73 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.0002841/0.4702, allocations: 153.6 kB / 1.381 GB, free: 11.57 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.0006325/0.4708, allocations: 343.6 kB / 1.381 GB, free: 11.24 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.4708, allocations: 0 / 1.381 GB, free: 11.24 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.0002553/0.4711, allocations: 171.8 kB / 1.381 GB, free: 11.07 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003179/0.4714, allocations: 34.7 kB / 1.381 GB, free: 11.04 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001406/0.4728, allocations: 0.8304 MB / 1.382 GB, free: 10.17 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002572/0.473, allocations: 229.4 kB / 1.382 GB, free: 9.922 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 0.0002566/0.4733, allocations: 98.86 kB / 1.382 GB, free: 9.824 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.634e-05/0.4734, allocations: 39.42 kB / 1.382 GB, free: 9.785 MB / 1.076 GB Notification: Performance of SimCode: time 4.71e-07/0.4734, allocations: 0 / 1.382 GB, free: 9.785 MB / 1.076 GB Notification: Performance of Templates: time 0.01629/0.4897, allocations: 8.918 MB / 1.391 GB, free: 1 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/jenkins/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: 10.169500153511763]