Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Integers.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.Integers.Sources.Validation.TimeTable,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Sources_Validation_TimeTable",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Integers_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.0058/0.0058, allocations: 97.39 kB / 15.73 MB, free: 6.484 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.001605/0.001605, allocations: 192.1 kB / 16.67 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.465/1.465, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.888/2.888, allocations: 482.4 MB / 0.7548 GB, free: 10.91 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.00193/0.001931, allocations: 68.08 kB / 1.083 GB, free: 12.55 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2947/0.2967, allocations: 162.2 MB / 1.241 GB, free: 10.21 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable): time 0.001691/0.2984, allocations: 0.6905 MB / 1.242 GB, free: 9.52 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001731/0.3001, allocations: 1.334 MB / 1.243 GB, free: 8.172 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.135e-05/0.3002, allocations: 0 / 1.243 GB, free: 8.172 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0004492/0.3007, allocations: 187.5 kB / 1.244 GB, free: 7.988 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001306/0.3008, allocations: 103.7 kB / 1.244 GB, free: 7.887 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006654/0.3015, allocations: 242.6 kB / 1.244 GB, free: 7.652 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0005885/0.3021, allocations: 495.7 kB / 1.244 GB, free: 7.164 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.397e-05/0.3021, allocations: 15.97 kB / 1.244 GB, free: 7.148 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002216/0.3023, allocations: 199.7 kB / 1.245 GB, free: 6.953 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003228/0.3027, allocations: 211.6 kB / 1.245 GB, free: 6.746 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 8.788e-05/0.3028, allocations: 24 kB / 1.245 GB, free: 6.723 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002102/0.303, allocations: 75.89 kB / 1.245 GB, free: 6.648 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0003769/0.3034, allocations: 259.5 kB / 1.245 GB, free: 6.395 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001929/0.3036, allocations: 155.3 kB / 1.245 GB, free: 6.242 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.000526/0.3041, allocations: 474.6 kB / 1.246 GB, free: 5.777 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 2.926e-06/0.3041, allocations: 0 / 1.246 GB, free: 5.777 MB / 0.9981 GB Notification: Performance of FrontEnd: time 3.367e-06/0.3041, allocations: 0 / 1.246 GB, free: 5.777 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 5.19e-06/0.3041, allocations: 3.938 kB / 1.246 GB, free: 5.773 MB / 0.9981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.001015/0.3052, allocations: 0.65 MB / 1.246 GB, free: 5.07 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.284e-05/0.3052, allocations: 8.031 kB / 1.246 GB, free: 5.062 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.12e-05/0.3052, allocations: 34.73 kB / 1.246 GB, free: 5.02 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001174/0.3054, allocations: 32.8 kB / 1.246 GB, free: 4.988 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005183/0.3059, allocations: 396.2 kB / 1.247 GB, free: 4.559 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.699e-05/0.3059, allocations: 12.38 kB / 1.247 GB, free: 4.547 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.102e-05/0.306, allocations: 20.36 kB / 1.247 GB, free: 4.527 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003038/0.3063, allocations: 184.7 kB / 1.247 GB, free: 4.332 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.618e-06/0.3063, allocations: 3.938 kB / 1.247 GB, free: 4.328 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.602e-05/0.3063, allocations: 0 / 1.247 GB, free: 4.328 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.623e-06/0.3064, allocations: 8 kB / 1.247 GB, free: 4.32 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001846/0.3065, allocations: 111.9 kB / 1.247 GB, free: 4.211 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004401/0.307, allocations: 387.1 kB / 1.248 GB, free: 3.777 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004785/0.3075, allocations: 319.6 kB / 1.248 GB, free: 3.438 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001844/0.3077, allocations: 122.6 kB / 1.248 GB, free: 3.309 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 6.913e-06/0.3077, allocations: 4 kB / 1.248 GB, free: 3.305 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004329/0.3081, allocations: 281.5 kB / 1.248 GB, free: 3.008 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=18): time 1.333e-06/0.3081, allocations: 0 / 1.248 GB, free: 3.008 MB / 0.9981 GB Notification: Performance of matching and sorting (n=18): time 0.0008493/0.309, allocations: 0.4973 MB / 1.249 GB, free: 2.504 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.911e-05/0.3091, allocations: 110.8 kB / 1.249 GB, free: 2.371 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004521/0.3095, allocations: 404.5 kB / 1.249 GB, free: 1.969 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 5.598e-05/0.3096, allocations: 37.7 kB / 1.249 GB, free: 1.926 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.000152/0.3098, allocations: 152.8 kB / 1.249 GB, free: 1.77 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 4.727e-05/0.3098, allocations: 47.64 kB / 1.249 GB, free: 1.723 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000181/0.31, allocations: 121.6 kB / 1.25 GB, free: 1.598 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001589/0.3102, allocations: 342.8 kB / 1.25 GB, free: 1.254 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001343/0.3103, allocations: 87.94 kB / 1.25 GB, free: 1.168 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005469/0.3109, allocations: 459 kB / 1.25 GB, free: 0.5938 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003185/0.3112, allocations: 261.4 kB / 1.251 GB, free: 296 kB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.3112, allocations: 0 / 1.251 GB, free: 296 kB / 0.9981 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.5488/0.86, allocations: 324.3 kB / 1.251 GB, free: 14.83 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.504e-05/0.86, allocations: 11.72 kB / 1.251 GB, free: 14.83 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.109e-05/0.86, allocations: 3.125 kB / 1.251 GB, free: 14.83 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.427e-05/0.8601, allocations: 5.969 kB / 1.251 GB, free: 14.83 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000179/0.8602, allocations: 32.89 kB / 1.251 GB, free: 14.83 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.243e-05/0.8603, allocations: 8.828 kB / 1.251 GB, free: 14.83 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000855/0.8611, allocations: 65.94 kB / 1.251 GB, free: 14.83 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.593e-05/0.8612, allocations: 15.33 kB / 1.251 GB, free: 14.83 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 26 (tabOneRow.idx,$PRE.tabOneRow.idx,tabOneRow.y[1],$PRE.tabOneRow.y[1],$whenCondition10,intTimTab1.idx,$PRE.intTimTab1.idx,intTimTab1.y[2],$PRE.intTimTab1.y[2],intTimTab1.y[1],$PRE.intTimTab1.y[1],$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,intTimTab.idx,$PRE.intTimTab.idx,intTimTab.y[2],$PRE.intTimTab.y[2],intTimTab.y[1],$PRE.intTimTab.y[1],$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 29 * 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.0002194/0.8614, allocations: 198.3 kB / 1.251 GB, free: 14.71 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.492e-05/0.8614, allocations: 30.27 kB / 1.251 GB, free: 14.71 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.385e-05/0.8615, allocations: 35.5 kB / 1.251 GB, free: 14.7 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.15e-06/0.8615, allocations: 3.156 kB / 1.251 GB, free: 14.7 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.59e-06/0.8615, allocations: 2.234 kB / 1.251 GB, free: 14.7 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.959e-06/0.8615, allocations: 1.328 kB / 1.251 GB, free: 14.7 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002331/0.8618, allocations: 289.8 kB / 1.252 GB, free: 14.51 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.8618, allocations: 1.938 kB / 1.252 GB, free: 14.51 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.603e-05/0.8618, allocations: 10.19 kB / 1.252 GB, free: 14.51 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.416e-06/0.8618, allocations: 3.828 kB / 1.252 GB, free: 14.51 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.739e-05/0.8618, allocations: 5.297 kB / 1.252 GB, free: 14.51 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.937e-06/0.8618, allocations: 4.422 kB / 1.252 GB, free: 14.51 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/0.8619, allocations: 5.438 kB / 1.252 GB, free: 14.51 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005574/0.8624, allocations: 437.6 kB / 1.252 GB, free: 14.43 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.37e-05/0.8625, allocations: 98.25 kB / 1.252 GB, free: 14.33 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.797e-05/0.8625, allocations: 10.55 kB / 1.252 GB, free: 14.33 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.316e-05/0.8626, allocations: 3.938 kB / 1.252 GB, free: 14.33 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.933e-05/0.8627, allocations: 18.83 kB / 1.252 GB, free: 14.33 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.619e-05/0.8627, allocations: 12.2 kB / 1.252 GB, free: 14.33 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0002921/0.863, allocations: 290 kB / 1.253 GB, free: 14.25 MB / 0.9981 GB Notification: Performance of sort global known variables: time 4.91e-07/0.863, allocations: 0.7188 kB / 1.253 GB, free: 14.25 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0003812/0.8634, allocations: 79.31 kB / 1.253 GB, free: 14.25 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 18 ($whenCondition10,tabOneRow.y[1],tabOneRow.idx,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,intTimTab1.y[1],intTimTab1.y[2],intTimTab1.idx,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,intTimTab.y[1],intTimTab.y[2],intTimTab.idx) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * 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.0007774/0.8642, allocations: 1.007 MB / 1.254 GB, free: 13.64 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0004325/0.8646, allocations: 255.5 kB / 1.254 GB, free: 13.64 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.8646, allocations: 0 / 1.254 GB, free: 13.64 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001921/0.8648, allocations: 152.5 kB / 1.254 GB, free: 13.64 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002639/0.8651, allocations: 27.84 kB / 1.254 GB, free: 13.64 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00332/0.8684, allocations: 3.25 MB / 1.257 GB, free: 11.92 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001972/0.8686, allocations: 0.7637 MB / 1.258 GB, free: 11.21 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001238/0.8688, allocations: 52.17 kB / 1.258 GB, free: 11.21 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001149/0.8689, allocations: 84.3 kB / 1.258 GB, free: 11.16 MB / 0.9981 GB Notification: Performance of SimCode: time 2.51e-07/0.8689, allocations: 0 / 1.258 GB, free: 11.16 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02949/0.8984, allocations: 7.606 MB / 1.265 GB, free: 10.45 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.94/8.838, allocations: 15.22 kB / 1.265 GB, free: 10.45 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable_res.csv --start-time 0 --stop-time 15 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.006 Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Sources_Validation_TimeTable.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Integers_Sources_Validation_TimeTable.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches