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/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.358/2.358, allocations: 390.3 MB / 405.3 MB, free: 13.43 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001107/0.001107, allocations: 173.9 kB / 498.1 MB, free: 5.672 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.589/1.589, allocations: 223.2 MB / 0.7949 GB, free: 17.79 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001011/0.001012, allocations: 94.94 kB / 0.9346 GB, free: 6.16 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003826/0.0003826, allocations: 6.938 kB / 1.084 GB, free: 221.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3403/0.3407, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1956/0.5365, allocations: 149.3 MB / 1.369 GB, free: 12.62 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002343/0.5367, allocations: 71.95 kB / 1.369 GB, free: 12.55 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.06005/0.5968, allocations: 21.35 MB / 1.39 GB, free: 7.156 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.164e-06/0.5969, allocations: 0 / 1.39 GB, free: 7.156 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 1.838e-05/0.5969, allocations: 4 kB / 1.39 GB, free: 7.152 MB / 0.8855 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.000849/0.5977, allocations: 0.5452 MB / 1.39 GB, free: 6.555 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.066e-05/0.5978, allocations: 8.031 kB / 1.39 GB, free: 6.547 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001118/0.5979, allocations: 35.62 kB / 1.39 GB, free: 6.512 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006542/0.5986, allocations: 379.2 kB / 1.391 GB, free: 6.102 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.821e-05/0.5986, allocations: 16 kB / 1.391 GB, free: 6.086 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.566e-05/0.5987, allocations: 23.98 kB / 1.391 GB, free: 6.062 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003026/0.599, allocations: 192 kB / 1.391 GB, free: 5.859 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.074e-05/0.599, allocations: 0 / 1.391 GB, free: 5.859 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.823e-05/0.599, allocations: 0 / 1.391 GB, free: 5.859 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.821e-06/0.599, allocations: 4 kB / 1.391 GB, free: 5.855 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001615/0.5992, allocations: 111.9 kB / 1.391 GB, free: 5.746 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004239/0.5996, allocations: 399 kB / 1.391 GB, free: 5.301 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004245/0.6001, allocations: 319.8 kB / 1.392 GB, free: 4.961 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 8.616e-06/0.6001, allocations: 4 kB / 1.392 GB, free: 4.957 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003768/0.6005, allocations: 287.2 kB / 1.392 GB, free: 4.656 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=18): time 1.343e-06/0.6005, allocations: 4 kB / 1.392 GB, free: 4.652 MB / 0.8855 GB Notification: Performance of matching and sorting (n=18): time 0.0007741/0.6013, allocations: 0.5087 MB / 1.392 GB, free: 4.137 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.145e-05/0.6013, allocations: 110.8 kB / 1.393 GB, free: 4.004 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003854/0.6017, allocations: 355.7 kB / 1.393 GB, free: 3.648 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 5.809e-05/0.6018, allocations: 41.7 kB / 1.393 GB, free: 3.602 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001358/0.6019, allocations: 153.6 kB / 1.393 GB, free: 3.438 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 4.649e-05/0.602, allocations: 39.45 kB / 1.393 GB, free: 3.398 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.524e-05/0.602, allocations: 8 kB / 1.393 GB, free: 3.391 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001724/0.6022, allocations: 350.8 kB / 1.393 GB, free: 3.039 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001223/0.6023, allocations: 87.95 kB / 1.393 GB, free: 2.953 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005826/0.6029, allocations: 474.8 kB / 1.394 GB, free: 2.355 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001943/0.6031, allocations: 132.9 kB / 1.394 GB, free: 2.227 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.6031, allocations: 0 / 1.394 GB, free: 2.227 MB / 0.8855 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000515/0.6037, allocations: 332.8 kB / 1.394 GB, free: 1.895 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 2.319e-05/0.6037, allocations: 4 kB / 1.394 GB, free: 1.891 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.042e-05/0.6037, allocations: 4.406 kB / 1.394 GB, free: 1.887 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.915e-05/0.6038, allocations: 12 kB / 1.394 GB, free: 1.875 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001937/0.604, allocations: 31.91 kB / 1.394 GB, free: 1.844 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.114e-05/0.604, allocations: 4 kB / 1.394 GB, free: 1.84 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000643/0.6046, allocations: 56.03 kB / 1.394 GB, free: 1.785 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.744e-05/0.6047, allocations: 12 kB / 1.395 GB, free: 1.773 MB / 0.8855 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 ($PRE.tabOneRow.y[1],tabOneRow.y[1],$PRE.tabOneRow.idx,tabOneRow.idx,$whenCondition10,$PRE.intTimTab1.y[1],intTimTab1.y[1],$PRE.intTimTab1.y[2],intTimTab1.y[2],$PRE.intTimTab1.idx,intTimTab1.idx,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$PRE.intTimTab.y[1],intTimTab.y[1],$PRE.intTimTab.y[2],intTimTab.y[2],$PRE.intTimTab.idx,intTimTab.idx,$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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002775/0.605, allocations: 211.8 kB / 1.395 GB, free: 1.559 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.965e-05/0.605, allocations: 27.72 kB / 1.395 GB, free: 1.531 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.606e-05/0.6051, allocations: 33.83 kB / 1.395 GB, free: 1.5 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.512e-06/0.6051, allocations: 4 kB / 1.395 GB, free: 1.496 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.937e-06/0.6051, allocations: 0 / 1.395 GB, free: 1.496 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.225e-06/0.6052, allocations: 4 kB / 1.395 GB, free: 1.492 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000325/0.6055, allocations: 289.3 kB / 1.395 GB, free: 1.16 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.344e-06/0.6055, allocations: 0 / 1.395 GB, free: 1.16 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.72e-05/0.6055, allocations: 11.98 kB / 1.395 GB, free: 1.148 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.031e-06/0.6055, allocations: 4 kB / 1.395 GB, free: 1.145 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.199e-05/0.6056, allocations: 8 kB / 1.395 GB, free: 1.137 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.6056, allocations: 0 / 1.395 GB, free: 1.137 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.482e-06/0.6056, allocations: 0 / 1.395 GB, free: 1.137 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006273/0.6062, allocations: 466.7 kB / 1.396 GB, free: 0.6445 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001326/0.6064, allocations: 116.7 kB / 1.396 GB, free: 0.5117 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.249e-05/0.6064, allocations: 15.92 kB / 1.396 GB, free: 0.4961 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001261/0.6065, allocations: 4.234 kB / 1.396 GB, free: 0.4922 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.022e-05/0.6066, allocations: 19.94 kB / 1.396 GB, free: 484 kB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.032e-05/0.6066, allocations: 15.98 kB / 1.396 GB, free: 468 kB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0002981/0.6069, allocations: 287 kB / 1.396 GB, free: 184 kB / 0.8855 GB Notification: Performance of sort global known variables: time 1.9e-07/0.607, allocations: 4 kB / 1.396 GB, free: 180 kB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0004565/0.6074, allocations: 83.98 kB / 1.396 GB, free: 96 kB / 0.8855 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003176/0.6077, allocations: 151.1 kB / 1.396 GB, free: 15.93 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.0004059/0.6082, allocations: 253 kB / 1.396 GB, free: 15.69 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 3.997e-06/0.6082, allocations: 4.812 kB / 1.396 GB, free: 15.68 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.0001783/0.6084, allocations: 140.7 kB / 1.397 GB, free: 15.55 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002108/0.6086, allocations: 28.64 kB / 1.397 GB, free: 15.52 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008742/0.6095, allocations: 0.589 MB / 1.397 GB, free: 14.89 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003258/0.6098, allocations: 0.7716 MB / 1.398 GB, free: 14.1 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 0.0001583/0.61, allocations: 45.94 kB / 1.398 GB, free: 14.05 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.105e-05/0.6101, allocations: 35.42 kB / 1.398 GB, free: 14.02 MB / 0.9011 GB Notification: Performance of SimCode: time 2.21e-07/0.6101, allocations: 0 / 1.398 GB, free: 14.02 MB / 0.9011 GB Notification: Performance of Templates: time 0.008781/0.6188, allocations: 4.602 MB / 1.402 GB, free: 9.445 MB / 0.9011 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","../files/Buildings_9_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches