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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable,fileNamePrefix="Buildings_latest_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_latest_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.001275/0.001275, allocations: 107.4 kB / 15.22 MB, free: 0.6562 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.001379/0.001379, allocations: 194.7 kB / 16.14 MB, free: 6.57 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.265/1.265, allocations: 222.9 MB / 239.8 MB, free: 4.582 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.498/2.498, allocations: 461.8 MB / 0.7342 GB, free: 14.21 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001213/0.001213, allocations: 70.34 kB / 0.8985 GB, free: 36.97 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2775/0.2787, allocations: 157.4 MB / 1.052 GB, free: 8.211 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable): time 0.002433/0.2812, allocations: 0.9101 MB / 1.053 GB, free: 7.297 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002051/0.2833, allocations: 1.47 MB / 1.055 GB, free: 5.812 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.127e-05/0.2834, allocations: 3.938 kB / 1.055 GB, free: 5.809 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0004653/0.2839, allocations: 187.6 kB / 1.055 GB, free: 5.625 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001496/0.284, allocations: 99.69 kB / 1.055 GB, free: 5.527 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.001064/0.2851, allocations: 330.5 kB / 1.055 GB, free: 5.211 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0008374/0.286, allocations: 0.7644 MB / 1.056 GB, free: 4.445 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000183/0.2862, allocations: 100.2 kB / 1.056 GB, free: 4.348 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004326/0.2866, allocations: 303.3 kB / 1.056 GB, free: 4.051 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003727/0.287, allocations: 243.3 kB / 1.057 GB, free: 3.812 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.0001644/0.2871, allocations: 20 kB / 1.057 GB, free: 3.793 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002534/0.2874, allocations: 83.94 kB / 1.057 GB, free: 3.711 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0003542/0.2878, allocations: 307.3 kB / 1.057 GB, free: 3.41 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.000274/0.288, allocations: 250.7 kB / 1.057 GB, free: 3.164 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0007029/0.2888, allocations: 0.8729 MB / 1.058 GB, free: 2.289 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.2888, allocations: 0 / 1.058 GB, free: 2.289 MB / 0.8106 GB Notification: Performance of FrontEnd: time 8.11e-07/0.2888, allocations: 3.938 kB / 1.058 GB, free: 2.285 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.181e-06/0.2888, allocations: 0 / 1.058 GB, free: 2.285 MB / 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.001325/0.2901, allocations: 0.888 MB / 1.059 GB, free: 1.34 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.832e-05/0.2902, allocations: 19.97 kB / 1.059 GB, free: 1.32 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.061e-05/0.2902, allocations: 42.73 kB / 1.059 GB, free: 1.27 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001772/0.2904, allocations: 52.38 kB / 1.059 GB, free: 1.219 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006728/0.2911, allocations: 0.537 MB / 1.059 GB, free: 0.6406 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.533e-05/0.2911, allocations: 28.59 kB / 1.06 GB, free: 0.6133 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001007/0.2912, allocations: 36.38 kB / 1.06 GB, free: 0.5781 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004099/0.2916, allocations: 302.2 kB / 1.06 GB, free: 276 kB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.166e-06/0.2917, allocations: 7.875 kB / 1.06 GB, free: 268 kB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.451e-05/0.2917, allocations: 12 kB / 1.06 GB, free: 256 kB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.072e-06/0.2917, allocations: 4 kB / 1.06 GB, free: 252 kB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002994/0.292, allocations: 219.8 kB / 1.06 GB, free: 32 kB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001658/0.2937, allocations: 1.18 MB / 1.061 GB, free: 14.79 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005667/0.2942, allocations: 475.8 kB / 1.062 GB, free: 14.3 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002233/0.2945, allocations: 174.6 kB / 1.062 GB, free: 14.12 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.206e-05/0.2945, allocations: 11.98 kB / 1.062 GB, free: 14.11 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000397/0.2949, allocations: 326.9 kB / 1.062 GB, free: 13.77 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=24): time 1.403e-06/0.2949, allocations: 0 / 1.062 GB, free: 13.77 MB / 0.8262 GB Notification: Performance of matching and sorting (n=24): time 0.0009151/0.2958, allocations: 0.6295 MB / 1.063 GB, free: 13.13 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.648e-05/0.2959, allocations: 119.5 kB / 1.063 GB, free: 12.99 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006009/0.2965, allocations: 0.5954 MB / 1.063 GB, free: 12.39 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 8.189e-05/0.2966, allocations: 45.7 kB / 1.064 GB, free: 12.34 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002083/0.2968, allocations: 222.4 kB / 1.064 GB, free: 12.11 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 5.262e-05/0.2969, allocations: 47.41 kB / 1.064 GB, free: 12.07 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002457/0.2971, allocations: 189.5 kB / 1.064 GB, free: 11.88 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001235/0.2973, allocations: 362.8 kB / 1.064 GB, free: 11.51 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001666/0.2974, allocations: 127.8 kB / 1.064 GB, free: 11.39 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007133/0.2981, allocations: 0.7175 MB / 1.065 GB, free: 10.5 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003316/0.2985, allocations: 296.6 kB / 1.065 GB, free: 10.16 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.2985, allocations: 0 / 1.065 GB, free: 10.16 MB / 0.8262 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0006065/0.2991, allocations: 424.9 kB / 1.066 GB, free: 9.738 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.523e-05/0.2991, allocations: 8 kB / 1.066 GB, free: 9.73 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.554e-06/0.2991, allocations: 3.938 kB / 1.066 GB, free: 9.727 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.561e-05/0.2992, allocations: 8 kB / 1.066 GB, free: 9.719 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001424/0.2993, allocations: 31.92 kB / 1.066 GB, free: 9.688 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.162e-05/0.2993, allocations: 12.31 kB / 1.066 GB, free: 9.676 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001196/0.3005, allocations: 123.7 kB / 1.066 GB, free: 9.555 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.393e-05/0.3006, allocations: 16.25 kB / 1.066 GB, free: 9.539 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.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.0002698/0.3008, allocations: 265.6 kB / 1.066 GB, free: 9.273 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.327e-05/0.3009, allocations: 39.53 kB / 1.066 GB, free: 9.234 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.505e-05/0.301, allocations: 55.3 kB / 1.066 GB, free: 9.176 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.139e-06/0.301, allocations: 4 kB / 1.066 GB, free: 9.172 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.301, allocations: 0 / 1.066 GB, free: 9.172 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.301, allocations: 4 kB / 1.066 GB, free: 9.168 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003639/0.3014, allocations: 405.2 kB / 1.067 GB, free: 8.723 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.3014, allocations: 0 / 1.067 GB, free: 8.723 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.489e-05/0.3014, allocations: 11.94 kB / 1.067 GB, free: 8.711 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.305e-06/0.3014, allocations: 4 kB / 1.067 GB, free: 8.707 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.015e-05/0.3015, allocations: 11.92 kB / 1.067 GB, free: 8.695 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.008e-06/0.3015, allocations: 4 kB / 1.067 GB, free: 8.691 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.3015, allocations: 0 / 1.067 GB, free: 8.691 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006301/0.3021, allocations: 0.5131 MB / 1.067 GB, free: 8.156 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 9.244e-05/0.3022, allocations: 128.6 kB / 1.067 GB, free: 8.012 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.771e-05/0.3023, allocations: 7.938 kB / 1.067 GB, free: 8.004 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000159/0.3024, allocations: 19.98 kB / 1.067 GB, free: 7.984 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.393e-05/0.3025, allocations: 31.95 kB / 1.067 GB, free: 7.953 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.599e-05/0.3025, allocations: 12 kB / 1.067 GB, free: 7.941 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0004375/0.303, allocations: 431.1 kB / 1.068 GB, free: 7.523 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.303, allocations: 0 / 1.068 GB, free: 7.523 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0004274/0.3034, allocations: 119.8 kB / 1.068 GB, free: 7.406 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 (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.001001/0.3044, allocations: 1.1 MB / 1.069 GB, free: 6.273 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0005268/0.305, allocations: 356.3 kB / 1.069 GB, free: 5.926 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.305, allocations: 0 / 1.069 GB, free: 5.926 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002367/0.3052, allocations: 191.8 kB / 1.07 GB, free: 5.738 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002942/0.3055, allocations: 37.89 kB / 1.07 GB, free: 5.703 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005132/0.3107, allocations: 4.505 MB / 1.074 GB, free: 1.012 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003479/0.311, allocations: 0.8314 MB / 1.075 GB, free: 156 kB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0002236/0.3113, allocations: 90.94 kB / 1.075 GB, free: 64 kB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001881/0.3114, allocations: 132.1 kB / 1.075 GB, free: 15.93 MB / 0.8419 GB Notification: Performance of SimCode: time 2.5e-07/0.3115, allocations: 0 / 1.075 GB, free: 15.93 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7713/1.083, allocations: 11.1 MB / 1.086 GB, free: 5.129 MB / 0.8419 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002717/1.083, allocations: 223.9 kB / 1.086 GB, free: 4.875 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.034/3.117, allocations: 0 / 1.086 GB, free: 4.875 MB / 0.8419 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_TimeTable_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_TimeTable.fmu > 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/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) Reference file matches