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.00127/0.00127, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001277/0.001277, allocations: 192.1 kB / 16.25 MB, free: 6.633 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.539/1.539, allocations: 222.9 MB / 239.9 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.114/3.114, allocations: 472.6 MB / 0.7448 GB, free: 4.902 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001302/0.001302, allocations: 64.66 kB / 0.9116 GB, free: 33.64 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4433/0.4446, allocations: 159.9 MB / 1.068 GB, free: 10.78 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable): time 0.00357/0.4483, allocations: 0.9133 MB / 1.069 GB, free: 9.863 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002935/0.4513, allocations: 1.451 MB / 1.07 GB, free: 8.398 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001829/0.4515, allocations: 8 kB / 1.07 GB, free: 8.391 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0006202/0.4522, allocations: 183.6 kB / 1.07 GB, free: 8.211 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.000248/0.4524, allocations: 103.7 kB / 1.07 GB, free: 8.109 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.001253/0.4537, allocations: 338.2 kB / 1.071 GB, free: 7.785 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.001222/0.4549, allocations: 0.8658 MB / 1.072 GB, free: 6.918 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003/0.4552, allocations: 92.23 kB / 1.072 GB, free: 6.828 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009387/0.4562, allocations: 351.4 kB / 1.072 GB, free: 6.484 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008278/0.457, allocations: 267.2 kB / 1.072 GB, free: 6.223 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.0003169/0.4574, allocations: 48 kB / 1.072 GB, free: 6.176 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005556/0.4579, allocations: 107.9 kB / 1.072 GB, free: 6.07 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0006369/0.4586, allocations: 347.3 kB / 1.073 GB, free: 5.73 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0007259/0.4593, allocations: 278.8 kB / 1.073 GB, free: 5.457 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.001563/0.4609, allocations: 0.8925 MB / 1.074 GB, free: 4.562 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 1.055e-05/0.4609, allocations: 0 / 1.074 GB, free: 4.562 MB / 0.8262 GB Notification: Performance of FrontEnd: time 5.18e-06/0.4609, allocations: 3.938 kB / 1.074 GB, free: 4.559 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 3.619e-05/0.461, allocations: 3.938 kB / 1.074 GB, free: 4.555 MB / 0.8262 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.003161/0.4641, allocations: 0.892 MB / 1.075 GB, free: 3.605 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 6.899e-05/0.4642, allocations: 8.031 kB / 1.075 GB, free: 3.598 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003131/0.4645, allocations: 56.38 kB / 1.075 GB, free: 3.543 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001052/0.4656, allocations: 0.5448 MB / 1.075 GB, free: 2.961 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.658e-05/0.4656, allocations: 20.61 kB / 1.075 GB, free: 2.941 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001336/0.4658, allocations: 36.38 kB / 1.075 GB, free: 2.906 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006459/0.4664, allocations: 314.2 kB / 1.076 GB, free: 2.586 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.721e-05/0.4665, allocations: 192 / 1.076 GB, free: 2.586 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.82e-05/0.4665, allocations: 11.92 kB / 1.076 GB, free: 2.574 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.216e-05/0.4665, allocations: 7.938 kB / 1.076 GB, free: 2.566 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004983/0.467, allocations: 219.8 kB / 1.076 GB, free: 2.352 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002291/0.4693, allocations: 1.184 MB / 1.077 GB, free: 1.109 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006869/0.47, allocations: 471.7 kB / 1.077 GB, free: 0.6211 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002481/0.4703, allocations: 178.6 kB / 1.078 GB, free: 448 kB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.065e-05/0.4703, allocations: 0 / 1.078 GB, free: 448 kB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005183/0.4709, allocations: 329.6 kB / 1.078 GB, free: 96 kB / 0.8262 GB Notification: Performance of pre-optimization done (n=24): time 1.563e-06/0.4709, allocations: 0 / 1.078 GB, free: 96 kB / 0.8262 GB Notification: Performance of matching and sorting (n=24): time 0.001266/0.4721, allocations: 0.6221 MB / 1.079 GB, free: 15.46 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001231/0.4723, allocations: 126.7 kB / 1.079 GB, free: 15.31 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00112/0.4734, allocations: 0.5916 MB / 1.079 GB, free: 14.71 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 0.0001032/0.4735, allocations: 49.69 kB / 1.079 GB, free: 14.66 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003335/0.4739, allocations: 222.2 kB / 1.08 GB, free: 14.44 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 5.801e-05/0.4739, allocations: 59.28 kB / 1.08 GB, free: 14.38 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003628/0.4743, allocations: 181.5 kB / 1.08 GB, free: 14.2 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0002299/0.4745, allocations: 358.8 kB / 1.08 GB, free: 13.84 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001832/0.4747, allocations: 128 kB / 1.08 GB, free: 13.71 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001012/0.4757, allocations: 0.7176 MB / 1.081 GB, free: 12.82 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003783/0.4761, allocations: 296.6 kB / 1.081 GB, free: 12.48 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.947e-06/0.4761, allocations: 4 kB / 1.081 GB, free: 12.48 MB / 0.8419 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0006698/0.4768, allocations: 424.6 kB / 1.082 GB, free: 12.06 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 3.064e-05/0.4769, allocations: 9.719 kB / 1.082 GB, free: 12.05 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.012e-05/0.4769, allocations: 4 kB / 1.082 GB, free: 12.05 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.228e-05/0.4769, allocations: 8.312 kB / 1.082 GB, free: 12.04 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001717/0.4771, allocations: 35.92 kB / 1.082 GB, free: 12 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.172e-05/0.4771, allocations: 4 kB / 1.082 GB, free: 12 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001328/0.4785, allocations: 119.9 kB / 1.082 GB, free: 11.88 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.806e-05/0.4785, allocations: 12 kB / 1.082 GB, free: 11.87 MB / 0.8419 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.0004856/0.479, allocations: 269.6 kB / 1.082 GB, free: 11.6 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.253e-05/0.4791, allocations: 39.53 kB / 1.082 GB, free: 11.56 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001004/0.4792, allocations: 56.05 kB / 1.082 GB, free: 11.5 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.088e-06/0.4792, allocations: 4 kB / 1.082 GB, free: 11.5 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.077e-05/0.4792, allocations: 4 kB / 1.082 GB, free: 11.49 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.43e-06/0.4792, allocations: 0 / 1.082 GB, free: 11.49 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004539/0.4797, allocations: 405.2 kB / 1.083 GB, free: 11.05 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.4797, allocations: 4 kB / 1.083 GB, free: 11.04 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.448e-05/0.4797, allocations: 8 kB / 1.083 GB, free: 11.04 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.881e-06/0.4798, allocations: 4 kB / 1.083 GB, free: 11.03 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.847e-05/0.4798, allocations: 19.86 kB / 1.083 GB, free: 11.01 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.855e-06/0.4798, allocations: 0 / 1.083 GB, free: 11.01 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/0.4798, allocations: 7.875 kB / 1.083 GB, free: 11 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006802/0.4805, allocations: 0.5123 MB / 1.083 GB, free: 10.47 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001192/0.4806, allocations: 124.7 kB / 1.083 GB, free: 10.33 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.206e-05/0.4807, allocations: 11.94 kB / 1.083 GB, free: 10.32 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000158/0.4808, allocations: 19.97 kB / 1.083 GB, free: 10.3 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.557e-05/0.4809, allocations: 27.97 kB / 1.083 GB, free: 10.27 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.407e-05/0.481, allocations: 12 kB / 1.083 GB, free: 10.26 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0005313/0.4815, allocations: 439 kB / 1.084 GB, free: 9.828 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.41e-07/0.4815, allocations: 0 / 1.084 GB, free: 9.828 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0005135/0.482, allocations: 111.8 kB / 1.084 GB, free: 9.719 MB / 0.8419 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.0002963/0.4824, allocations: 145.5 kB / 1.084 GB, free: 9.57 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0007463/0.4831, allocations: 371.5 kB / 1.084 GB, free: 9.207 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.4831, allocations: 0.75 kB / 1.084 GB, free: 9.207 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0002605/0.4834, allocations: 191.8 kB / 1.084 GB, free: 9.02 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003169/0.4837, allocations: 43.72 kB / 1.085 GB, free: 8.98 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001427/0.4851, allocations: 0.913 MB / 1.085 GB, free: 8.031 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000831/0.486, allocations: 0.835 MB / 1.086 GB, free: 7.168 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0002621/0.4863, allocations: 94.92 kB / 1.086 GB, free: 7.078 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.746e-05/0.4864, allocations: 39.42 kB / 1.086 GB, free: 7.039 MB / 0.8419 GB Notification: Performance of SimCode: time 8.42e-07/0.4864, allocations: 0 / 1.086 GB, free: 7.039 MB / 0.8419 GB Notification: Performance of Templates: time 0.01546/0.5018, allocations: 7.922 MB / 1.094 GB, free: 15.19 MB / 0.8575 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