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.00673/0.00673, allocations: 101.7 kB / 15.73 MB, free: 6.059 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.001707/0.001707, allocations: 196.3 kB / 16.68 MB, free: 5.969 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.345/1.345, allocations: 222.9 MB / 240.4 MB, free: 4.172 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.694/2.694, allocations: 472.7 MB / 0.7453 GB, free: 4.531 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001298/0.001298, allocations: 71.88 kB / 1.069 GB, free: 9.637 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2664/0.2677, allocations: 159.9 MB / 1.225 GB, free: 9.625 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable): time 0.001621/0.2694, allocations: 0.6976 MB / 1.226 GB, free: 8.93 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001563/0.271, allocations: 1.338 MB / 1.227 GB, free: 7.578 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.8e-05/0.271, allocations: 3.938 kB / 1.227 GB, free: 7.574 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0004119/0.2715, allocations: 187.6 kB / 1.227 GB, free: 7.391 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0001119/0.2716, allocations: 103.7 kB / 1.227 GB, free: 7.289 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006382/0.2722, allocations: 226.5 kB / 1.228 GB, free: 7.07 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0004942/0.2727, allocations: 0.4996 MB / 1.228 GB, free: 6.57 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 3.842e-05/0.2728, allocations: 7.984 kB / 1.228 GB, free: 6.562 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001899/0.273, allocations: 207.7 kB / 1.228 GB, free: 6.359 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002783/0.2733, allocations: 203.6 kB / 1.229 GB, free: 6.16 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 6.126e-05/0.2733, allocations: 20 kB / 1.229 GB, free: 6.141 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001781/0.2735, allocations: 79.89 kB / 1.229 GB, free: 6.062 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0003427/0.2739, allocations: 267.5 kB / 1.229 GB, free: 5.801 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001728/0.2741, allocations: 151.3 kB / 1.229 GB, free: 5.652 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0004489/0.2745, allocations: 466.6 kB / 1.23 GB, free: 5.195 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.2745, allocations: 7.922 kB / 1.23 GB, free: 5.188 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.633e-06/0.2745, allocations: 0 / 1.23 GB, free: 5.188 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 8.456e-06/0.2745, allocations: 0 / 1.23 GB, free: 5.188 MB / 0.9825 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.0008915/0.2754, allocations: 0.6499 MB / 1.23 GB, free: 4.484 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.107e-05/0.2755, allocations: 15.97 kB / 1.23 GB, free: 4.469 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.802e-05/0.2755, allocations: 34.75 kB / 1.23 GB, free: 4.426 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001042/0.2756, allocations: 32.8 kB / 1.23 GB, free: 4.395 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004694/0.2761, allocations: 388.2 kB / 1.231 GB, free: 3.973 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.046e-05/0.2761, allocations: 16.36 kB / 1.231 GB, free: 3.957 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.314e-05/0.2762, allocations: 20.38 kB / 1.231 GB, free: 3.938 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000277/0.2765, allocations: 180.7 kB / 1.231 GB, free: 3.746 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.866e-06/0.2765, allocations: 3.938 kB / 1.231 GB, free: 3.742 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.875e-05/0.2765, allocations: 11.98 kB / 1.231 GB, free: 3.73 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.173e-06/0.2765, allocations: 0 / 1.231 GB, free: 3.73 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001641/0.2767, allocations: 107.9 kB / 1.231 GB, free: 3.625 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003829/0.2771, allocations: 383.1 kB / 1.231 GB, free: 3.195 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004289/0.2775, allocations: 323.6 kB / 1.232 GB, free: 2.852 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001611/0.2777, allocations: 118.6 kB / 1.232 GB, free: 2.727 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 9.799e-06/0.2777, allocations: 7.984 kB / 1.232 GB, free: 2.719 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003756/0.2781, allocations: 278.8 kB / 1.232 GB, free: 2.426 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=18): time 1.422e-06/0.2781, allocations: 0 / 1.232 GB, free: 2.426 MB / 0.9825 GB Notification: Performance of matching and sorting (n=18): time 0.0007684/0.2789, allocations: 0.5054 MB / 1.232 GB, free: 1.914 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.757e-05/0.279, allocations: 118.8 kB / 1.233 GB, free: 1.773 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003935/0.2794, allocations: 400.5 kB / 1.233 GB, free: 1.371 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 5.425e-05/0.2794, allocations: 37.7 kB / 1.233 GB, free: 1.328 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001216/0.2796, allocations: 152.8 kB / 1.233 GB, free: 1.172 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.698e-05/0.2796, allocations: 43.62 kB / 1.233 GB, free: 1.129 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001651/0.2798, allocations: 125.5 kB / 1.233 GB, free: 1 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001098/0.2799, allocations: 342.8 kB / 1.234 GB, free: 0.6562 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001195/0.28, allocations: 83.95 kB / 1.234 GB, free: 0.5742 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004628/0.2805, allocations: 467 kB / 1.234 GB, free: 15.99 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002754/0.2808, allocations: 265.4 kB / 1.234 GB, free: 15.68 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.2808, allocations: 0 / 1.234 GB, free: 15.68 MB / 0.9981 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004667/0.2812, allocations: 325.1 kB / 1.235 GB, free: 15.36 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.486e-05/0.2813, allocations: 11.94 kB / 1.235 GB, free: 15.35 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.2813, allocations: 4 kB / 1.235 GB, free: 15.34 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.255e-05/0.2813, allocations: 7.938 kB / 1.235 GB, free: 15.34 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001367/0.2814, allocations: 31.92 kB / 1.235 GB, free: 15.3 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.177e-05/0.2815, allocations: 15.92 kB / 1.235 GB, free: 15.29 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007424/0.2822, allocations: 62.53 kB / 1.235 GB, free: 15.23 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.102e-05/0.2822, allocations: 16 kB / 1.235 GB, free: 15.21 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.0001755/0.2824, allocations: 196.5 kB / 1.235 GB, free: 15.02 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.129e-05/0.2825, allocations: 31.75 kB / 1.235 GB, free: 14.98 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.69e-05/0.2825, allocations: 33.89 kB / 1.235 GB, free: 14.95 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/0.2825, allocations: 4 kB / 1.235 GB, free: 14.95 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.2825, allocations: 4 kB / 1.235 GB, free: 14.95 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.537e-06/0.2826, allocations: 0 / 1.235 GB, free: 14.95 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002381/0.2828, allocations: 289.4 kB / 1.235 GB, free: 14.61 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.2828, allocations: 4 kB / 1.235 GB, free: 14.61 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.569e-05/0.2828, allocations: 4 kB / 1.235 GB, free: 14.61 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.336e-06/0.2828, allocations: 3.938 kB / 1.235 GB, free: 14.6 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.681e-05/0.2829, allocations: 7.984 kB / 1.235 GB, free: 14.59 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.2829, allocations: 0 / 1.235 GB, free: 14.59 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.2829, allocations: 8 kB / 1.235 GB, free: 14.59 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005209/0.2834, allocations: 436.2 kB / 1.236 GB, free: 14.14 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.506e-05/0.2835, allocations: 116.9 kB / 1.236 GB, free: 14 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.786e-05/0.2835, allocations: 4 kB / 1.236 GB, free: 14 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.571e-05/0.2836, allocations: 4 kB / 1.236 GB, free: 14 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.601e-05/0.2837, allocations: 15.98 kB / 1.236 GB, free: 13.98 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.591e-05/0.2837, allocations: 15.98 kB / 1.236 GB, free: 13.96 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0002763/0.284, allocations: 291 kB / 1.236 GB, free: 13.68 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.5e-07/0.284, allocations: 0 / 1.236 GB, free: 13.68 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0003574/0.2844, allocations: 79.88 kB / 1.236 GB, free: 13.61 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.0008373/0.2852, allocations: 0.9926 MB / 1.237 GB, free: 12.57 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0003797/0.2856, allocations: 263.6 kB / 1.238 GB, free: 12.32 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.2856, allocations: 0 / 1.238 GB, free: 12.32 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001866/0.2858, allocations: 143.9 kB / 1.238 GB, free: 12.18 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002591/0.2861, allocations: 32.03 kB / 1.238 GB, free: 12.15 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003287/0.2894, allocations: 3.253 MB / 1.241 GB, free: 8.707 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002771/0.2896, allocations: 0.7674 MB / 1.242 GB, free: 7.914 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001082/0.2898, allocations: 45.95 kB / 1.242 GB, free: 7.867 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001202/0.2899, allocations: 83.39 kB / 1.242 GB, free: 7.785 MB / 0.9981 GB Notification: Performance of SimCode: time 2.31e-07/0.2899, allocations: 0 / 1.242 GB, free: 7.785 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02394/0.3138, allocations: 7.614 MB / 1.249 GB, free: 416 kB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.688/8.002, allocations: 9.125 kB / 1.249 GB, free: 412 kB / 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 50 --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