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 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.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.005335/0.005335, allocations: 97.8 kB / 15.73 MB, free: 5.996 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.001392/0.001392, allocations: 186.6 kB / 16.67 MB, free: 5.926 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.441/1.441, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.004/3.004, allocations: 482.4 MB / 0.7548 GB, free: 10.9 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001991/0.001992, allocations: 72.08 kB / 1.083 GB, free: 12.54 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3068/0.3088, allocations: 162.2 MB / 1.241 GB, free: 10.22 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable): time 0.001964/0.3108, allocations: 0.8629 MB / 1.242 GB, free: 9.355 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.002033/0.3128, allocations: 1.447 MB / 1.244 GB, free: 7.895 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.131e-05/0.3129, allocations: 3.938 kB / 1.244 GB, free: 7.891 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0005016/0.3135, allocations: 199.5 kB / 1.244 GB, free: 7.695 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001542/0.3136, allocations: 115.6 kB / 1.244 GB, free: 7.582 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.001023/0.3147, allocations: 362.1 kB / 1.244 GB, free: 7.234 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.001014/0.3157, allocations: 0.8776 MB / 1.245 GB, free: 6.355 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001859/0.3159, allocations: 96.25 kB / 1.245 GB, free: 6.262 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003793/0.3163, allocations: 347.4 kB / 1.246 GB, free: 5.922 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003817/0.3167, allocations: 263.3 kB / 1.246 GB, free: 5.664 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001615/0.3168, allocations: 48 kB / 1.246 GB, free: 5.617 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002907/0.3171, allocations: 103.9 kB / 1.246 GB, free: 5.516 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0004838/0.3176, allocations: 355.2 kB / 1.246 GB, free: 5.168 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003721/0.318, allocations: 270.8 kB / 1.247 GB, free: 4.902 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0009595/0.319, allocations: 0.9151 MB / 1.248 GB, free: 3.984 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 9.889e-06/0.319, allocations: 0 / 1.248 GB, free: 3.984 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.332e-06/0.319, allocations: 3.938 kB / 1.248 GB, free: 3.98 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 6.993e-06/0.319, allocations: 0 / 1.248 GB, free: 3.98 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: 27 * Number of variables: 27 Notification: Performance of Generate backend data structure: time 0.00156/0.3206, allocations: 0.9033 MB / 1.248 GB, free: 3.016 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.929e-05/0.3206, allocations: 12.03 kB / 1.248 GB, free: 3.004 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.415e-05/0.3207, allocations: 38.75 kB / 1.248 GB, free: 2.957 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00018/0.3209, allocations: 60.64 kB / 1.249 GB, free: 2.898 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007796/0.3216, allocations: 0.5375 MB / 1.249 GB, free: 2.324 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.251e-05/0.3217, allocations: 28.55 kB / 1.249 GB, free: 2.297 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001233/0.3218, allocations: 40.36 kB / 1.249 GB, free: 2.258 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004871/0.3223, allocations: 299.2 kB / 1.249 GB, free: 1.953 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.014e-05/0.3223, allocations: 3.938 kB / 1.249 GB, free: 1.949 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.778e-05/0.3224, allocations: 11.98 kB / 1.249 GB, free: 1.938 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.562e-06/0.3224, allocations: 7.938 kB / 1.249 GB, free: 1.93 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003497/0.3227, allocations: 223.8 kB / 1.25 GB, free: 1.711 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001921/0.3247, allocations: 1.184 MB / 1.251 GB, free: 480 kB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.5497/0.8744, allocations: 465.8 kB / 1.251 GB, free: 14.89 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003243/0.8747, allocations: 179.8 kB / 1.251 GB, free: 14.87 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.065e-05/0.8747, allocations: 3.156 kB / 1.251 GB, free: 14.87 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005392/0.8753, allocations: 325.8 kB / 1.252 GB, free: 14.8 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=24): time 2.404e-06/0.8753, allocations: 2.812 kB / 1.252 GB, free: 14.8 MB / 0.9981 GB Notification: Performance of matching and sorting (n=24): time 0.001277/0.8766, allocations: 0.6286 MB / 1.252 GB, free: 14.77 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.629e-05/0.8767, allocations: 117 kB / 1.252 GB, free: 14.64 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008461/0.8775, allocations: 0.5994 MB / 1.253 GB, free: 14.53 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001451/0.8777, allocations: 44.27 kB / 1.253 GB, free: 14.5 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002116/0.8779, allocations: 215.9 kB / 1.253 GB, free: 14.42 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 5.2e-05/0.8779, allocations: 58.31 kB / 1.253 GB, free: 14.41 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003033/0.8783, allocations: 181.8 kB / 1.254 GB, free: 14.4 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 9.592e-05/0.8784, allocations: 362.3 kB / 1.254 GB, free: 14.09 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002064/0.8786, allocations: 131.4 kB / 1.254 GB, free: 14.09 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008617/0.8794, allocations: 0.7144 MB / 1.255 GB, free: 13.57 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003693/0.8798, allocations: 293.8 kB / 1.255 GB, free: 13.38 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.13e-06/0.8798, allocations: 7.781 kB / 1.255 GB, free: 13.38 MB / 0.9981 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0007007/0.8805, allocations: 419.6 kB / 1.255 GB, free: 13.22 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.975e-05/0.8806, allocations: 9.531 kB / 1.255 GB, free: 13.22 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.859e-06/0.8806, allocations: 5.547 kB / 1.255 GB, free: 13.22 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.176e-05/0.8806, allocations: 10.06 kB / 1.255 GB, free: 13.22 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001759/0.8808, allocations: 39.55 kB / 1.255 GB, free: 13.21 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.225e-05/0.8808, allocations: 6.031 kB / 1.255 GB, free: 13.21 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00137/0.8822, allocations: 126.2 kB / 1.256 GB, free: 13.19 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.957e-05/0.8822, allocations: 15.95 kB / 1.256 GB, free: 13.18 MB / 0.9981 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.0003448/0.8826, allocations: 263.5 kB / 1.256 GB, free: 13.02 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.135e-05/0.8827, allocations: 47.27 kB / 1.256 GB, free: 13 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.139e-05/0.8828, allocations: 47.06 kB / 1.256 GB, free: 12.98 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.661e-06/0.8828, allocations: 3.734 kB / 1.256 GB, free: 12.98 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.456e-06/0.8828, allocations: 1.125 kB / 1.256 GB, free: 12.98 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.725e-06/0.8828, allocations: 2.641 kB / 1.256 GB, free: 12.98 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003965/0.8832, allocations: 410.5 kB / 1.256 GB, free: 12.71 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.557e-06/0.8832, allocations: 0 / 1.256 GB, free: 12.71 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.641e-05/0.8832, allocations: 10.16 kB / 1.256 GB, free: 12.71 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.639e-06/0.8833, allocations: 1.359 kB / 1.256 GB, free: 12.71 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.38e-05/0.8833, allocations: 13.31 kB / 1.256 GB, free: 12.71 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.956e-06/0.8833, allocations: 1.875 kB / 1.256 GB, free: 12.71 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/0.8833, allocations: 5.047 kB / 1.256 GB, free: 12.71 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006866/0.884, allocations: 0.5171 MB / 1.257 GB, free: 12.48 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 8.286e-05/0.8841, allocations: 130.7 kB / 1.257 GB, free: 12.36 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.891e-05/0.8841, allocations: 8.141 kB / 1.257 GB, free: 12.36 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001689/0.8843, allocations: 18.52 kB / 1.257 GB, free: 12.35 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.684e-05/0.8844, allocations: 29.47 kB / 1.257 GB, free: 12.34 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.465e-05/0.8845, allocations: 13.2 kB / 1.257 GB, free: 12.34 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0004993/0.885, allocations: 433.5 kB / 1.257 GB, free: 12.17 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.51e-07/0.885, allocations: 1.125 kB / 1.257 GB, free: 12.17 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0004927/0.8855, allocations: 113 kB / 1.258 GB, free: 12.16 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: 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.0009897/0.8865, allocations: 1.113 MB / 1.259 GB, free: 11.39 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0006177/0.8871, allocations: 352.8 kB / 1.259 GB, free: 11.29 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.8871, allocations: 0 / 1.259 GB, free: 11.29 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002624/0.8874, allocations: 188.8 kB / 1.259 GB, free: 11.23 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003231/0.8877, allocations: 38.88 kB / 1.259 GB, free: 11.21 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004951/0.8927, allocations: 4.41 MB / 1.264 GB, free: 8.859 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002556/0.8929, allocations: 0.8298 MB / 1.264 GB, free: 8.141 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0002439/0.8932, allocations: 98.58 kB / 1.264 GB, free: 8.137 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001626/0.8934, allocations: 129.8 kB / 1.265 GB, free: 8.047 MB / 0.9981 GB Notification: Performance of SimCode: time 5.61e-07/0.8934, allocations: 4 kB / 1.265 GB, free: 8.043 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03601/0.9294, allocations: 11.57 MB / 1.276 GB, free: 7.09 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.647/9.577, allocations: 7.172 kB / 1.276 GB, free: 7.086 MB / 0.9981 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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.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_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.csv","/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