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/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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00096/0.00096, allocations: 100.1 kB / 15.05 MB, free: 1.105 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.0009832/0.0009838, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.433/1.433, allocations: 223.2 MB / 239.9 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.762/2.762, allocations: 436.5 MB / 0.7104 GB, free: 7.891 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003893/0.0003893, allocations: 8 kB / 0.8708 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8661/0.8665, allocations: 153.6 MB / 1.021 GB, free: 1.141 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable): time 0.001037/0.8676, allocations: 0.5544 MB / 1.021 GB, free: 0.5859 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001814/0.8694, allocations: 1.386 MB / 1.023 GB, free: 15.18 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.33e-05/0.8695, allocations: 4 kB / 1.023 GB, free: 15.18 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0005165/0.87, allocations: 183.5 kB / 1.023 GB, free: 15 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001349/0.8702, allocations: 107.8 kB / 1.023 GB, free: 14.89 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008948/0.8711, allocations: 315.6 kB / 1.023 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0007115/0.8718, allocations: 0.4953 MB / 1.024 GB, free: 14.1 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001925/0.872, allocations: 92.39 kB / 1.024 GB, free: 14 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003329/0.8723, allocations: 291.4 kB / 1.024 GB, free: 13.72 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003479/0.8727, allocations: 219.4 kB / 1.024 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 9.582e-05/0.8728, allocations: 16 kB / 1.024 GB, free: 13.49 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002522/0.8731, allocations: 63.94 kB / 1.024 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0004465/0.8735, allocations: 311.3 kB / 1.025 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001253/0.8737, allocations: 89.52 kB / 1.025 GB, free: 13.03 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0008571/0.8745, allocations: 0.6995 MB / 1.026 GB, free: 12.33 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.8745, allocations: 0 / 1.026 GB, free: 12.33 MB / 0.7794 GB Notification: Performance of FrontEnd: time 3.787e-06/0.8745, allocations: 0 / 1.026 GB, free: 12.33 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.71e-05/0.8746, allocations: 0 / 1.026 GB, free: 12.33 MB / 0.7794 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.001555/0.8761, allocations: 0.7009 MB / 1.026 GB, free: 11.57 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 5.039e-05/0.8762, allocations: 8.031 kB / 1.026 GB, free: 11.57 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001981/0.8764, allocations: 59.42 kB / 1.026 GB, free: 11.51 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001031/0.8774, allocations: 0.5244 MB / 1.027 GB, free: 10.94 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.893e-05/0.8775, allocations: 20.23 kB / 1.027 GB, free: 10.92 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001234/0.8776, allocations: 39.95 kB / 1.027 GB, free: 10.88 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004991/0.8781, allocations: 313.5 kB / 1.027 GB, free: 10.56 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.27e-05/0.8781, allocations: 4 kB / 1.027 GB, free: 10.56 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.612e-05/0.8782, allocations: 0 / 1.027 GB, free: 10.56 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.216e-06/0.8782, allocations: 4 kB / 1.027 GB, free: 10.55 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000315/0.8785, allocations: 223.8 kB / 1.027 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002091/0.8806, allocations: 1.187 MB / 1.029 GB, free: 9.09 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006674/0.8813, allocations: 464.1 kB / 1.029 GB, free: 8.609 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.057e-05/0.8813, allocations: 7.938 kB / 1.029 GB, free: 8.602 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005017/0.8818, allocations: 331.5 kB / 1.029 GB, free: 8.258 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=24): time 1.944e-06/0.8818, allocations: 0 / 1.029 GB, free: 8.258 MB / 0.7794 GB Notification: Performance of matching and sorting (n=24): time 0.001147/0.883, allocations: 0.6257 MB / 1.03 GB, free: 7.625 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.254e-05/0.8831, allocations: 122.7 kB / 1.03 GB, free: 7.48 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007552/0.8839, allocations: 0.5955 MB / 1.031 GB, free: 6.879 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 0.0001018/0.884, allocations: 41.7 kB / 1.031 GB, free: 6.832 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002539/0.8842, allocations: 222.9 kB / 1.031 GB, free: 6.609 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 5.694e-05/0.8843, allocations: 47.44 kB / 1.031 GB, free: 6.562 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.13e-05/0.8843, allocations: 8 kB / 1.031 GB, free: 6.555 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001928/0.8845, allocations: 362.8 kB / 1.031 GB, free: 6.191 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001867/0.8847, allocations: 119.9 kB / 1.031 GB, free: 6.074 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008683/0.8856, allocations: 0.7097 MB / 1.032 GB, free: 5.188 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002586/0.8859, allocations: 179.8 kB / 1.032 GB, free: 5.012 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.8859, allocations: 0.75 kB / 1.032 GB, free: 5.012 MB / 0.7794 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0006366/0.8865, allocations: 412.7 kB / 1.033 GB, free: 4.602 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.3e-05/0.8865, allocations: 8 kB / 1.033 GB, free: 4.594 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.084e-05/0.8866, allocations: 4 kB / 1.033 GB, free: 4.59 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.407e-05/0.8866, allocations: 7.953 kB / 1.033 GB, free: 4.582 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001884/0.8868, allocations: 39.91 kB / 1.033 GB, free: 4.543 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.321e-05/0.8868, allocations: 7.938 kB / 1.033 GB, free: 4.535 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001246/0.8881, allocations: 142.7 kB / 1.033 GB, free: 4.41 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.192e-05/0.8881, allocations: 19.94 kB / 1.033 GB, free: 4.391 MB / 0.7794 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.0003966/0.8885, allocations: 265.4 kB / 1.033 GB, free: 4.125 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.908e-05/0.8886, allocations: 39.44 kB / 1.033 GB, free: 4.086 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.188e-05/0.8887, allocations: 55.36 kB / 1.033 GB, free: 4.031 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.933e-06/0.8887, allocations: 4.25 kB / 1.033 GB, free: 4.027 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.059e-05/0.8887, allocations: 3.953 kB / 1.033 GB, free: 4.023 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.893e-06/0.8887, allocations: 4 kB / 1.033 GB, free: 4.02 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004759/0.8892, allocations: 413.2 kB / 1.034 GB, free: 3.566 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.897e-06/0.8892, allocations: 4 kB / 1.034 GB, free: 3.562 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.069e-05/0.8892, allocations: 4 kB / 1.034 GB, free: 3.559 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.076e-06/0.8892, allocations: 0 / 1.034 GB, free: 3.559 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.109e-05/0.8893, allocations: 11.98 kB / 1.034 GB, free: 3.547 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.727e-06/0.8893, allocations: 3.938 kB / 1.034 GB, free: 3.543 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.8893, allocations: 4 kB / 1.034 GB, free: 3.539 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007028/0.89, allocations: 0.5305 MB / 1.034 GB, free: 2.973 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001696/0.8902, allocations: 140.5 kB / 1.034 GB, free: 2.816 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.442e-05/0.8902, allocations: 11.94 kB / 1.034 GB, free: 2.805 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001547/0.8904, allocations: 15.98 kB / 1.034 GB, free: 2.789 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.777e-05/0.8905, allocations: 31.91 kB / 1.034 GB, free: 2.758 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.178e-05/0.8905, allocations: 15.98 kB / 1.034 GB, free: 2.742 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0005072/0.891, allocations: 435 kB / 1.035 GB, free: 2.316 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.413e-06/0.891, allocations: 0 / 1.035 GB, free: 2.316 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0004813/0.8915, allocations: 111.9 kB / 1.035 GB, free: 2.207 MB / 0.7794 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.0002844/0.8918, allocations: 149.4 kB / 1.035 GB, free: 2.051 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.000591/0.8924, allocations: 351.6 kB / 1.035 GB, free: 1.707 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.8924, allocations: 0 / 1.035 GB, free: 1.707 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0002405/0.8927, allocations: 184.6 kB / 1.036 GB, free: 1.527 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002342/0.8929, allocations: 39.83 kB / 1.036 GB, free: 1.492 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00137/0.8943, allocations: 0.8826 MB / 1.036 GB, free: 0.5781 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004665/0.8948, allocations: 0.8469 MB / 1.037 GB, free: 15.71 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0002422/0.895, allocations: 94.92 kB / 1.037 GB, free: 15.62 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.711e-05/0.8951, allocations: 35.44 kB / 1.037 GB, free: 15.58 MB / 0.795 GB Notification: Performance of SimCode: time 6.62e-07/0.8951, allocations: 0 / 1.037 GB, free: 15.58 MB / 0.795 GB Notification: Performance of Templates: time 0.01382/0.909, allocations: 7.332 MB / 1.045 GB, free: 8.32 MB / 0.795 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