Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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.Integers.Sources.Validation.TimeTable,fileNamePrefix="Buildings_9_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_9_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.008348/0.008348, allocations: 101.3 kB / 15.73 MB, free: 5.508 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.001951/0.001951, allocations: 195.7 kB / 16.67 MB, free: 5.438 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.629/1.629, allocations: 222.9 MB / 240.4 MB, free: 4.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.54/2.54, allocations: 390.2 MB / 0.6648 GB, free: 228 kB / 0.5138 GB Notification: Performance of FrontEnd - loaded program: time 0.002441/0.002441, allocations: 67.72 kB / 0.9504 GB, free: 5.941 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3447/0.3472, allocations: 140.4 MB / 1.087 GB, free: 1.977 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable): time 0.001963/0.3492, allocations: 0.6706 MB / 1.088 GB, free: 1.309 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.00183/0.3511, allocations: 1.348 MB / 1.089 GB, free: 15.95 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.467e-05/0.3512, allocations: 4 kB / 1.089 GB, free: 15.94 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.000479/0.3517, allocations: 187.5 kB / 1.09 GB, free: 15.76 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001259/0.3518, allocations: 99.73 kB / 1.09 GB, free: 15.66 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007629/0.3526, allocations: 236.7 kB / 1.09 GB, free: 15.43 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0005808/0.3532, allocations: 491.7 kB / 1.09 GB, free: 14.95 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 4.771e-05/0.3532, allocations: 8 kB / 1.09 GB, free: 14.94 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003571/0.3536, allocations: 215.6 kB / 1.091 GB, free: 14.73 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000409/0.354, allocations: 199.6 kB / 1.091 GB, free: 14.54 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0001373/0.3542, allocations: 20 kB / 1.091 GB, free: 14.52 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002587/0.3544, allocations: 83.94 kB / 1.091 GB, free: 14.43 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0003951/0.3548, allocations: 259.5 kB / 1.091 GB, free: 14.18 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0002548/0.3551, allocations: 147.3 kB / 1.091 GB, free: 14.04 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0006316/0.3557, allocations: 482.7 kB / 1.092 GB, free: 13.56 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.3558, allocations: 7.875 kB / 1.092 GB, free: 13.55 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.332e-06/0.3558, allocations: 4 kB / 1.092 GB, free: 13.55 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.452e-05/0.3558, allocations: 0 / 1.092 GB, free: 13.55 MB / 0.8575 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.001246/0.357, allocations: 0.6402 MB / 1.092 GB, free: 12.86 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.269e-05/0.3571, allocations: 8.031 kB / 1.092 GB, free: 12.86 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.241e-05/0.3571, allocations: 42.75 kB / 1.092 GB, free: 12.8 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001625/0.3573, allocations: 32.75 kB / 1.093 GB, free: 12.77 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006562/0.358, allocations: 384.3 kB / 1.093 GB, free: 12.36 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.133e-05/0.358, allocations: 12.38 kB / 1.093 GB, free: 12.35 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.104e-05/0.3581, allocations: 28.12 kB / 1.093 GB, free: 12.32 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003156/0.3584, allocations: 188.1 kB / 1.093 GB, free: 12.12 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.977e-06/0.3584, allocations: 3.984 kB / 1.093 GB, free: 12.12 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.944e-05/0.3585, allocations: 4 kB / 1.093 GB, free: 12.12 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.504e-06/0.3585, allocations: 3.984 kB / 1.093 GB, free: 12.11 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001653/0.3586, allocations: 111.9 kB / 1.093 GB, free: 12 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004421/0.3591, allocations: 383.2 kB / 1.094 GB, free: 11.57 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004502/0.3596, allocations: 315.6 kB / 1.094 GB, free: 11.24 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001653/0.3597, allocations: 126.5 kB / 1.094 GB, free: 11.11 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 7.494e-06/0.3597, allocations: 8 kB / 1.094 GB, free: 11.1 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004369/0.3602, allocations: 277.6 kB / 1.094 GB, free: 10.8 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=18): time 1.402e-06/0.3602, allocations: 4 kB / 1.094 GB, free: 10.8 MB / 0.8575 GB Notification: Performance of matching and sorting (n=18): time 0.0008632/0.3611, allocations: 0.4895 MB / 1.095 GB, free: 10.3 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.244e-05/0.3611, allocations: 114.8 kB / 1.095 GB, free: 10.17 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004956/0.3617, allocations: 396.5 kB / 1.095 GB, free: 9.766 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 7.626e-05/0.3617, allocations: 45.69 kB / 1.095 GB, free: 9.715 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001576/0.3619, allocations: 148.7 kB / 1.095 GB, free: 9.566 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 5.478e-05/0.362, allocations: 47.66 kB / 1.095 GB, free: 9.52 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001954/0.3622, allocations: 117.6 kB / 1.096 GB, free: 9.398 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001532/0.3623, allocations: 346.8 kB / 1.096 GB, free: 9.051 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001441/0.3625, allocations: 83.95 kB / 1.096 GB, free: 8.969 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005271/0.363, allocations: 469.9 kB / 1.096 GB, free: 8.387 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003013/0.3633, allocations: 249.5 kB / 1.097 GB, free: 8.094 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-06/0.3633, allocations: 3.938 kB / 1.097 GB, free: 8.09 MB / 0.8575 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005362/0.3639, allocations: 340.9 kB / 1.097 GB, free: 7.75 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.8e-05/0.3639, allocations: 4.406 kB / 1.097 GB, free: 7.746 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.968e-06/0.3639, allocations: 8.125 kB / 1.097 GB, free: 7.738 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.028e-05/0.3639, allocations: 8 kB / 1.097 GB, free: 7.73 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001549/0.3641, allocations: 35.91 kB / 1.097 GB, free: 7.695 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.117e-05/0.3641, allocations: 4 kB / 1.097 GB, free: 7.691 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00079/0.3649, allocations: 64.72 kB / 1.097 GB, free: 7.629 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.481e-05/0.3649, allocations: 15.98 kB / 1.097 GB, free: 7.613 MB / 0.8575 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.0002254/0.3652, allocations: 203.9 kB / 1.097 GB, free: 7.402 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001079/0.3653, allocations: 27.81 kB / 1.097 GB, free: 7.375 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.803e-05/0.3654, allocations: 33.89 kB / 1.097 GB, free: 7.344 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.619e-06/0.3654, allocations: 4 kB / 1.097 GB, free: 7.34 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.104e-06/0.3654, allocations: 0 / 1.097 GB, free: 7.34 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.701e-06/0.3654, allocations: 3.984 kB / 1.097 GB, free: 7.336 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002757/0.3657, allocations: 293.3 kB / 1.098 GB, free: 7 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.3657, allocations: 0 / 1.098 GB, free: 7 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.843e-05/0.3657, allocations: 15.92 kB / 1.098 GB, free: 6.984 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.915e-06/0.3657, allocations: 0 / 1.098 GB, free: 6.984 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.708e-05/0.3657, allocations: 8 kB / 1.098 GB, free: 6.977 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.853e-06/0.3657, allocations: 0 / 1.098 GB, free: 6.977 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.3657, allocations: 4 kB / 1.098 GB, free: 6.973 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005371/0.3663, allocations: 439.6 kB / 1.098 GB, free: 6.52 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002066/0.3665, allocations: 105 kB / 1.098 GB, free: 6.398 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.999e-05/0.3666, allocations: 4 kB / 1.098 GB, free: 6.395 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.256e-05/0.3667, allocations: 4 kB / 1.098 GB, free: 6.391 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.25e-05/0.3667, allocations: 19.97 kB / 1.098 GB, free: 6.371 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.871e-05/0.3667, allocations: 12 kB / 1.098 GB, free: 6.359 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0003032/0.367, allocations: 291 kB / 1.099 GB, free: 6.074 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3671, allocations: 0 / 1.099 GB, free: 6.074 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0004041/0.3675, allocations: 83.86 kB / 1.099 GB, free: 5.992 MB / 0.8575 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.0009663/0.3684, allocations: 1.006 MB / 1.1 GB, free: 4.949 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0004426/0.3689, allocations: 252.4 kB / 1.1 GB, free: 4.703 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.3689, allocations: 0 / 1.1 GB, free: 4.703 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001921/0.3691, allocations: 151.9 kB / 1.1 GB, free: 4.555 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002798/0.3694, allocations: 32.7 kB / 1.1 GB, free: 4.523 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003917/0.3733, allocations: 3.253 MB / 1.103 GB, free: 1.07 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003891/0.3737, allocations: 0.7674 MB / 1.104 GB, free: 284 kB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0001341/0.3739, allocations: 58.05 kB / 1.104 GB, free: 228 kB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001442/0.374, allocations: 87.34 kB / 1.104 GB, free: 144 kB / 0.8575 GB Notification: Performance of SimCode: time 5.41e-07/0.374, allocations: 0 / 1.104 GB, free: 144 kB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03073/0.4048, allocations: 7.586 MB / 1.111 GB, free: 8.773 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.889/9.294, allocations: 8.047 kB / 1.112 GB, free: 8.766 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable_res.csv --start-time 0 --stop-time 15 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.006 Buildings_9_Buildings_Controls_OBC_CDL_Integers_Sources_Validation_TimeTable.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Integers_Sources_Validation_TimeTable.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches