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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.008902/0.008903, allocations: 99.83 kB / 15.73 MB, free: 6.012 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.001847/0.001847, allocations: 193.5 kB / 16.67 MB, free: 5.93 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.505/1.505, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.747/2.747, allocations: 472.6 MB / 0.7453 GB, free: 0.5156 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001276/0.001277, allocations: 67.83 kB / 1.069 GB, free: 9.586 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.229/1.23, allocations: 159.9 MB / 1.226 GB, free: 13.52 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable): time 0.002334/1.232, allocations: 0.8571 MB / 1.226 GB, free: 12.66 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.002156/1.234, allocations: 1.46 MB / 1.228 GB, free: 11.19 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.002e-05/1.235, allocations: 4 kB / 1.228 GB, free: 11.18 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0005643/1.235, allocations: 199.4 kB / 1.228 GB, free: 10.99 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0001479/1.235, allocations: 111.6 kB / 1.228 GB, free: 10.88 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.001052/1.236, allocations: 365 kB / 1.229 GB, free: 10.53 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.000937/1.237, allocations: 0.8699 MB / 1.229 GB, free: 9.66 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002333/1.238, allocations: 112.1 kB / 1.23 GB, free: 9.551 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003951/1.238, allocations: 347.4 kB / 1.23 GB, free: 9.211 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000397/1.238, allocations: 263.3 kB / 1.23 GB, free: 8.953 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 0.0001718/1.238, allocations: 44 kB / 1.23 GB, free: 8.91 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003516/1.239, allocations: 115.9 kB / 1.23 GB, free: 8.797 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0005062/1.239, allocations: 339.3 kB / 1.231 GB, free: 8.465 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0004091/1.24, allocations: 274.8 kB / 1.231 GB, free: 8.195 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.001162/1.241, allocations: 0.9156 MB / 1.232 GB, free: 7.281 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 9.057e-06/1.241, allocations: 4 kB / 1.232 GB, free: 7.277 MB / 0.9512 GB Notification: Performance of FrontEnd: time 2.855e-06/1.241, allocations: 0 / 1.232 GB, free: 7.277 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 2.93e-05/1.241, allocations: 0 / 1.232 GB, free: 7.277 MB / 0.9512 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.001956/1.243, allocations: 0.9033 MB / 1.233 GB, free: 6.316 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 6.47e-05/1.243, allocations: 8.031 kB / 1.233 GB, free: 6.309 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002258/1.243, allocations: 52.66 kB / 1.233 GB, free: 6.258 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009275/1.244, allocations: 0.5413 MB / 1.233 GB, free: 5.676 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.139e-05/1.244, allocations: 28.59 kB / 1.233 GB, free: 5.648 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001118/1.244, allocations: 40.38 kB / 1.233 GB, free: 5.609 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005647/1.245, allocations: 298.2 kB / 1.234 GB, free: 5.305 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.688e-05/1.245, allocations: 4.188 kB / 1.234 GB, free: 5.301 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.429e-05/1.245, allocations: 7.938 kB / 1.234 GB, free: 5.293 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.352e-05/1.245, allocations: 4 kB / 1.234 GB, free: 5.289 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003737/1.245, allocations: 219.8 kB / 1.234 GB, free: 5.074 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002289/1.248, allocations: 1.188 MB / 1.235 GB, free: 3.828 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007896/1.249, allocations: 467.7 kB / 1.235 GB, free: 3.344 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000268/1.249, allocations: 178.6 kB / 1.236 GB, free: 3.16 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.533e-05/1.249, allocations: 11.98 kB / 1.236 GB, free: 3.148 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005547/1.249, allocations: 331.6 kB / 1.236 GB, free: 2.805 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=24): time 2.234e-06/1.249, allocations: 0 / 1.236 GB, free: 2.805 MB / 0.9512 GB Notification: Performance of matching and sorting (n=24): time 0.001168/1.251, allocations: 0.6298 MB / 1.236 GB, free: 2.168 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000104/1.251, allocations: 122.7 kB / 1.237 GB, free: 2.023 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007716/1.252, allocations: 0.5877 MB / 1.237 GB, free: 1.426 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 8.997e-05/1.252, allocations: 49.7 kB / 1.237 GB, free: 1.371 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002813/1.252, allocations: 217.5 kB / 1.237 GB, free: 1.156 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 7.36e-05/1.252, allocations: 51.62 kB / 1.237 GB, free: 1.105 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002916/1.252, allocations: 189.5 kB / 1.238 GB, free: 0.9141 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0002696/1.253, allocations: 366.8 kB / 1.238 GB, free: 0.5469 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002066/1.253, allocations: 123.9 kB / 1.238 GB, free: 436 kB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001016/1.254, allocations: 0.7103 MB / 1.239 GB, free: 15.54 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004261/1.254, allocations: 300.6 kB / 1.239 GB, free: 15.2 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.838e-06/1.254, allocations: 4 kB / 1.239 GB, free: 15.2 MB / 0.9669 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0007138/1.255, allocations: 420.9 kB / 1.24 GB, free: 14.78 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 3.342e-05/1.255, allocations: 9.234 kB / 1.24 GB, free: 14.77 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.282e-05/1.255, allocations: 4 kB / 1.24 GB, free: 14.77 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.696e-05/1.255, allocations: 4 kB / 1.24 GB, free: 14.76 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002039/1.255, allocations: 40.23 kB / 1.24 GB, free: 14.72 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.498e-05/1.255, allocations: 11.94 kB / 1.24 GB, free: 14.71 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001293/1.257, allocations: 136.1 kB / 1.24 GB, free: 14.58 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.158e-05/1.257, allocations: 16 kB / 1.24 GB, free: 14.56 MB / 0.9669 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.0004326/1.257, allocations: 258.2 kB / 1.24 GB, free: 14.3 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.522e-05/1.257, allocations: 39.72 kB / 1.24 GB, free: 14.27 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001041/1.257, allocations: 55.36 kB / 1.24 GB, free: 14.21 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.488e-06/1.257, allocations: 7.938 kB / 1.24 GB, free: 14.2 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.023e-05/1.257, allocations: 0 / 1.24 GB, free: 14.2 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.031e-06/1.257, allocations: 0.75 kB / 1.24 GB, free: 14.2 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004988/1.258, allocations: 401.3 kB / 1.24 GB, free: 13.76 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.018e-06/1.258, allocations: 4 kB / 1.24 GB, free: 13.75 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.241e-05/1.258, allocations: 15.94 kB / 1.24 GB, free: 13.74 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.795e-06/1.258, allocations: 0 / 1.24 GB, free: 13.74 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.345e-05/1.258, allocations: 7.984 kB / 1.24 GB, free: 13.73 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.308e-06/1.258, allocations: 3.938 kB / 1.24 GB, free: 13.73 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.205e-06/1.258, allocations: 4 kB / 1.24 GB, free: 13.72 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007647/1.259, allocations: 0.5178 MB / 1.241 GB, free: 13.18 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001321/1.259, allocations: 128.9 kB / 1.241 GB, free: 13.04 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.107e-05/1.259, allocations: 0 / 1.241 GB, free: 13.04 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001712/1.259, allocations: 19.92 kB / 1.241 GB, free: 13.02 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001259/1.259, allocations: 35.91 kB / 1.241 GB, free: 12.98 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.87e-05/1.259, allocations: 15.98 kB / 1.241 GB, free: 12.96 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0005322/1.26, allocations: 435.1 kB / 1.242 GB, free: 12.54 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1e-07/1.26, allocations: 0 / 1.242 GB, free: 12.54 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0005534/1.26, allocations: 119.8 kB / 1.242 GB, free: 12.42 MB / 0.9669 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.0003655/1.261, allocations: 147.6 kB / 1.242 GB, free: 12.27 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0006386/1.261, allocations: 356.5 kB / 1.242 GB, free: 11.93 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 5.31e-06/1.261, allocations: 7.938 kB / 1.242 GB, free: 11.92 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0003078/1.262, allocations: 184.6 kB / 1.242 GB, free: 11.74 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003689/1.262, allocations: 45.94 kB / 1.242 GB, free: 11.7 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001381/1.264, allocations: 0.83 MB / 1.243 GB, free: 10.83 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004511/1.264, allocations: 0.839 MB / 1.244 GB, free: 9.957 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.0002287/1.264, allocations: 90.92 kB / 1.244 GB, free: 9.867 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.751e-05/1.264, allocations: 35.44 kB / 1.244 GB, free: 9.832 MB / 0.9669 GB Notification: Performance of SimCode: time 2.4e-07/1.264, allocations: 0 / 1.244 GB, free: 9.832 MB / 0.9669 GB Notification: Performance of Templates: time 0.01506/1.279, allocations: 7.976 MB / 1.252 GB, free: 1.922 MB / 0.9669 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches