Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booTimTab.y.1.|booTimTab.y.2.|booTimTabTwi.y.1.|booTimTabTwi.y.2.|booTimTabOneRow.y.1.|booTimTabOneRow.y.2.",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable") translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booTimTab.y.1.|booTimTab.y.2.|booTimTabTwi.y.1.|booTimTabTwi.y.2.|booTimTabOneRow.y.1.|booTimTabOneRow.y.2.",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.306/2.306, allocations: 393.5 MB / 408.4 MB, free: 10.96 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.001058/0.001058, allocations: 179.9 kB / 0.4902 GB, free: 2.215 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.61/1.61, allocations: 223.1 MB / 0.7992 GB, free: 14.71 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.0009829/0.0009831, allocations: 108.4 kB / 0.9396 GB, free: 1.879 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003769/0.000377, allocations: 7 kB / 1.09 GB, free: 216.1 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3171/0.3175, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2137/0.5313, allocations: 150.5 MB / 1.376 GB, free: 3.027 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002309/0.5316, allocations: 75.95 kB / 1.376 GB, free: 2.953 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.1287/0.6603, allocations: 46.19 MB / 1.421 GB, free: 4.676 MB / 0.9167 GB Notification: Performance of FrontEnd: time 2.054e-06/0.6603, allocations: 0 / 1.421 GB, free: 4.676 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 4.256e-05/0.6604, allocations: 11.94 kB / 1.421 GB, free: 4.664 MB / 0.9167 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 27 * Number of variables: 27 Notification: Performance of Generate backend data structure: time 0.001762/0.6621, allocations: 0.7139 MB / 1.422 GB, free: 3.898 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 6.125e-05/0.6622, allocations: 12.52 kB / 1.422 GB, free: 3.887 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002288/0.6625, allocations: 55.53 kB / 1.422 GB, free: 3.832 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001259/0.6637, allocations: 0.5288 MB / 1.423 GB, free: 3.262 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.887e-05/0.6638, allocations: 28.23 kB / 1.423 GB, free: 3.234 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002198/0.664, allocations: 43.94 kB / 1.423 GB, free: 3.191 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000618/0.6647, allocations: 301.7 kB / 1.423 GB, free: 2.883 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.588e-06/0.6647, allocations: 0 / 1.423 GB, free: 2.883 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.334e-05/0.6647, allocations: 8 kB / 1.423 GB, free: 2.875 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.342e-06/0.6647, allocations: 0 / 1.423 GB, free: 2.875 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004235/0.6652, allocations: 227.8 kB / 1.423 GB, free: 2.652 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002644/0.6678, allocations: 1.191 MB / 1.424 GB, free: 1.402 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009528/0.6688, allocations: 472 kB / 1.425 GB, free: 0.9141 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 1.692e-05/0.6688, allocations: 7.938 kB / 1.425 GB, free: 0.9062 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006535/0.6695, allocations: 338.8 kB / 1.425 GB, free: 0.5547 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=24): time 2.254e-06/0.6695, allocations: 0 / 1.425 GB, free: 0.5547 MB / 0.9167 GB Notification: Performance of matching and sorting (n=24): time 0.6925/1.362, allocations: 0.6285 MB / 1.426 GB, free: 192.7 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001085/1.362, allocations: 118.3 kB / 1.426 GB, free: 192.6 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00104/1.363, allocations: 0.5394 MB / 1.426 GB, free: 192.5 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 0.0003699/1.364, allocations: 48.92 kB / 1.426 GB, free: 192.5 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002226/1.364, allocations: 221.4 kB / 1.427 GB, free: 192.4 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 5.981e-05/1.364, allocations: 48.89 kB / 1.427 GB, free: 192.4 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.54e-05/1.364, allocations: 6.25 kB / 1.427 GB, free: 192.4 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 0.0001571/1.364, allocations: 362.4 kB / 1.427 GB, free: 192.1 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001819/1.364, allocations: 129.9 kB / 1.427 GB, free: 192.1 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008989/1.365, allocations: 0.7266 MB / 1.428 GB, free: 191.6 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002468/1.365, allocations: 179 kB / 1.428 GB, free: 191.6 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.18e-06/1.365, allocations: 1.031 kB / 1.428 GB, free: 191.6 MB / 0.9167 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0006604/1.366, allocations: 425.7 kB / 1.428 GB, free: 191.5 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 2.149e-05/1.366, allocations: 8.078 kB / 1.428 GB, free: 191.5 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.648e-06/1.366, allocations: 3.219 kB / 1.428 GB, free: 191.5 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.533e-05/1.366, allocations: 7.75 kB / 1.429 GB, free: 191.5 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001935/1.366, allocations: 35.16 kB / 1.429 GB, free: 191.5 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.545e-05/1.366, allocations: 5.562 kB / 1.429 GB, free: 191.5 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001136/1.368, allocations: 96.33 kB / 1.429 GB, free: 191.5 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.253e-05/1.368, allocations: 20.41 kB / 1.429 GB, free: 191.5 MB / 0.9167 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 33 ($whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,booTimTab.y[1],booTimTab.y[2],$PRE.booTimTab.intTimTab.y[1],booTimTab.intTimTab.y[1],$PRE.booTimTab.intTimTab.y[2],booTimTab.intTimTab.y[2],$PRE.booTimTab.intTimTab.idx,booTimTab.intTimTab.idx,$whenCondition5,booTimTabOneRow.y[1],booTimTabOneRow.y[2],$PRE.booTimTabOneRow.intTimTab.y[1],booTimTabOneRow.intTimTab.y[1],$PRE.booTimTabOneRow.intTimTab.y[2],booTimTabOneRow.intTimTab.y[2],$PRE.booTimTabOneRow.intTimTab.idx,booTimTabOneRow.intTimTab.idx,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,booTimTabTwi.y[1],booTimTabTwi.y[2],$PRE.booTimTabTwi.intTimTab.y[1],booTimTabTwi.intTimTab.y[1],$PRE.booTimTabTwi.intTimTab.y[2],booTimTabTwi.intTimTab.y[2],$PRE.booTimTabTwi.intTimTab.idx,booTimTabTwi.intTimTab.idx) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 36 * 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.0003656/1.368, allocations: 264.7 kB / 1.429 GB, free: 191.4 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.019e-05/1.368, allocations: 41.09 kB / 1.429 GB, free: 191.4 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.896e-05/1.368, allocations: 56.5 kB / 1.429 GB, free: 191.4 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.38e-06/1.368, allocations: 3.562 kB / 1.429 GB, free: 191.4 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.365e-06/1.368, allocations: 0 / 1.429 GB, free: 191.4 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.15e-06/1.368, allocations: 0 / 1.429 GB, free: 191.4 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004086/1.369, allocations: 410.2 kB / 1.429 GB, free: 191.2 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.35e-06/1.369, allocations: 6.078 kB / 1.429 GB, free: 191.2 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.207e-05/1.369, allocations: 7.5 kB / 1.429 GB, free: 191.2 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.238e-06/1.369, allocations: 0.7812 kB / 1.429 GB, free: 191.2 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.741e-05/1.369, allocations: 16.53 kB / 1.429 GB, free: 191.2 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.347e-06/1.369, allocations: 0.5 kB / 1.429 GB, free: 191.2 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/1.369, allocations: 0 / 1.429 GB, free: 191.2 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006895/1.369, allocations: 0.5461 MB / 1.43 GB, free: 191 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001554/1.37, allocations: 140.3 kB / 1.43 GB, free: 190.9 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.665e-05/1.37, allocations: 6.531 kB / 1.43 GB, free: 190.9 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001551/1.37, allocations: 16.78 kB / 1.43 GB, free: 190.9 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.853e-05/1.37, allocations: 38.59 kB / 1.43 GB, free: 190.9 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.409e-05/1.37, allocations: 19.16 kB / 1.43 GB, free: 190.9 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.000522/1.37, allocations: 429.8 kB / 1.431 GB, free: 190.8 MB / 0.9167 GB Notification: Performance of sort global known variables: time 1.4e-07/1.37, allocations: 0 / 1.431 GB, free: 190.8 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0005503/1.371, allocations: 118.2 kB / 1.431 GB, free: 190.8 MB / 0.9167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 24 ($whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,booTimTab.y[1],booTimTab.y[2],booTimTab.intTimTab.y[1],booTimTab.intTimTab.y[2],booTimTab.intTimTab.idx,$whenCondition5,booTimTabOneRow.y[1],booTimTabOneRow.y[2],booTimTabOneRow.intTimTab.y[1],booTimTabOneRow.intTimTab.y[2],booTimTabOneRow.intTimTab.idx,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,booTimTabTwi.y[1],booTimTabTwi.y[2],booTimTabTwi.intTimTab.y[1],booTimTabTwi.intTimTab.y[2],booTimTabTwi.intTimTab.idx) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 9 * 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.0003174/1.371, allocations: 151.2 kB / 1.431 GB, free: 190.8 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.0006753/1.372, allocations: 359 kB / 1.431 GB, free: 190.7 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/1.372, allocations: 3.609 kB / 1.431 GB, free: 190.7 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.0003159/1.372, allocations: 193.3 kB / 1.431 GB, free: 190.7 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002648/1.373, allocations: 38.66 kB / 1.431 GB, free: 190.7 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001489/1.374, allocations: 0.8828 MB / 1.432 GB, free: 190.4 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004151/1.375, allocations: 0.8475 MB / 1.433 GB, free: 189.7 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.0003259/1.375, allocations: 94.92 kB / 1.433 GB, free: 189.7 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.964e-05/1.375, allocations: 33.56 kB / 1.433 GB, free: 189.7 MB / 0.9167 GB Notification: Performance of SimCode: time 4.31e-07/1.375, allocations: 1.562 kB / 1.433 GB, free: 189.7 MB / 0.9167 GB Notification: Performance of Templates: time 0.01843/1.393, allocations: 7.332 MB / 1.44 GB, free: 189.3 MB / 0.9167 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_TimeTable.csv","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches