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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001072/0.001072, allocations: 81.17 kB / 19.87 MB, free: 4.621 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001174/0.001174, allocations: 169 kB / 23.27 MB, free: 1.223 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.935/0.935, allocations: 177.2 MB / 203.7 MB, free: 5.52 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.367/2.367, allocations: 438.1 MB / 0.682 GB, free: 14.16 MB / 0.6511 GB " [Timeout remaining time 177] Using package Buildings with version 14.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|booTimTab.y.[0-9,]+.|booTimTabTwi.y.[0-9,]+.|booTimTabOneRow.y.[0-9,]+.",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=2500,variableFilter="time|booTimTab.y.[0-9,]+.|booTimTabTwi.y.[0-9,]+.|booTimTabOneRow.y.[0-9,]+.",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 4.318e-06/4.318e-06, allocations: 4 kB / 0.8898 GB, free: 9.758 MB / 0.8542 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.089e-05/2.521e-05, allocations: 9.344 kB / 0.8898 GB, free: 9.75 MB / 0.8542 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable): time 0.001877/0.001902, allocations: 0.8551 MB / 0.8906 GB, free: 8.895 MB / 0.8542 GB Notification: Performance of NFInst.instExpressions: time 0.002035/0.003937, allocations: 1.478 MB / 0.892 GB, free: 7.402 MB / 0.8542 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.029e-05/0.004018, allocations: 0 / 0.892 GB, free: 7.402 MB / 0.8542 GB Notification: Performance of NFTyping.typeComponents: time 0.0005159/0.004533, allocations: 207.4 kB / 0.8922 GB, free: 7.199 MB / 0.8542 GB Notification: Performance of NFTyping.typeBindings: time 0.0001526/0.004686, allocations: 119.5 kB / 0.8924 GB, free: 7.082 MB / 0.8542 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008002/0.005486, allocations: 367 kB / 0.8927 GB, free: 6.723 MB / 0.8542 GB Notification: Performance of NFFlatten.flatten: time 0.0008236/0.00631, allocations: 0.8853 MB / 0.8936 GB, free: 5.836 MB / 0.8542 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001546/0.006464, allocations: 52.56 kB / 0.8936 GB, free: 5.781 MB / 0.8542 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003766/0.006841, allocations: 451.4 kB / 0.8941 GB, free: 5.34 MB / 0.8542 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002299/0.007071, allocations: 231.6 kB / 0.8943 GB, free: 5.113 MB / 0.8542 GB Notification: Performance of NFPackage.collectConstants: time 7.669e-05/0.007147, allocations: 40 kB / 0.8943 GB, free: 5.074 MB / 0.8542 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001861/0.007334, allocations: 123.8 kB / 0.8944 GB, free: 4.953 MB / 0.8542 GB Notification: Performance of NFScalarize.scalarize: time 0.0002246/0.007558, allocations: 307.3 kB / 0.8947 GB, free: 4.652 MB / 0.8542 GB Notification: Performance of NFVerifyModel.verify: time 0.0001478/0.007706, allocations: 203.5 kB / 0.8949 GB, free: 4.453 MB / 0.8542 GB Notification: Performance of NFConvertDAE.convert: time 0.0004912/0.008197, allocations: 0.7167 MB / 0.8956 GB, free: 3.734 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 2.134e-06/0.008199, allocations: 0 / 0.8956 GB, free: 3.734 MB / 0.8542 GB Notification: Performance of FrontEnd: time 6.21e-07/0.0082, allocations: 0 / 0.8956 GB, free: 3.734 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 4.719e-06/0.008205, allocations: 0 / 0.8956 GB, free: 3.734 MB / 0.8542 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.0007839/0.008989, allocations: 0.8849 MB / 0.8965 GB, free: 2.805 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 3.332e-05/0.009022, allocations: 12.62 kB / 0.8965 GB, free: 2.793 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001165/0.009138, allocations: 68.64 kB / 0.8966 GB, free: 2.727 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003619/0.0095, allocations: 394.5 kB / 0.8969 GB, free: 2.312 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.717e-05/0.009517, allocations: 20.61 kB / 0.897 GB, free: 2.293 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.241e-05/0.00958, allocations: 40.38 kB / 0.897 GB, free: 2.254 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001874/0.009767, allocations: 172.2 kB / 0.8972 GB, free: 2.07 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.483e-06/0.009774, allocations: 192 / 0.8972 GB, free: 2.07 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.244e-05/0.009786, allocations: 4.375 kB / 0.8972 GB, free: 2.066 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.172e-06/0.009792, allocations: 4.375 kB / 0.8972 GB, free: 2.062 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.603e-05/0.009868, allocations: 55.83 kB / 0.8972 GB, free: 2.008 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008438/0.01071, allocations: 0.9545 MB / 0.8982 GB, free: 1.016 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001956/0.01091, allocations: 197.3 kB / 0.8983 GB, free: 0.7852 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.469e-05/0.01097, allocations: 63.12 kB / 0.8984 GB, free: 0.7109 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 8.386e-06/0.01098, allocations: 8 kB / 0.8984 GB, free: 0.7031 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002072/0.01119, allocations: 257.8 kB / 0.8987 GB, free: 436 kB / 0.8542 GB Notification: Performance of pre-optimization done (n=24): time 1.001e-06/0.01119, allocations: 0 / 0.8987 GB, free: 436 kB / 0.8542 GB Notification: Performance of matching and sorting (n=24): time 0.0004314/0.01162, allocations: 369.1 kB / 0.899 GB, free: 60 kB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.844e-05/0.01169, allocations: 118.8 kB / 0.8991 GB, free: 15.92 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003466/0.01204, allocations: 0.4906 MB / 0.8996 GB, free: 15.41 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 5.764e-05/0.01209, allocations: 41.7 kB / 0.8996 GB, free: 15.36 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001836/0.01228, allocations: 288.3 kB / 0.8999 GB, free: 15.08 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 4.013e-05/0.01232, allocations: 59.56 kB / 0.9 GB, free: 15.02 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001572/0.01247, allocations: 195.1 kB / 0.9002 GB, free: 14.82 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001668/0.01264, allocations: 0.5546 MB / 0.9007 GB, free: 14.25 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.799e-05/0.01269, allocations: 39.97 kB / 0.9007 GB, free: 14.21 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007333/0.01342, allocations: 1.661 MB / 0.9024 GB, free: 12.05 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001684/0.01359, allocations: 243.1 kB / 0.9026 GB, free: 11.75 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.01359, allocations: 0 / 0.9026 GB, free: 11.75 MB / 0.8698 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0002907/0.01388, allocations: 281.3 kB / 0.9029 GB, free: 11.47 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.336e-05/0.0139, allocations: 8 kB / 0.9029 GB, free: 11.46 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.091e-06/0.0139, allocations: 4 kB / 0.9029 GB, free: 11.46 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.307e-05/0.01392, allocations: 4 kB / 0.9029 GB, free: 11.46 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001064/0.01402, allocations: 47.91 kB / 0.9029 GB, free: 11.41 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.23e-06/0.01403, allocations: 4 kB / 0.9029 GB, free: 11.41 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004042/0.01443, allocations: 95.98 kB / 0.903 GB, free: 11.31 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.13e-05/0.01444, allocations: 8 kB / 0.903 GB, free: 11.3 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.intTimTab.idx,$PRE.booTimTab.intTimTab.idx,booTimTab.intTimTab.y[2],$PRE.booTimTab.intTimTab.y[2],booTimTab.intTimTab.y[1],$PRE.booTimTab.intTimTab.y[1],booTimTab.y[2],booTimTab.y[1],$whenCondition5,booTimTabOneRow.intTimTab.idx,$PRE.booTimTabOneRow.intTimTab.idx,booTimTabOneRow.intTimTab.y[2],$PRE.booTimTabOneRow.intTimTab.y[2],booTimTabOneRow.intTimTab.y[1],$PRE.booTimTabOneRow.intTimTab.y[1],booTimTabOneRow.y[2],booTimTabOneRow.y[1],$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,booTimTabTwi.intTimTab.idx,$PRE.booTimTabTwi.intTimTab.idx,booTimTabTwi.intTimTab.y[2],$PRE.booTimTabTwi.intTimTab.y[2],booTimTabTwi.intTimTab.y[1],$PRE.booTimTabTwi.intTimTab.y[1],booTimTabTwi.y[2],booTimTabTwi.y[1]) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002192/0.01466, allocations: 216.4 kB / 0.9032 GB, free: 11.09 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.419e-05/0.01471, allocations: 55.89 kB / 0.9033 GB, free: 11.03 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.663e-05/0.01475, allocations: 43.42 kB / 0.9033 GB, free: 10.99 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.985e-06/0.01476, allocations: 4 kB / 0.9033 GB, free: 10.99 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.006e-06/0.01476, allocations: 4 kB / 0.9033 GB, free: 10.98 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.699e-06/0.01476, allocations: 4 kB / 0.9033 GB, free: 10.98 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001867/0.01495, allocations: 244.9 kB / 0.9036 GB, free: 10.71 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.01495, allocations: 0 / 0.9036 GB, free: 10.71 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.468e-06/0.01496, allocations: 4 kB / 0.9036 GB, free: 10.71 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.567e-06/0.01497, allocations: 8 kB / 0.9036 GB, free: 10.7 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.16e-05/0.01498, allocations: 11.98 kB / 0.9036 GB, free: 10.69 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.203e-06/0.01498, allocations: 0 / 0.9036 GB, free: 10.69 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.01498, allocations: 0 / 0.9036 GB, free: 10.69 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002952/0.01527, allocations: 373.6 kB / 0.9039 GB, free: 10.3 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 3.631e-05/0.01531, allocations: 35.77 kB / 0.904 GB, free: 10.26 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.344e-05/0.01533, allocations: 11.98 kB / 0.904 GB, free: 10.25 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.119e-05/0.01539, allocations: 0 / 0.904 GB, free: 10.25 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.981e-05/0.01543, allocations: 19.97 kB / 0.904 GB, free: 10.23 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.865e-05/0.01544, allocations: 19.98 kB / 0.904 GB, free: 10.21 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.000171/0.01562, allocations: 299 kB / 0.9043 GB, free: 9.914 MB / 0.8698 GB Notification: Performance of sort global known variables: time 9e-08/0.01562, allocations: 7.938 kB / 0.9043 GB, free: 9.906 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0002667/0.01588, allocations: 119.8 kB / 0.9044 GB, free: 9.789 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 () * 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 (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.0001545/0.01604, allocations: 145.7 kB / 0.9046 GB, free: 9.633 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0002225/0.01626, allocations: 185.2 kB / 0.9048 GB, free: 9.449 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.01626, allocations: 192 / 0.9048 GB, free: 9.449 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 7.844e-05/0.01634, allocations: 87.56 kB / 0.9048 GB, free: 9.359 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001961/0.01654, allocations: 58.14 kB / 0.9049 GB, free: 9.305 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006077/0.01714, allocations: 0.6579 MB / 0.9055 GB, free: 8.605 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.653e-05/0.01721, allocations: 117.3 kB / 0.9056 GB, free: 8.473 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.000103/0.01731, allocations: 58.94 kB / 0.9057 GB, free: 8.414 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002338/0.01755, allocations: 190.1 kB / 0.9059 GB, free: 8.227 MB / 0.8698 GB Notification: Performance of SimCode: time 9.71e-07/0.01755, allocations: 0 / 0.9059 GB, free: 8.227 MB / 0.8698 GB Notification: Performance of Templates: time 0.009946/0.02749, allocations: 9.138 MB / 0.9148 GB, free: 15.27 MB / 0.8855 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable.makefile [Timeout 300] (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=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.410574796143919]