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: translateModel(Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|intTimTab.y.1.|intTimTab.y.2.|intTimTab1.y.1.|intTimTab1.y.2.|tabOneRow.y.1.",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable") translateModel(Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|intTimTab.y.1.|intTimTab.y.2.|intTimTab1.y.1.|intTimTab1.y.2.|tabOneRow.y.1.",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001164/0.001164, allocations: 107.6 kB / 16.27 MB, free: 6.41 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.001217/0.001217, allocations: 190.3 kB / 17.2 MB, free: 5.953 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.347/1.347, allocations: 222.9 MB / 240.9 MB, free: 15.24 MB / 206.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.285/2.285, allocations: 390.3 MB / 0.6653 GB, free: 0.7305 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001312/0.001312, allocations: 63.47 kB / 0.8132 GB, free: 33.03 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2817/0.283, allocations: 140.4 MB / 0.9503 GB, free: 8.867 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable): time 0.002074/0.2852, allocations: 0.6786 MB / 0.951 GB, free: 8.18 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001981/0.2872, allocations: 1.341 MB / 0.9523 GB, free: 6.824 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.167e-05/0.2873, allocations: 7.875 kB / 0.9523 GB, free: 6.816 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0004708/0.2877, allocations: 183.6 kB / 0.9525 GB, free: 6.637 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0002053/0.288, allocations: 111.7 kB / 0.9526 GB, free: 6.527 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007829/0.2888, allocations: 223 kB / 0.9528 GB, free: 6.312 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0005345/0.2893, allocations: 475.8 kB / 0.9532 GB, free: 5.848 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 5.315e-05/0.2894, allocations: 11.98 kB / 0.9532 GB, free: 5.836 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002773/0.2897, allocations: 195.7 kB / 0.9534 GB, free: 5.645 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003805/0.2901, allocations: 211.5 kB / 0.9536 GB, free: 5.438 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.0001131/0.2902, allocations: 20 kB / 0.9536 GB, free: 5.418 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002381/0.2904, allocations: 83.88 kB / 0.9537 GB, free: 5.336 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0003681/0.2908, allocations: 259.5 kB / 0.954 GB, free: 5.082 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0002346/0.2911, allocations: 147.3 kB / 0.9541 GB, free: 4.938 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0005435/0.2916, allocations: 471 kB / 0.9546 GB, free: 4.477 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.02e-06/0.2916, allocations: 4 kB / 0.9546 GB, free: 4.473 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.683e-06/0.2917, allocations: 3.938 kB / 0.9546 GB, free: 4.469 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.521e-05/0.2917, allocations: 0 / 0.9546 GB, free: 4.469 MB / 0.7325 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.001176/0.2929, allocations: 0.6346 MB / 0.9552 GB, free: 3.785 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/0.2929, allocations: 11.97 kB / 0.9552 GB, free: 3.773 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000168/0.2931, allocations: 36.56 kB / 0.9552 GB, free: 3.738 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005898/0.2937, allocations: 384.2 kB / 0.9556 GB, free: 3.324 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.573e-05/0.2937, allocations: 12.38 kB / 0.9556 GB, free: 3.312 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.151e-05/0.2938, allocations: 24.31 kB / 0.9556 GB, free: 3.289 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003241/0.2941, allocations: 188.2 kB / 0.9558 GB, free: 3.09 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.927e-06/0.2941, allocations: 0 / 0.9558 GB, free: 3.09 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.463e-05/0.2942, allocations: 3.984 kB / 0.9558 GB, free: 3.086 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.107e-06/0.2942, allocations: 7.938 kB / 0.9558 GB, free: 3.078 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001742/0.2944, allocations: 107.9 kB / 0.9559 GB, free: 2.973 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004966/0.2949, allocations: 387.1 kB / 0.9563 GB, free: 2.539 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000449/0.2953, allocations: 315.6 kB / 0.9566 GB, free: 2.203 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001613/0.2955, allocations: 126.6 kB / 0.9567 GB, free: 2.07 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.356e-05/0.2955, allocations: 8 kB / 0.9567 GB, free: 2.062 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004535/0.296, allocations: 287.4 kB / 0.957 GB, free: 1.762 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=18): time 1.543e-06/0.296, allocations: 0 / 0.957 GB, free: 1.762 MB / 0.7325 GB Notification: Performance of matching and sorting (n=18): time 0.0008602/0.2969, allocations: 0.4938 MB / 0.9575 GB, free: 1.262 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.743e-05/0.297, allocations: 114.7 kB / 0.9576 GB, free: 1.125 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004565/0.2974, allocations: 400.4 kB / 0.958 GB, free: 0.7266 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 6.811e-05/0.2975, allocations: 41.7 kB / 0.958 GB, free: 0.6797 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001577/0.2977, allocations: 152.7 kB / 0.9582 GB, free: 0.5234 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 5.154e-05/0.2977, allocations: 43.53 kB / 0.9582 GB, free: 492 kB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001749/0.2979, allocations: 117.6 kB / 0.9583 GB, free: 368 kB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001512/0.2981, allocations: 346.8 kB / 0.9586 GB, free: 12 kB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001438/0.2982, allocations: 83.95 kB / 0.9587 GB, free: 15.93 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005401/0.2988, allocations: 470.8 kB / 0.9592 GB, free: 15.35 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003228/0.2991, allocations: 249.5 kB / 0.9594 GB, free: 15.05 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.2991, allocations: 3.938 kB / 0.9594 GB, free: 15.05 MB / 0.7481 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005458/0.2997, allocations: 333.1 kB / 0.9597 GB, free: 14.72 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.733e-05/0.2997, allocations: 16.03 kB / 0.9597 GB, free: 14.7 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.255e-06/0.2997, allocations: 4 kB / 0.9598 GB, free: 14.7 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.715e-05/0.2997, allocations: 4 kB / 0.9598 GB, free: 14.7 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001535/0.2999, allocations: 31.86 kB / 0.9598 GB, free: 14.66 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.298e-05/0.2999, allocations: 11.98 kB / 0.9598 GB, free: 14.65 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007742/0.3007, allocations: 59.97 kB / 0.9599 GB, free: 14.59 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.277e-05/0.3007, allocations: 12 kB / 0.9599 GB, free: 14.58 MB / 0.7481 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.0002277/0.301, allocations: 211.7 kB / 0.9601 GB, free: 14.36 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.724e-05/0.301, allocations: 27.62 kB / 0.9601 GB, free: 14.34 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.246e-05/0.3011, allocations: 37.89 kB / 0.9601 GB, free: 14.3 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.607e-06/0.3011, allocations: 0 / 0.9601 GB, free: 14.3 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.428e-06/0.3011, allocations: 4 kB / 0.9601 GB, free: 14.29 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.3011, allocations: 0 / 0.9601 GB, free: 14.29 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002847/0.3014, allocations: 281.7 kB / 0.9604 GB, free: 13.97 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.992e-06/0.3014, allocations: 8 kB / 0.9604 GB, free: 13.96 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.498e-05/0.3015, allocations: 4 kB / 0.9604 GB, free: 13.96 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.712e-06/0.3015, allocations: 7.984 kB / 0.9604 GB, free: 13.95 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.71e-05/0.3015, allocations: 7.984 kB / 0.9604 GB, free: 13.94 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.485e-06/0.3015, allocations: 0 / 0.9604 GB, free: 13.94 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.3015, allocations: 0 / 0.9604 GB, free: 13.94 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005529/0.3021, allocations: 442.2 kB / 0.9609 GB, free: 13.48 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 7.842e-05/0.3021, allocations: 100.8 kB / 0.9609 GB, free: 13.37 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.119e-05/0.3022, allocations: 8 kB / 0.961 GB, free: 13.36 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.507e-05/0.3023, allocations: 0 / 0.961 GB, free: 13.36 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.595e-05/0.3024, allocations: 19.97 kB / 0.961 GB, free: 13.34 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.01e-05/0.3024, allocations: 20 kB / 0.961 GB, free: 13.32 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0003004/0.3027, allocations: 291 kB / 0.9613 GB, free: 13.04 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3027, allocations: 0 / 0.9613 GB, free: 13.04 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0004184/0.3031, allocations: 76 kB / 0.9613 GB, free: 12.96 MB / 0.7481 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.0002654/0.3034, allocations: 147.1 kB / 0.9615 GB, free: 12.81 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0004474/0.3039, allocations: 262.2 kB / 0.9617 GB, free: 12.56 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.3039, allocations: 0 / 0.9617 GB, free: 12.56 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0002517/0.3041, allocations: 168.7 kB / 0.9619 GB, free: 12.39 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002903/0.3044, allocations: 36.58 kB / 0.9619 GB, free: 12.36 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001016/0.3055, allocations: 0.6095 MB / 0.9625 GB, free: 11.71 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003814/0.3058, allocations: 0.7737 MB / 0.9633 GB, free: 10.91 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.034e-05/0.3059, allocations: 31.44 kB / 0.9633 GB, free: 10.88 MB / 0.7481 GB Notification: Performance of SimCode: time 4.31e-07/0.3059, allocations: 0 / 0.9633 GB, free: 10.88 MB / 0.7481 GB Notification: Performance of Templates: time 0.00722/0.3132, allocations: 4.276 MB / 0.9675 GB, free: 6.668 MB / 0.7481 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable.makefile (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 & ./Buildings_9_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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.mat","/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