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) 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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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: 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_latest_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_latest_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.001302/0.001302, allocations: 86.56 kB / 15.06 MB, free: 1.09 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.001399/0.001399, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.509/1.509, allocations: 223.3 MB / 240 MB, free: 5.449 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.927/2.927, allocations: 462.6 MB / 0.736 GB, free: 15.77 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003859/0.0003864, allocations: 8.5 kB / 0.9022 GB, free: 36.56 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3795/0.3799, allocations: 159.6 MB / 1.058 GB, free: 5.336 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable): time 0.001205/0.3811, allocations: 0.5443 MB / 1.059 GB, free: 4.793 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002267/0.3834, allocations: 1.428 MB / 1.06 GB, free: 3.352 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001254/0.3836, allocations: 0 / 1.06 GB, free: 3.352 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0005913/0.3842, allocations: 187.5 kB / 1.06 GB, free: 3.168 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001908/0.3844, allocations: 107.7 kB / 1.06 GB, free: 3.062 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.001059/0.3855, allocations: 316.9 kB / 1.061 GB, free: 2.758 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0009544/0.3864, allocations: 0.659 MB / 1.061 GB, free: 2.098 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002265/0.3867, allocations: 80.42 kB / 1.061 GB, free: 2.016 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006049/0.3873, allocations: 295.4 kB / 1.062 GB, free: 1.727 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004964/0.3878, allocations: 227.3 kB / 1.062 GB, free: 1.504 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.0002284/0.388, allocations: 16 kB / 1.062 GB, free: 1.488 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004115/0.3884, allocations: 75.94 kB / 1.062 GB, free: 1.414 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0005102/0.389, allocations: 299.4 kB / 1.062 GB, free: 1.121 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0002746/0.3893, allocations: 97.45 kB / 1.062 GB, free: 1.02 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.001044/0.3903, allocations: 0.694 MB / 1.063 GB, free: 332 kB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 7.304e-06/0.3903, allocations: 0 / 1.063 GB, free: 332 kB / 0.8106 GB Notification: Performance of FrontEnd: time 4.218e-06/0.3903, allocations: 4 kB / 1.063 GB, free: 328 kB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.186e-05/0.3904, allocations: 0 / 1.063 GB, free: 328 kB / 0.8106 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.002055/0.3924, allocations: 0.7048 MB / 1.064 GB, free: 15.56 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 6.419e-05/0.3925, allocations: 12.03 kB / 1.064 GB, free: 15.55 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004205/0.3929, allocations: 47.53 kB / 1.064 GB, free: 15.5 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001257/0.3942, allocations: 0.5321 MB / 1.064 GB, free: 14.93 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.86e-05/0.3943, allocations: 24.19 kB / 1.064 GB, free: 14.91 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001578/0.3944, allocations: 36 kB / 1.064 GB, free: 14.87 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005911/0.395, allocations: 306.4 kB / 1.065 GB, free: 14.56 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.363e-05/0.3951, allocations: 3.938 kB / 1.065 GB, free: 14.55 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.462e-05/0.3951, allocations: 0 / 1.065 GB, free: 14.55 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.847e-06/0.3951, allocations: 7.984 kB / 1.065 GB, free: 14.55 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003545/0.3955, allocations: 219.8 kB / 1.065 GB, free: 14.33 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002365/0.3978, allocations: 1.199 MB / 1.066 GB, free: 13.07 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007209/0.3986, allocations: 463.7 kB / 1.066 GB, free: 12.59 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000271/0.3989, allocations: 182.6 kB / 1.067 GB, free: 12.41 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.435e-05/0.3989, allocations: 0 / 1.067 GB, free: 12.41 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006019/0.3995, allocations: 334 kB / 1.067 GB, free: 12.06 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=24): time 2.063e-06/0.3995, allocations: 0 / 1.067 GB, free: 12.06 MB / 0.8262 GB Notification: Performance of matching and sorting (n=24): time 0.001201/0.4007, allocations: 0.6295 MB / 1.067 GB, free: 11.43 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.32e-05/0.4008, allocations: 114.8 kB / 1.068 GB, free: 11.29 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009123/0.4017, allocations: 0.5993 MB / 1.068 GB, free: 10.68 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 0.0001257/0.4019, allocations: 49.69 kB / 1.068 GB, free: 10.63 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003545/0.4022, allocations: 211 kB / 1.068 GB, free: 10.41 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 6.916e-05/0.4023, allocations: 55.36 kB / 1.068 GB, free: 10.36 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.709e-05/0.4023, allocations: 4 kB / 1.068 GB, free: 10.35 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001912/0.4025, allocations: 358.8 kB / 1.069 GB, free: 9.992 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002011/0.4027, allocations: 135.8 kB / 1.069 GB, free: 9.859 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009215/0.4037, allocations: 0.7097 MB / 1.07 GB, free: 8.977 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002675/0.4039, allocations: 171.9 kB / 1.07 GB, free: 8.809 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.918e-06/0.404, allocations: 3.938 kB / 1.07 GB, free: 8.805 MB / 0.8262 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0007223/0.4047, allocations: 412.9 kB / 1.07 GB, free: 8.395 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.787e-05/0.4047, allocations: 13.83 kB / 1.07 GB, free: 8.383 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.122e-05/0.4047, allocations: 4.078 kB / 1.07 GB, free: 8.379 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.756e-05/0.4048, allocations: 4 kB / 1.07 GB, free: 8.375 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001696/0.4049, allocations: 35.92 kB / 1.07 GB, free: 8.34 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.686e-05/0.405, allocations: 8.734 kB / 1.07 GB, free: 8.332 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001149/0.4061, allocations: 148.1 kB / 1.07 GB, free: 8.199 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.801e-05/0.4062, allocations: 16 kB / 1.07 GB, free: 8.184 MB / 0.8262 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.y[1],booTimTab.y[2],$PRE.booTimTab.intTimTab.y[1],booTimTab.intTimTab.y[1],$PRE.booTimTab.intTimTab.y[2],booTimTab.intTimTab.y[2],$PRE.booTimTab.intTimTab.idx,booTimTab.intTimTab.idx,$whenCondition5,booTimTabOneRow.y[1],booTimTabOneRow.y[2],$PRE.booTimTabOneRow.intTimTab.y[1],booTimTabOneRow.intTimTab.y[1],$PRE.booTimTabOneRow.intTimTab.y[2],booTimTabOneRow.intTimTab.y[2],$PRE.booTimTabOneRow.intTimTab.idx,booTimTabOneRow.intTimTab.idx,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,booTimTabTwi.y[1],booTimTabTwi.y[2],$PRE.booTimTabTwi.intTimTab.y[1],booTimTabTwi.intTimTab.y[1],$PRE.booTimTabTwi.intTimTab.y[2],booTimTabTwi.intTimTab.y[2],$PRE.booTimTabTwi.intTimTab.idx,booTimTabTwi.intTimTab.idx) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004386/0.4066, allocations: 261.6 kB / 1.071 GB, free: 7.922 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000104/0.4067, allocations: 43.52 kB / 1.071 GB, free: 7.879 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001091/0.4068, allocations: 55.33 kB / 1.071 GB, free: 7.82 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.075e-06/0.4069, allocations: 4 kB / 1.071 GB, free: 7.816 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.157e-06/0.4069, allocations: 0 / 1.071 GB, free: 7.816 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/0.4069, allocations: 3.938 kB / 1.071 GB, free: 7.812 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005324/0.4074, allocations: 401.2 kB / 1.071 GB, free: 7.371 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.945e-06/0.4074, allocations: 4 kB / 1.071 GB, free: 7.367 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.845e-05/0.4075, allocations: 8 kB / 1.071 GB, free: 7.359 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.869e-06/0.4075, allocations: 0 / 1.071 GB, free: 7.359 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.194e-05/0.4075, allocations: 12.23 kB / 1.071 GB, free: 7.348 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.334e-06/0.4075, allocations: 7.953 kB / 1.071 GB, free: 7.34 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.216e-05/0.4076, allocations: 4 kB / 1.071 GB, free: 7.336 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000771/0.4083, allocations: 0.5033 MB / 1.072 GB, free: 6.809 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001556/0.4085, allocations: 152.5 kB / 1.072 GB, free: 6.641 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.543e-05/0.4086, allocations: 4 kB / 1.072 GB, free: 6.637 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001522/0.4087, allocations: 15.98 kB / 1.072 GB, free: 6.621 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000101/0.4088, allocations: 39.89 kB / 1.072 GB, free: 6.582 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.633e-05/0.4089, allocations: 16 kB / 1.072 GB, free: 6.566 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0006186/0.4095, allocations: 427 kB / 1.072 GB, free: 6.152 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4095, allocations: 4 kB / 1.072 GB, free: 6.148 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0005888/0.4101, allocations: 108 kB / 1.072 GB, free: 6.043 MB / 0.8262 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003859/0.4105, allocations: 153.3 kB / 1.073 GB, free: 5.887 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0006924/0.4112, allocations: 354.3 kB / 1.073 GB, free: 5.543 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.927e-06/0.4112, allocations: 0 / 1.073 GB, free: 5.543 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002839/0.4115, allocations: 188.5 kB / 1.073 GB, free: 5.359 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003311/0.4119, allocations: 41.95 kB / 1.073 GB, free: 5.32 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001493/0.4134, allocations: 0.8861 MB / 1.074 GB, free: 4.398 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005187/0.4139, allocations: 0.8353 MB / 1.075 GB, free: 3.535 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0002692/0.4142, allocations: 91.69 kB / 1.075 GB, free: 3.445 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001076/0.4143, allocations: 39.8 kB / 1.075 GB, free: 3.406 MB / 0.8262 GB Notification: Performance of SimCode: time 6.02e-07/0.4143, allocations: 0 / 1.075 GB, free: 3.406 MB / 0.8262 GB Notification: Performance of Templates: time 0.01419/0.4285, allocations: 7.349 MB / 1.082 GB, free: 12.14 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable.makefile (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=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable.pipe 2>&1) 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) Reference file matches