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.365/2.365, allocations: 390.3 MB / 402.8 MB, free: 6.723 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.001007/0.001007, allocations: 161 kB / 496.1 MB, free: 12.89 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.616/1.616, allocations: 221.3 MB / 0.7915 GB, free: 5.391 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.001183/0.001183, allocations: 91.52 kB / 0.9317 GB, free: 5.711 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.192e-05/3.198e-05, allocations: 7.984 kB / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3241/0.3242, allocations: 143 MB / 1.219 GB, free: 13.48 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.086/1.41, allocations: 150.4 MB / 1.366 GB, free: 3.605 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002184/1.411, allocations: 76.06 kB / 1.366 GB, free: 3.562 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.1363/1.547, allocations: 46.24 MB / 1.411 GB, free: 12.59 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.044e-06/1.547, allocations: 0 / 1.411 GB, free: 12.59 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 5.618e-05/1.547, allocations: 8 kB / 1.411 GB, free: 12.58 MB / 0.8698 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.001495/1.549, allocations: 0.6222 MB / 1.412 GB, free: 11.94 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 5.29e-05/1.549, allocations: 11.97 kB / 1.412 GB, free: 11.93 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004305/1.549, allocations: 51.53 kB / 1.412 GB, free: 11.88 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001303/1.551, allocations: 0.5301 MB / 1.412 GB, free: 11.39 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.819e-05/1.551, allocations: 27.11 kB / 1.412 GB, free: 11.37 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001868/1.551, allocations: 34.5 kB / 1.412 GB, free: 11.34 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005289/1.551, allocations: 307.4 kB / 1.412 GB, free: 11.1 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.314e-05/1.551, allocations: 4 kB / 1.412 GB, free: 11.1 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.782e-05/1.551, allocations: 3.312 kB / 1.412 GB, free: 11.1 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.279e-05/1.551, allocations: 4 kB / 1.412 GB, free: 11.09 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003489/1.552, allocations: 222.5 kB / 1.413 GB, free: 10.95 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002209/1.554, allocations: 1.184 MB / 1.414 GB, free: 9.934 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006293/1.555, allocations: 472.5 kB / 1.414 GB, free: 9.574 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002466/1.555, allocations: 177.8 kB / 1.414 GB, free: 9.445 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.97e-05/1.555, allocations: 4 kB / 1.414 GB, free: 9.441 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005174/1.555, allocations: 339.2 kB / 1.415 GB, free: 9.148 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=24): time 2.234e-06/1.555, allocations: 0 / 1.415 GB, free: 9.148 MB / 0.8698 GB Notification: Performance of matching and sorting (n=24): time 0.0009627/1.556, allocations: 496.1 kB / 1.415 GB, free: 8.766 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001245/1.557, allocations: 114.5 kB / 1.415 GB, free: 8.633 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008501/1.557, allocations: 0.545 MB / 1.416 GB, free: 8.188 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 0.0001289/1.558, allocations: 44.14 kB / 1.416 GB, free: 8.148 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003039/1.558, allocations: 220.8 kB / 1.416 GB, free: 7.996 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 9.121e-05/1.558, allocations: 58.47 kB / 1.416 GB, free: 7.949 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.04e-05/1.558, allocations: 3.875 kB / 1.416 GB, free: 7.949 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.000254/1.558, allocations: 360.8 kB / 1.417 GB, free: 7.605 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002931/1.559, allocations: 120.1 kB / 1.417 GB, free: 7.523 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00111/1.56, allocations: 0.7237 MB / 1.417 GB, free: 6.711 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003919/1.56, allocations: 183.2 kB / 1.418 GB, free: 6.57 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.648e-06/1.56, allocations: 8 kB / 1.418 GB, free: 6.562 MB / 0.8698 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0009125/1.561, allocations: 413.7 kB / 1.418 GB, free: 6.23 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 3.674e-05/1.561, allocations: 9.406 kB / 1.418 GB, free: 6.223 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.668e-05/1.561, allocations: 4 kB / 1.418 GB, free: 6.219 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.213e-05/1.561, allocations: 4.438 kB / 1.418 GB, free: 6.215 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002247/1.561, allocations: 46.53 kB / 1.418 GB, free: 6.172 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.859e-05/1.561, allocations: 7.938 kB / 1.418 GB, free: 6.164 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001197/1.563, allocations: 91 kB / 1.418 GB, free: 6.082 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.603e-05/1.563, allocations: 19.94 kB / 1.418 GB, free: 6.066 MB / 0.8698 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 () * 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.0002629/1.563, allocations: 162.1 kB / 1.418 GB, free: 5.918 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000104/1.563, allocations: 35.53 kB / 1.418 GB, free: 5.883 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000115/1.563, allocations: 55.23 kB / 1.418 GB, free: 5.836 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.795e-06/1.563, allocations: 4 kB / 1.418 GB, free: 5.832 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.421e-05/1.563, allocations: 0 / 1.418 GB, free: 5.832 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.553e-06/1.563, allocations: 0 / 1.418 GB, free: 5.832 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005061/1.564, allocations: 415.2 kB / 1.419 GB, free: 5.449 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.271e-06/1.564, allocations: 3.953 kB / 1.419 GB, free: 5.445 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.102e-05/1.564, allocations: 11.31 kB / 1.419 GB, free: 5.438 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.102e-06/1.564, allocations: 3.984 kB / 1.419 GB, free: 5.434 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.332e-05/1.564, allocations: 4 kB / 1.419 GB, free: 5.43 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.049e-06/1.564, allocations: 4 kB / 1.419 GB, free: 5.426 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/1.564, allocations: 0 / 1.419 GB, free: 5.426 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007857/1.565, allocations: 0.5475 MB / 1.419 GB, free: 4.863 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001662/1.565, allocations: 136.5 kB / 1.419 GB, free: 4.711 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.294e-05/1.565, allocations: 7.938 kB / 1.419 GB, free: 4.703 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001777/1.565, allocations: 27.95 kB / 1.419 GB, free: 4.676 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.661e-05/1.565, allocations: 23.97 kB / 1.419 GB, free: 4.652 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.54e-05/1.565, allocations: 19.98 kB / 1.42 GB, free: 4.633 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.0006556/1.566, allocations: 433.1 kB / 1.42 GB, free: 4.207 MB / 0.8698 GB Notification: Performance of sort global known variables: time 3e-07/1.566, allocations: 0 / 1.42 GB, free: 4.207 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0007369/1.567, allocations: 115.9 kB / 1.42 GB, free: 4.094 MB / 0.8698 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 () * 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.0004758/1.567, allocations: 153.3 kB / 1.42 GB, free: 3.938 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0006982/1.568, allocations: 353.3 kB / 1.421 GB, free: 3.594 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/1.568, allocations: 0 / 1.421 GB, free: 3.594 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0002757/1.568, allocations: 195.8 kB / 1.421 GB, free: 3.402 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002779/1.568, allocations: 34.56 kB / 1.421 GB, free: 3.367 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001223/1.57, allocations: 0.6622 MB / 1.421 GB, free: 2.68 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005051/1.57, allocations: 0.851 MB / 1.422 GB, free: 1.801 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.0003381/1.571, allocations: 91.61 kB / 1.422 GB, free: 1.715 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.326e-05/1.571, allocations: 35.42 kB / 1.422 GB, free: 1.684 MB / 0.8698 GB Notification: Performance of SimCode: time 3.31e-07/1.571, allocations: 0 / 1.422 GB, free: 1.684 MB / 0.8698 GB Notification: Performance of Templates: time 0.01372/1.584, allocations: 7.338 MB / 1.43 GB, free: 10.4 MB / 0.8855 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