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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable,fileNamePrefix="Buildings_10_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_10_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.0007451/0.000745, allocations: 91.84 kB / 15.36 MB, free: 0.7344 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.004999/0.004999, allocations: 173 kB / 16.26 MB, free: 6.582 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.369/1.369, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.57/2.57, allocations: 437.8 MB / 0.7121 GB, free: 6.957 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003775/0.0003775, allocations: 8 kB / 0.873 GB, free: 3.184 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7887/0.7891, allocations: 153.8 MB / 1.023 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable): time 0.001042/0.7901, allocations: 0.5737 MB / 1.024 GB, free: 15.28 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002213/0.7924, allocations: 1.452 MB / 1.025 GB, free: 13.81 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000115/0.7925, allocations: 0 / 1.025 GB, free: 13.81 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0004489/0.793, allocations: 183.6 kB / 1.025 GB, free: 13.63 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001648/0.7932, allocations: 111.7 kB / 1.025 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009347/0.7941, allocations: 327.2 kB / 1.026 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0008326/0.7949, allocations: 0.7683 MB / 1.026 GB, free: 12.44 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000201/0.7951, allocations: 88.23 kB / 1.027 GB, free: 12.35 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005534/0.7957, allocations: 291.4 kB / 1.027 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004616/0.7962, allocations: 251.2 kB / 1.027 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 0.0001852/0.7964, allocations: 16 kB / 1.027 GB, free: 11.8 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000287/0.7967, allocations: 71.94 kB / 1.027 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0003963/0.7971, allocations: 291.3 kB / 1.027 GB, free: 11.45 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0003518/0.7974, allocations: 260.5 kB / 1.028 GB, free: 11.19 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0008315/0.7983, allocations: 0.8707 MB / 1.029 GB, free: 10.32 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 2.935e-06/0.7983, allocations: 0 / 1.029 GB, free: 10.32 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.052e-06/0.7983, allocations: 0 / 1.029 GB, free: 10.32 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 2.226e-05/0.7983, allocations: 0 / 1.029 GB, free: 10.32 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.001366/0.7997, allocations: 0.7011 MB / 1.029 GB, free: 9.562 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.807e-05/0.7997, allocations: 8.031 kB / 1.029 GB, free: 9.555 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.829e-05/0.7998, allocations: 46.73 kB / 1.029 GB, free: 9.5 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002012/0.8, allocations: 52.38 kB / 1.029 GB, free: 9.449 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008087/0.8008, allocations: 0.5448 MB / 1.03 GB, free: 8.863 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.086e-05/0.8009, allocations: 24.61 kB / 1.03 GB, free: 8.84 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001238/0.801, allocations: 40.38 kB / 1.03 GB, free: 8.801 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004687/0.8015, allocations: 311.3 kB / 1.03 GB, free: 8.484 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.022e-05/0.8015, allocations: 3.938 kB / 1.03 GB, free: 8.48 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.492e-05/0.8015, allocations: 8 kB / 1.03 GB, free: 8.473 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.589e-06/0.8015, allocations: 0 / 1.03 GB, free: 8.473 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003195/0.8019, allocations: 223.8 kB / 1.03 GB, free: 8.254 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001872/0.8037, allocations: 1.195 MB / 1.032 GB, free: 7 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006092/0.8044, allocations: 467.7 kB / 1.032 GB, free: 6.516 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002313/0.8046, allocations: 174.6 kB / 1.032 GB, free: 6.336 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.312e-05/0.8046, allocations: 4 kB / 1.032 GB, free: 6.332 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004244/0.8051, allocations: 333.5 kB / 1.033 GB, free: 5.984 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=24): time 1.473e-06/0.8051, allocations: 0 / 1.033 GB, free: 5.984 MB / 0.7794 GB Notification: Performance of matching and sorting (n=24): time 0.0009659/0.806, allocations: 0.6257 MB / 1.033 GB, free: 5.352 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.897e-05/0.8061, allocations: 118.8 kB / 1.033 GB, free: 5.211 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006909/0.8068, allocations: 0.5993 MB / 1.034 GB, free: 4.609 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 9.679e-05/0.8069, allocations: 41.7 kB / 1.034 GB, free: 4.562 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002103/0.8072, allocations: 222.6 kB / 1.034 GB, free: 4.336 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 5.24e-05/0.8072, allocations: 51.34 kB / 1.034 GB, free: 4.285 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.763e-05/0.8073, allocations: 41.7 kB / 1.034 GB, free: 4.238 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001255/0.8074, allocations: 362.8 kB / 1.035 GB, free: 3.875 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001762/0.8076, allocations: 127.9 kB / 1.035 GB, free: 3.75 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000797/0.8084, allocations: 0.7184 MB / 1.035 GB, free: 2.859 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003761/0.8088, allocations: 305.3 kB / 1.036 GB, free: 2.516 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.927e-06/0.8088, allocations: 0 / 1.036 GB, free: 2.516 MB / 0.7794 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0006266/0.8094, allocations: 416.7 kB / 1.036 GB, free: 2.102 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.792e-05/0.8095, allocations: 4 kB / 1.036 GB, free: 2.098 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.172e-05/0.8095, allocations: 8.312 kB / 1.036 GB, free: 2.09 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.74e-05/0.8095, allocations: 12 kB / 1.036 GB, free: 2.078 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001504/0.8097, allocations: 31.92 kB / 1.036 GB, free: 2.047 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.178e-05/0.8097, allocations: 7.938 kB / 1.036 GB, free: 2.039 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001306/0.811, allocations: 138.5 kB / 1.036 GB, free: 1.914 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.694e-05/0.811, allocations: 20 kB / 1.036 GB, free: 1.895 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.0003031/0.8113, allocations: 258 kB / 1.037 GB, free: 1.633 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.771e-05/0.8114, allocations: 47.42 kB / 1.037 GB, free: 1.586 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.959e-05/0.8115, allocations: 51.31 kB / 1.037 GB, free: 1.535 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.843e-06/0.8115, allocations: 4 kB / 1.037 GB, free: 1.531 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.562e-06/0.8115, allocations: 4 kB / 1.037 GB, free: 1.527 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.981e-06/0.8115, allocations: 3.984 kB / 1.037 GB, free: 1.523 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004023/0.8119, allocations: 409.3 kB / 1.037 GB, free: 1.074 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.8119, allocations: 256 / 1.037 GB, free: 1.074 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.282e-05/0.812, allocations: 7.938 kB / 1.037 GB, free: 1.066 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.833e-06/0.812, allocations: 7.984 kB / 1.037 GB, free: 1.059 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.019e-05/0.812, allocations: 7.938 kB / 1.037 GB, free: 1.051 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.546e-06/0.812, allocations: 4 kB / 1.037 GB, free: 1.047 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.812, allocations: 0 / 1.037 GB, free: 1.047 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006381/0.8127, allocations: 0.5203 MB / 1.038 GB, free: 0.5039 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001221/0.8128, allocations: 140.5 kB / 1.038 GB, free: 356 kB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.504e-05/0.8128, allocations: 7.938 kB / 1.038 GB, free: 348 kB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001606/0.813, allocations: 15.98 kB / 1.038 GB, free: 332 kB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.616e-05/0.8131, allocations: 39.89 kB / 1.038 GB, free: 292 kB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.64e-05/0.8131, allocations: 12 kB / 1.038 GB, free: 280 kB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0004829/0.8136, allocations: 431.1 kB / 1.038 GB, free: 15.86 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.7e-07/0.8136, allocations: 4 kB / 1.038 GB, free: 15.85 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.000455/0.8141, allocations: 115.8 kB / 1.038 GB, free: 15.74 MB / 0.795 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.001039/0.8151, allocations: 1.096 MB / 1.039 GB, free: 14.61 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0005329/0.8157, allocations: 355.9 kB / 1.04 GB, free: 14.26 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.8157, allocations: 0 / 1.04 GB, free: 14.26 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0002327/0.8159, allocations: 195.7 kB / 1.04 GB, free: 14.07 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003305/0.8163, allocations: 34.72 kB / 1.04 GB, free: 14.04 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006941/0.8232, allocations: 4.498 MB / 1.044 GB, free: 9.352 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006546/0.8239, allocations: 0.8389 MB / 1.045 GB, free: 8.488 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0004262/0.8244, allocations: 91.42 kB / 1.045 GB, free: 8.398 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002217/0.8246, allocations: 135.3 kB / 1.045 GB, free: 8.266 MB / 0.795 GB Notification: Performance of SimCode: time 7.82e-07/0.8246, allocations: 4 kB / 1.045 GB, free: 8.262 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02473/0.8494, allocations: 10.95 MB / 1.056 GB, free: 13.59 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000227/0.8496, allocations: 222.6 kB / 1.056 GB, free: 13.33 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.96/2.81, allocations: 0 / 1.056 GB, free: 13.33 MB / 0.8106 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_TimeTable_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_TimeTable.fmu > 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/jenkins1/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