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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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: 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_latest_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_latest_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.001479/0.00148, allocations: 98.77 kB / 16.27 MB, free: 5.969 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.001535/0.001535, allocations: 195.4 kB / 17.2 MB, free: 5.594 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.428/1.428, 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 11.0.1-master/package.mo): time 2.768/2.768, allocations: 469.4 MB / 0.7426 GB, free: 3.652 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001875/0.001875, allocations: 66.73 kB / 0.9088 GB, free: 14.11 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3607/0.3626, allocations: 159.1 MB / 1.064 GB, free: 15.01 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable): time 0.002009/0.3647, allocations: 0.6781 MB / 1.065 GB, free: 14.33 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001937/0.3666, allocations: 1.349 MB / 1.066 GB, free: 12.96 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.394e-05/0.3667, allocations: 4 kB / 1.066 GB, free: 12.96 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0005237/0.3673, allocations: 191.5 kB / 1.066 GB, free: 12.77 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0001383/0.3675, allocations: 95.73 kB / 1.067 GB, free: 12.68 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008217/0.3683, allocations: 234.2 kB / 1.067 GB, free: 12.45 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0006258/0.3689, allocations: 479.8 kB / 1.067 GB, free: 11.98 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 6.129e-05/0.369, allocations: 4 kB / 1.067 GB, free: 11.98 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003609/0.3694, allocations: 207.6 kB / 1.067 GB, free: 11.78 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004195/0.3698, allocations: 203.6 kB / 1.068 GB, free: 11.58 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.0001364/0.37, allocations: 20 kB / 1.068 GB, free: 11.56 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002483/0.3702, allocations: 79.94 kB / 1.068 GB, free: 11.48 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0003691/0.3706, allocations: 263.5 kB / 1.068 GB, free: 11.22 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0002329/0.3708, allocations: 147.3 kB / 1.068 GB, free: 11.08 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0005774/0.3714, allocations: 467 kB / 1.069 GB, free: 10.62 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.3714, allocations: 4 kB / 1.069 GB, free: 10.62 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.214e-06/0.3715, allocations: 7.938 kB / 1.069 GB, free: 10.61 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 1.087e-05/0.3715, allocations: 3.938 kB / 1.069 GB, free: 10.61 MB / 0.8419 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.001031/0.3725, allocations: 0.6346 MB / 1.069 GB, free: 9.918 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.67e-05/0.3725, allocations: 8.625 kB / 1.069 GB, free: 9.91 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000151/0.3727, allocations: 32.66 kB / 1.069 GB, free: 9.879 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005418/0.3733, allocations: 388 kB / 1.07 GB, free: 9.461 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.225e-05/0.3733, allocations: 8.375 kB / 1.07 GB, free: 9.453 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.988e-05/0.3734, allocations: 24.38 kB / 1.07 GB, free: 9.43 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003054/0.3737, allocations: 188.6 kB / 1.07 GB, free: 9.23 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.136e-06/0.3737, allocations: 192 / 1.07 GB, free: 9.23 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.35e-05/0.3737, allocations: 11.92 kB / 1.07 GB, free: 9.219 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.779e-06/0.3737, allocations: 0 / 1.07 GB, free: 9.219 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001778/0.3739, allocations: 103.9 kB / 1.07 GB, free: 9.117 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004482/0.3744, allocations: 383.2 kB / 1.07 GB, free: 8.688 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004375/0.3748, allocations: 315.6 kB / 1.071 GB, free: 8.352 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001923/0.375, allocations: 126.5 kB / 1.071 GB, free: 8.219 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 1.302e-05/0.375, allocations: 11.98 kB / 1.071 GB, free: 8.207 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004333/0.3755, allocations: 283.6 kB / 1.071 GB, free: 7.91 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=18): time 1.764e-06/0.3755, allocations: 4 kB / 1.071 GB, free: 7.906 MB / 0.8419 GB Notification: Performance of matching and sorting (n=18): time 0.0007855/0.3763, allocations: 0.4971 MB / 1.071 GB, free: 7.402 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.95e-05/0.3764, allocations: 110.8 kB / 1.072 GB, free: 7.27 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004066/0.3768, allocations: 396.5 kB / 1.072 GB, free: 6.871 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 6.627e-05/0.3769, allocations: 41.7 kB / 1.072 GB, free: 6.824 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001253/0.377, allocations: 148.8 kB / 1.072 GB, free: 6.676 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 4.718e-05/0.377, allocations: 51.38 kB / 1.072 GB, free: 6.625 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000155/0.3772, allocations: 113.6 kB / 1.072 GB, free: 6.508 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001162/0.3773, allocations: 350.8 kB / 1.073 GB, free: 6.156 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001212/0.3775, allocations: 87.89 kB / 1.073 GB, free: 6.07 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004908/0.378, allocations: 468.2 kB / 1.073 GB, free: 5.488 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002846/0.3782, allocations: 249.5 kB / 1.073 GB, free: 5.195 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.3783, allocations: 0 / 1.073 GB, free: 5.195 MB / 0.8419 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004981/0.3788, allocations: 328.8 kB / 1.074 GB, free: 4.867 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.02e-05/0.3788, allocations: 11.94 kB / 1.074 GB, free: 4.855 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.215e-06/0.3788, allocations: 4.406 kB / 1.074 GB, free: 4.852 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.964e-05/0.3788, allocations: 8 kB / 1.074 GB, free: 4.844 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001596/0.379, allocations: 31.86 kB / 1.074 GB, free: 4.812 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.423e-05/0.379, allocations: 11.98 kB / 1.074 GB, free: 4.801 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007646/0.3798, allocations: 70.55 kB / 1.074 GB, free: 4.734 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.145e-05/0.3798, allocations: 12 kB / 1.074 GB, free: 4.723 MB / 0.8419 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.0002048/0.38, allocations: 199.9 kB / 1.074 GB, free: 4.52 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.818e-05/0.3801, allocations: 27.66 kB / 1.074 GB, free: 4.492 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.994e-05/0.3801, allocations: 37.89 kB / 1.074 GB, free: 4.457 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.765e-06/0.3802, allocations: 0 / 1.074 GB, free: 4.457 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.134e-06/0.3802, allocations: 4 kB / 1.074 GB, free: 4.453 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.838e-06/0.3802, allocations: 240 / 1.074 GB, free: 4.453 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000263/0.3804, allocations: 281.4 kB / 1.074 GB, free: 4.129 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.678e-06/0.3805, allocations: 7.938 kB / 1.074 GB, free: 4.121 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.958e-05/0.3805, allocations: 15.84 kB / 1.074 GB, free: 4.105 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.098e-06/0.3805, allocations: 8 kB / 1.074 GB, free: 4.098 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.639e-05/0.3805, allocations: 8 kB / 1.074 GB, free: 4.09 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.003e-06/0.3805, allocations: 0 / 1.074 GB, free: 4.09 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.3805, allocations: 0 / 1.074 GB, free: 4.09 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005217/0.3811, allocations: 426.4 kB / 1.075 GB, free: 3.648 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 7.086e-05/0.3811, allocations: 104.8 kB / 1.075 GB, free: 3.527 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.956e-05/0.3812, allocations: 12 kB / 1.075 GB, free: 3.516 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.345e-05/0.3813, allocations: 0 / 1.075 GB, free: 3.516 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.483e-05/0.3813, allocations: 23.91 kB / 1.075 GB, free: 3.492 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.664e-05/0.3814, allocations: 16 kB / 1.075 GB, free: 3.477 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0002946/0.3817, allocations: 287 kB / 1.075 GB, free: 3.195 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3817, allocations: 0 / 1.075 GB, free: 3.195 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003837/0.3821, allocations: 76 kB / 1.075 GB, free: 3.121 MB / 0.8419 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.0002256/0.3823, allocations: 144.9 kB / 1.075 GB, free: 2.969 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.00042/0.3827, allocations: 267.6 kB / 1.076 GB, free: 2.707 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.3827, allocations: 0 / 1.076 GB, free: 2.707 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0002468/0.383, allocations: 167.9 kB / 1.076 GB, free: 2.543 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000265/0.3833, allocations: 34.8 kB / 1.076 GB, free: 2.512 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009079/0.3842, allocations: 0.6096 MB / 1.076 GB, free: 1.863 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003002/0.3845, allocations: 0.7713 MB / 1.077 GB, free: 1.066 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.775e-05/0.3846, allocations: 27.44 kB / 1.077 GB, free: 1.039 MB / 0.8419 GB Notification: Performance of SimCode: time 3.5e-07/0.3846, allocations: 4 kB / 1.077 GB, free: 1.035 MB / 0.8419 GB Notification: Performance of Templates: time 0.591/0.9756, allocations: 4.289 MB / 1.081 GB, free: 21.62 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable.makefile (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 & ./Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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.mat","/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