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.001453/0.001453, allocations: 110.2 kB / 16.37 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.001628/0.001628, allocations: 189.5 kB / 17.31 MB, free: 5.613 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.425/1.425, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.545/2.545, allocations: 442.6 MB / 0.7165 GB, free: 14.63 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001686/0.001686, allocations: 63.47 kB / 0.8774 GB, free: 10.91 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3131/0.3149, allocations: 153 MB / 1.027 GB, free: 2.004 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable): time 0.002135/0.317, allocations: 0.8824 MB / 1.028 GB, free: 1.125 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001891/0.3189, allocations: 1.444 MB / 1.029 GB, free: 15.66 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.257e-05/0.319, allocations: 11.83 kB / 1.029 GB, free: 15.65 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0004766/0.3195, allocations: 195.4 kB / 1.029 GB, free: 15.46 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001415/0.3197, allocations: 111.6 kB / 1.029 GB, free: 15.35 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009757/0.3207, allocations: 356.8 kB / 1.03 GB, free: 15.01 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0009417/0.3216, allocations: 0.8777 MB / 1.031 GB, free: 14.13 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001853/0.3218, allocations: 96.17 kB / 1.031 GB, free: 14.03 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003386/0.3222, allocations: 351.4 kB / 1.031 GB, free: 13.69 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00035/0.3225, allocations: 259.4 kB / 1.031 GB, free: 13.43 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.0001284/0.3227, allocations: 48 kB / 1.031 GB, free: 13.39 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002326/0.3229, allocations: 107.9 kB / 1.031 GB, free: 13.28 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0004445/0.3234, allocations: 347.3 kB / 1.032 GB, free: 12.94 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0003222/0.3237, allocations: 274.8 kB / 1.032 GB, free: 12.67 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0008077/0.3245, allocations: 0.9077 MB / 1.033 GB, free: 11.76 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.3245, allocations: 0 / 1.033 GB, free: 11.76 MB / 0.8106 GB Notification: Performance of FrontEnd: time 3.046e-06/0.3245, allocations: 0 / 1.033 GB, free: 11.76 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 8.887e-06/0.3245, allocations: 7.938 kB / 1.033 GB, free: 11.75 MB / 0.8106 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.001489/0.326, allocations: 0.8853 MB / 1.034 GB, free: 10.82 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.825e-05/0.3261, allocations: 8.031 kB / 1.034 GB, free: 10.81 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001801/0.3263, allocations: 52.38 kB / 1.034 GB, free: 10.76 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009394/0.3272, allocations: 0.5448 MB / 1.034 GB, free: 10.17 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.555e-05/0.3273, allocations: 24.61 kB / 1.034 GB, free: 10.15 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001085/0.3274, allocations: 36.38 kB / 1.034 GB, free: 10.11 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004916/0.3279, allocations: 315.6 kB / 1.035 GB, free: 9.793 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.197e-05/0.3279, allocations: 3.938 kB / 1.035 GB, free: 9.789 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.754e-05/0.3279, allocations: 11.98 kB / 1.035 GB, free: 9.777 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.354e-06/0.3279, allocations: 7.938 kB / 1.035 GB, free: 9.77 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003311/0.3283, allocations: 223.7 kB / 1.035 GB, free: 9.551 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001907/0.3302, allocations: 1.18 MB / 1.036 GB, free: 8.312 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006099/0.3308, allocations: 463.8 kB / 1.036 GB, free: 7.832 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000226/0.331, allocations: 178.6 kB / 1.037 GB, free: 7.648 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.522e-05/0.3311, allocations: 8 kB / 1.037 GB, free: 7.641 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004457/0.3315, allocations: 319.7 kB / 1.037 GB, free: 7.309 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=24): time 1.513e-06/0.3315, allocations: 4 kB / 1.037 GB, free: 7.305 MB / 0.8106 GB Notification: Performance of matching and sorting (n=24): time 0.00102/0.3326, allocations: 0.6373 MB / 1.038 GB, free: 6.66 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.213e-05/0.3326, allocations: 114.8 kB / 1.038 GB, free: 6.523 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007413/0.3334, allocations: 0.5916 MB / 1.038 GB, free: 5.926 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 9.132e-05/0.3335, allocations: 49.69 kB / 1.038 GB, free: 5.871 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002825/0.3338, allocations: 217.5 kB / 1.039 GB, free: 5.656 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 5.28e-05/0.3338, allocations: 47.44 kB / 1.039 GB, free: 5.609 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002504/0.3341, allocations: 185.5 kB / 1.039 GB, free: 5.422 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001485/0.3343, allocations: 358.7 kB / 1.039 GB, free: 5.062 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001715/0.3344, allocations: 131.9 kB / 1.039 GB, free: 4.934 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008243/0.3353, allocations: 0.7103 MB / 1.04 GB, free: 4.051 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003496/0.3356, allocations: 292.6 kB / 1.04 GB, free: 3.719 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.839e-06/0.3356, allocations: 4 kB / 1.04 GB, free: 3.715 MB / 0.8106 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0006216/0.3363, allocations: 424.6 kB / 1.041 GB, free: 3.293 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.803e-05/0.3363, allocations: 8 kB / 1.041 GB, free: 3.285 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.738e-06/0.3363, allocations: 4 kB / 1.041 GB, free: 3.281 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.081e-05/0.3363, allocations: 7.938 kB / 1.041 GB, free: 3.273 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001597/0.3365, allocations: 32.67 kB / 1.041 GB, free: 3.242 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.273e-05/0.3365, allocations: 7.938 kB / 1.041 GB, free: 3.234 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001165/0.3377, allocations: 143.7 kB / 1.041 GB, free: 3.098 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.51e-05/0.3377, allocations: 11.98 kB / 1.041 GB, free: 3.086 MB / 0.8106 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.000323/0.3381, allocations: 261.6 kB / 1.041 GB, free: 2.824 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.681e-05/0.3381, allocations: 47.52 kB / 1.041 GB, free: 2.777 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.727e-05/0.3382, allocations: 51.31 kB / 1.041 GB, free: 2.727 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.077e-06/0.3382, allocations: 7.938 kB / 1.041 GB, free: 2.719 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.957e-06/0.3383, allocations: 0 / 1.041 GB, free: 2.719 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.496e-06/0.3383, allocations: 7.969 kB / 1.041 GB, free: 2.711 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004412/0.3387, allocations: 405.2 kB / 1.042 GB, free: 2.266 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.887e-06/0.3387, allocations: 4 kB / 1.042 GB, free: 2.262 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.069e-05/0.3388, allocations: 3.938 kB / 1.042 GB, free: 2.258 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.433e-06/0.3388, allocations: 11.98 kB / 1.042 GB, free: 2.246 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.114e-05/0.3388, allocations: 8 kB / 1.042 GB, free: 2.238 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.639e-06/0.3388, allocations: 3.938 kB / 1.042 GB, free: 2.234 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.3388, allocations: 4 kB / 1.042 GB, free: 2.23 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006865/0.3395, allocations: 0.5074 MB / 1.042 GB, free: 1.699 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001284/0.3396, allocations: 128.5 kB / 1.042 GB, free: 1.555 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.889e-05/0.3397, allocations: 8 kB / 1.042 GB, free: 1.547 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001513/0.3399, allocations: 27.91 kB / 1.042 GB, free: 1.52 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.211e-05/0.34, allocations: 31.97 kB / 1.042 GB, free: 1.488 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.82e-05/0.34, allocations: 8 kB / 1.042 GB, free: 1.48 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0004972/0.3405, allocations: 435.1 kB / 1.043 GB, free: 1.051 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.11e-07/0.3405, allocations: 0 / 1.043 GB, free: 1.051 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0004523/0.341, allocations: 108 kB / 1.043 GB, free: 0.9453 MB / 0.8106 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.000258/0.3412, allocations: 149.3 kB / 1.043 GB, free: 0.7891 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0005407/0.3418, allocations: 347.5 kB / 1.043 GB, free: 460 kB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.3418, allocations: 0 / 1.043 GB, free: 460 kB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0002464/0.342, allocations: 195.8 kB / 1.043 GB, free: 264 kB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003018/0.3423, allocations: 46.77 kB / 1.043 GB, free: 220 kB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001213/0.3436, allocations: 0.8259 MB / 1.044 GB, free: 15.35 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004059/0.344, allocations: 0.8389 MB / 1.045 GB, free: 14.48 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0002078/0.3442, allocations: 94.92 kB / 1.045 GB, free: 14.39 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.124e-05/0.3443, allocations: 35.42 kB / 1.045 GB, free: 14.36 MB / 0.8262 GB Notification: Performance of SimCode: time 2.4e-07/0.3443, allocations: 4 kB / 1.045 GB, free: 14.36 MB / 0.8262 GB Notification: Performance of Templates: time 0.01451/0.3588, allocations: 7.933 MB / 1.053 GB, free: 6.492 MB / 0.8262 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 -s gbode -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/jenkins1/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