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: translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booTimTab.y.1.|booTimTab.y.2.|booTimTabTwi.y.1.|booTimTabTwi.y.2.|booTimTabOneRow.y.1.|booTimTabOneRow.y.2.",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable") translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booTimTab.y.1.|booTimTab.y.2.|booTimTabTwi.y.1.|booTimTabTwi.y.2.|booTimTabOneRow.y.1.|booTimTabOneRow.y.2.",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001352/0.001358, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001335/0.001335, allocations: 193.3 kB / 16.53 MB, free: 6.391 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.562/1.562, allocations: 222.9 MB / 240.2 MB, free: 4.363 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.921/2.921, allocations: 437 MB / 0.7104 GB, free: 5.07 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0027/0.0027, allocations: 71.89 kB / 0.8692 GB, free: 4.613 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9302/0.933, allocations: 151.6 MB / 1.017 GB, free: 2.473 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable): time 0.002589/0.9356, allocations: 0.8631 MB / 1.018 GB, free: 1.605 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.002282/0.9379, allocations: 1.463 MB / 1.02 GB, free: 128 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.281e-05/0.938, allocations: 7.938 kB / 1.02 GB, free: 120 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.0005271/0.9386, allocations: 187.5 kB / 1.02 GB, free: 15.93 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001628/0.9387, allocations: 111.6 kB / 1.02 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.001011/0.9397, allocations: 348.3 kB / 1.02 GB, free: 15.49 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0009947/0.9407, allocations: 0.8582 MB / 1.021 GB, free: 14.63 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002162/0.941, allocations: 96.22 kB / 1.021 GB, free: 14.53 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004289/0.9414, allocations: 343.5 kB / 1.021 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004353/0.9419, allocations: 271.2 kB / 1.022 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 0.0001566/0.942, allocations: 48 kB / 1.022 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002931/0.9423, allocations: 103.9 kB / 1.022 GB, free: 13.78 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0004787/0.9428, allocations: 347.3 kB / 1.022 GB, free: 13.44 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0003645/0.9432, allocations: 266.8 kB / 1.022 GB, free: 13.18 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.001029/0.9442, allocations: 0.9057 MB / 1.023 GB, free: 12.27 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.9442, allocations: 0 / 1.023 GB, free: 12.27 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.283e-06/0.9442, allocations: 4 kB / 1.023 GB, free: 12.27 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.012e-05/0.9443, allocations: 4 kB / 1.023 GB, free: 12.27 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.001812/0.9461, allocations: 0.8801 MB / 1.024 GB, free: 11.33 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.824e-05/0.9461, allocations: 15.98 kB / 1.024 GB, free: 11.32 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002173/0.9464, allocations: 52.45 kB / 1.024 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008813/0.9472, allocations: 0.5448 MB / 1.025 GB, free: 10.68 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.455e-05/0.9473, allocations: 28.55 kB / 1.025 GB, free: 10.65 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000111/0.9474, allocations: 36.38 kB / 1.025 GB, free: 10.62 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005199/0.9479, allocations: 316.3 kB / 1.025 GB, free: 10.3 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.229e-05/0.948, allocations: 192 / 1.025 GB, free: 10.3 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.753e-05/0.948, allocations: 3.938 kB / 1.025 GB, free: 10.29 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.233e-05/0.948, allocations: 4 kB / 1.025 GB, free: 10.29 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003616/0.9484, allocations: 223.8 kB / 1.025 GB, free: 10.07 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00214/0.9505, allocations: 1.184 MB / 1.027 GB, free: 8.828 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006802/0.9512, allocations: 467.7 kB / 1.027 GB, free: 8.344 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002551/0.9515, allocations: 182.6 kB / 1.027 GB, free: 8.156 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.943e-05/0.9515, allocations: 4 kB / 1.027 GB, free: 8.152 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005075/0.952, allocations: 337.5 kB / 1.028 GB, free: 7.801 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=24): time 1.392e-06/0.952, allocations: 0 / 1.028 GB, free: 7.801 MB / 0.7794 GB Notification: Performance of matching and sorting (n=24): time 0.0012/0.9532, allocations: 0.6218 MB / 1.028 GB, free: 7.172 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001144/0.9534, allocations: 118.7 kB / 1.028 GB, free: 7.031 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008173/0.9542, allocations: 0.5916 MB / 1.029 GB, free: 6.438 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 0.0001085/0.9543, allocations: 49.7 kB / 1.029 GB, free: 6.383 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002883/0.9546, allocations: 226.5 kB / 1.029 GB, free: 6.156 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 6.092e-05/0.9547, allocations: 43.45 kB / 1.029 GB, free: 6.113 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002862/0.955, allocations: 185.5 kB / 1.029 GB, free: 5.926 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001991/0.9552, allocations: 358.8 kB / 1.03 GB, free: 5.566 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001931/0.9554, allocations: 128.7 kB / 1.03 GB, free: 5.441 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008746/0.9563, allocations: 0.7148 MB / 1.03 GB, free: 4.555 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000373/0.9566, allocations: 304.6 kB / 1.031 GB, free: 4.211 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.372e-06/0.9566, allocations: 4 kB / 1.031 GB, free: 4.207 MB / 0.7794 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0006787/0.9573, allocations: 416.7 kB / 1.031 GB, free: 3.793 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.93e-05/0.9574, allocations: 4 kB / 1.031 GB, free: 3.789 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.033e-05/0.9574, allocations: 8.312 kB / 1.031 GB, free: 3.781 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.091e-05/0.9574, allocations: 11.94 kB / 1.031 GB, free: 3.77 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001628/0.9576, allocations: 43.84 kB / 1.031 GB, free: 3.727 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.367e-05/0.9576, allocations: 7.938 kB / 1.031 GB, free: 3.719 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001223/0.9588, allocations: 135.9 kB / 1.031 GB, free: 3.586 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.462e-05/0.9589, allocations: 20 kB / 1.031 GB, free: 3.566 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.0003203/0.9592, allocations: 253.7 kB / 1.032 GB, free: 3.312 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.006e-05/0.9593, allocations: 39.44 kB / 1.032 GB, free: 3.273 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001075/0.9594, allocations: 55.31 kB / 1.032 GB, free: 3.219 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.348e-06/0.9594, allocations: 4 kB / 1.032 GB, free: 3.215 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.087e-06/0.9594, allocations: 3.984 kB / 1.032 GB, free: 3.211 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.069e-06/0.9594, allocations: 4 kB / 1.032 GB, free: 3.207 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004614/0.9599, allocations: 401.2 kB / 1.032 GB, free: 2.766 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.9599, allocations: 4 kB / 1.032 GB, free: 2.762 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.406e-05/0.9599, allocations: 15.92 kB / 1.032 GB, free: 2.746 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.845e-06/0.9599, allocations: 0 / 1.032 GB, free: 2.746 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.373e-05/0.96, allocations: 7.938 kB / 1.032 GB, free: 2.738 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.674e-06/0.96, allocations: 0 / 1.032 GB, free: 2.738 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.764e-06/0.96, allocations: 4 kB / 1.032 GB, free: 2.734 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007201/0.9607, allocations: 0.5151 MB / 1.033 GB, free: 2.195 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001181/0.9608, allocations: 116.6 kB / 1.033 GB, free: 2.062 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.091e-05/0.9609, allocations: 19.86 kB / 1.033 GB, free: 2.043 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001565/0.961, allocations: 11.98 kB / 1.033 GB, free: 2.031 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000102/0.9611, allocations: 31.97 kB / 1.033 GB, free: 2 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.17e-05/0.9612, allocations: 15.92 kB / 1.033 GB, free: 1.984 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0005239/0.9617, allocations: 435.1 kB / 1.033 GB, free: 1.562 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.4e-07/0.9617, allocations: 4 kB / 1.033 GB, free: 1.559 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0004671/0.9622, allocations: 111.9 kB / 1.033 GB, free: 1.449 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.0002954/0.9625, allocations: 149.3 kB / 1.033 GB, free: 1.293 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0006337/0.9631, allocations: 368 kB / 1.034 GB, free: 0.9336 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.9632, allocations: 4.25 kB / 1.034 GB, free: 0.9297 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0002663/0.9634, allocations: 188 kB / 1.034 GB, free: 0.7461 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000321/0.9638, allocations: 43.92 kB / 1.034 GB, free: 0.707 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001372/0.9651, allocations: 0.844 MB / 1.035 GB, free: 15.83 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005502/0.9657, allocations: 0.835 MB / 1.036 GB, free: 14.97 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0002583/0.966, allocations: 92.69 kB / 1.036 GB, free: 14.88 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001721/0.9661, allocations: 35.42 kB / 1.036 GB, free: 14.84 MB / 0.795 GB Notification: Performance of SimCode: time 4.41e-07/0.9661, allocations: 0 / 1.036 GB, free: 14.84 MB / 0.795 GB Notification: Performance of Templates: time 0.0154/0.9816, allocations: 7.937 MB / 1.044 GB, free: 7 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable.makefile (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 & ./Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > 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/jenkins/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