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.001757/0.001756, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002258/0.002258, allocations: 194.9 kB / 16.53 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.368/1.368, allocations: 222.9 MB / 240.2 MB, free: 4.395 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.394/2.394, allocations: 390.2 MB / 0.6647 GB, free: 244 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001837/0.001837, allocations: 59.91 kB / 0.8127 GB, free: 14.12 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6436/0.6455, allocations: 140.4 MB / 0.9497 GB, free: 9.219 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable): time 0.001889/0.6474, allocations: 0.6568 MB / 0.9504 GB, free: 8.715 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001491/0.6489, allocations: 1.35 MB / 0.9517 GB, free: 7.637 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.412e-05/0.649, allocations: 1.219 kB / 0.9517 GB, free: 7.637 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.000391/0.6494, allocations: 190.2 kB / 0.9519 GB, free: 7.535 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 9.403e-05/0.6495, allocations: 108.6 kB / 0.952 GB, free: 7.473 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005558/0.6501, allocations: 225.6 kB / 0.9522 GB, free: 7.324 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0004041/0.6505, allocations: 479.2 kB / 0.9527 GB, free: 7.078 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.175e-05/0.6505, allocations: 5.125 kB / 0.9527 GB, free: 7.078 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001904/0.6507, allocations: 206.6 kB / 0.9529 GB, free: 6.992 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000284/0.651, allocations: 203.5 kB / 0.9531 GB, free: 6.895 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 9.662e-05/0.6511, allocations: 21.75 kB / 0.9531 GB, free: 6.895 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002119/0.6513, allocations: 85.06 kB / 0.9532 GB, free: 6.859 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0003036/0.6516, allocations: 259.7 kB / 0.9534 GB, free: 6.711 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.000166/0.6518, allocations: 146.3 kB / 0.9536 GB, free: 6.609 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0004262/0.6522, allocations: 483.9 kB / 0.954 GB, free: 6.305 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.6523, allocations: 1.344 kB / 0.954 GB, free: 6.305 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.533e-06/0.6523, allocations: 0 / 0.954 GB, free: 6.305 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.432e-06/0.6523, allocations: 0 / 0.954 GB, free: 6.305 MB / 0.7169 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.000823/0.6531, allocations: 0.6325 MB / 0.9546 GB, free: 5.754 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.365e-05/0.6531, allocations: 8.5 kB / 0.9546 GB, free: 5.754 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.497e-05/0.6532, allocations: 37.62 kB / 0.9547 GB, free: 5.711 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001178/0.6533, allocations: 37.19 kB / 0.9547 GB, free: 5.691 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003955/0.6537, allocations: 376.2 kB / 0.9551 GB, free: 5.383 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.701e-05/0.6537, allocations: 13.19 kB / 0.9551 GB, free: 5.379 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.691e-05/0.6538, allocations: 21.19 kB / 0.9551 GB, free: 5.375 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000242/0.6541, allocations: 191.5 kB / 0.9553 GB, free: 5.246 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.817e-06/0.6541, allocations: 5.828 kB / 0.9553 GB, free: 5.242 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.718e-05/0.6541, allocations: 0 / 0.9553 GB, free: 5.242 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.344e-06/0.6541, allocations: 5.781 kB / 0.9553 GB, free: 5.238 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001446/0.6543, allocations: 109.5 kB / 0.9554 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003177/0.6546, allocations: 386.4 kB / 0.9558 GB, free: 4.832 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000364/0.655, allocations: 325 kB / 0.9561 GB, free: 4.648 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001478/0.6551, allocations: 133.9 kB / 0.9562 GB, free: 4.574 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 8.886e-06/0.6551, allocations: 5.281 kB / 0.9562 GB, free: 4.57 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003686/0.6555, allocations: 285.5 kB / 0.9565 GB, free: 4.387 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=18): time 1.283e-06/0.6555, allocations: 0 / 0.9565 GB, free: 4.387 MB / 0.7169 GB Notification: Performance of matching and sorting (n=18): time 0.000763/0.6563, allocations: 0.4892 MB / 0.957 GB, free: 4.188 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.154e-05/0.6563, allocations: 111.7 kB / 0.9571 GB, free: 4.059 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004003/0.6567, allocations: 398.5 kB / 0.9574 GB, free: 3.836 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 5.582e-05/0.6568, allocations: 44.22 kB / 0.9575 GB, free: 3.793 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001116/0.6569, allocations: 156.4 kB / 0.9576 GB, free: 3.652 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.511e-05/0.657, allocations: 42.03 kB / 0.9577 GB, free: 3.617 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001531/0.6571, allocations: 112.7 kB / 0.9578 GB, free: 3.551 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.619e-05/0.6572, allocations: 344.6 kB / 0.9581 GB, free: 3.215 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001198/0.6573, allocations: 86.17 kB / 0.9582 GB, free: 3.184 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004086/0.6577, allocations: 467.5 kB / 0.9586 GB, free: 2.754 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002367/0.658, allocations: 251 kB / 0.9589 GB, free: 2.555 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.917e-06/0.658, allocations: 5.156 kB / 0.9589 GB, free: 2.551 MB / 0.7169 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004558/0.6584, allocations: 333.2 kB / 0.9592 GB, free: 2.391 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.551e-05/0.6585, allocations: 6.688 kB / 0.9592 GB, free: 2.391 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.428e-06/0.6585, allocations: 9.219 kB / 0.9592 GB, free: 2.387 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.901e-05/0.6585, allocations: 3.562 kB / 0.9592 GB, free: 2.387 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001554/0.6587, allocations: 32.59 kB / 0.9593 GB, free: 2.375 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.084e-05/0.6587, allocations: 12.61 kB / 0.9593 GB, free: 2.367 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000779/0.6595, allocations: 72.77 kB / 0.9593 GB, free: 2.328 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.231e-05/0.6595, allocations: 9.75 kB / 0.9593 GB, free: 2.328 MB / 0.7169 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.0001955/0.6597, allocations: 195.4 kB / 0.9595 GB, free: 2.172 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.111e-05/0.6598, allocations: 28.77 kB / 0.9596 GB, free: 2.156 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.604e-05/0.6598, allocations: 33.2 kB / 0.9596 GB, free: 2.137 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.101e-06/0.6598, allocations: 6.734 kB / 0.9596 GB, free: 2.133 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.338e-06/0.6598, allocations: 5.344 kB / 0.9596 GB, free: 2.129 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.43e-06/0.6599, allocations: 9.141 kB / 0.9596 GB, free: 2.121 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002478/0.6601, allocations: 284.3 kB / 0.9599 GB, free: 1.848 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.6601, allocations: 0 / 0.9599 GB, free: 1.848 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.662e-05/0.6601, allocations: 10.61 kB / 0.9599 GB, free: 1.84 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.505e-06/0.6602, allocations: 2.781 kB / 0.9599 GB, free: 1.84 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.53e-05/0.6602, allocations: 8.031 kB / 0.9599 GB, free: 1.836 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.6602, allocations: 1.188 kB / 0.9599 GB, free: 1.836 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.6602, allocations: 1.438 kB / 0.9599 GB, free: 1.836 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004751/0.6607, allocations: 439 kB / 0.9603 GB, free: 1.609 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 4.518e-05/0.6607, allocations: 102.4 kB / 0.9604 GB, free: 1.5 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.966e-05/0.6608, allocations: 6.406 kB / 0.9604 GB, free: 1.496 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.529e-05/0.6609, allocations: 1.188 kB / 0.9604 GB, free: 1.496 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.566e-05/0.6609, allocations: 19.28 kB / 0.9604 GB, free: 1.484 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.349e-05/0.6609, allocations: 11.25 kB / 0.9605 GB, free: 1.484 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0002515/0.6612, allocations: 291.4 kB / 0.9607 GB, free: 1.32 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.4e-07/0.6612, allocations: 8.688 kB / 0.9607 GB, free: 1.312 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003892/0.6616, allocations: 79.61 kB / 0.9608 GB, free: 1.297 MB / 0.7169 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.0007678/0.6624, allocations: 1.004 MB / 0.9618 GB, free: 0.5273 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004408/0.6628, allocations: 264.9 kB / 0.9621 GB, free: 440 kB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.6628, allocations: 1.219 kB / 0.9621 GB, free: 440 kB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001883/0.663, allocations: 143.3 kB / 0.9622 GB, free: 380 kB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000276/0.6633, allocations: 31.83 kB / 0.9622 GB, free: 360 kB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003862/0.6672, allocations: 3.261 MB / 0.9654 GB, free: 14.1 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003043/0.6675, allocations: 0.7717 MB / 0.9662 GB, free: 13.36 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001529/0.6677, allocations: 50.09 kB / 0.9662 GB, free: 13.34 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000124/0.6678, allocations: 83.16 kB / 0.9663 GB, free: 13.27 MB / 0.7325 GB Notification: Performance of SimCode: time 7.01e-07/0.6678, allocations: 4 kB / 0.9663 GB, free: 13.27 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02678/0.6946, allocations: 7.515 MB / 0.9736 GB, free: 8.691 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.037/8.732, allocations: 7.297 kB / 0.9736 GB, free: 8.688 MB / 0.7325 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