Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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_10_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_10_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.001475/0.001475, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00221/0.00221, allocations: 195.2 kB / 16.53 MB, free: 6.699 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.459/1.459, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.668/2.668, allocations: 437 MB / 0.7103 GB, free: 5.109 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001447/0.001447, allocations: 63.91 kB / 0.8692 GB, free: 4.633 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7738/0.7753, allocations: 151.6 MB / 1.017 GB, free: 2.516 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable): time 0.002869/0.7782, allocations: 0.8574 MB / 1.018 GB, free: 1.656 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.002442/0.7807, allocations: 1.459 MB / 1.02 GB, free: 184 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001138/0.7808, allocations: 4 kB / 1.02 GB, free: 180 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.0005653/0.7814, allocations: 199.4 kB / 1.02 GB, free: 15.98 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001421/0.7816, allocations: 119.6 kB / 1.02 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.00106/0.7826, allocations: 346.5 kB / 1.02 GB, free: 15.53 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0009052/0.7836, allocations: 0.8621 MB / 1.021 GB, free: 14.67 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002482/0.7838, allocations: 92.25 kB / 1.021 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003729/0.7842, allocations: 347.4 kB / 1.021 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003976/0.7846, allocations: 267.3 kB / 1.022 GB, free: 13.97 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 0.0001523/0.7848, allocations: 44 kB / 1.022 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000298/0.7851, allocations: 103.9 kB / 1.022 GB, free: 13.83 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0004565/0.7855, allocations: 347.3 kB / 1.022 GB, free: 13.49 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0003363/0.7859, allocations: 274.8 kB / 1.022 GB, free: 13.22 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0008871/0.7868, allocations: 0.8979 MB / 1.023 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.7868, allocations: 4 kB / 1.023 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.114e-06/0.7868, allocations: 0 / 1.023 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.47e-05/0.7868, allocations: 0 / 1.023 GB, free: 12.32 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.001687/0.7885, allocations: 0.8956 MB / 1.024 GB, free: 11.37 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 5.156e-05/0.7886, allocations: 11.98 kB / 1.024 GB, free: 11.36 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002093/0.7888, allocations: 48.47 kB / 1.024 GB, free: 11.31 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007895/0.7896, allocations: 0.5448 MB / 1.025 GB, free: 10.72 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.643e-05/0.7896, allocations: 24.61 kB / 1.025 GB, free: 10.7 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001073/0.7897, allocations: 40.38 kB / 1.025 GB, free: 10.66 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004803/0.7902, allocations: 308.3 kB / 1.025 GB, free: 10.35 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.084e-05/0.7903, allocations: 4.188 kB / 1.025 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.73e-05/0.7903, allocations: 15.91 kB / 1.025 GB, free: 10.33 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.207e-06/0.7903, allocations: 4 kB / 1.025 GB, free: 10.32 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003242/0.7906, allocations: 215.8 kB / 1.025 GB, free: 10.11 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001901/0.7926, allocations: 1.184 MB / 1.027 GB, free: 8.871 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006193/0.7932, allocations: 463.8 kB / 1.027 GB, free: 8.391 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002478/0.7934, allocations: 186.5 kB / 1.027 GB, free: 8.199 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.516e-05/0.7935, allocations: 3.938 kB / 1.027 GB, free: 8.195 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000433/0.7939, allocations: 329.6 kB / 1.027 GB, free: 7.852 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=24): time 2.475e-06/0.7939, allocations: 0 / 1.027 GB, free: 7.852 MB / 0.7794 GB Notification: Performance of matching and sorting (n=24): time 0.001045/0.795, allocations: 0.6257 MB / 1.028 GB, free: 7.219 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.642e-05/0.7951, allocations: 118.7 kB / 1.028 GB, free: 7.078 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006768/0.7958, allocations: 0.5994 MB / 1.029 GB, free: 6.477 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 8.544e-05/0.7959, allocations: 45.7 kB / 1.029 GB, free: 6.426 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002459/0.7961, allocations: 219.3 kB / 1.029 GB, free: 6.207 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 5.695e-05/0.7962, allocations: 55.44 kB / 1.029 GB, free: 6.152 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002563/0.7964, allocations: 181.5 kB / 1.029 GB, free: 5.969 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001681/0.7966, allocations: 354.8 kB / 1.03 GB, free: 5.613 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001708/0.7968, allocations: 131.9 kB / 1.03 GB, free: 5.484 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008306/0.7976, allocations: 0.7188 MB / 1.03 GB, free: 4.594 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003512/0.798, allocations: 292.6 kB / 1.031 GB, free: 4.262 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.18e-06/0.798, allocations: 0 / 1.031 GB, free: 4.262 MB / 0.7794 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0006948/0.7987, allocations: 432.5 kB / 1.031 GB, free: 3.832 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.265e-05/0.7987, allocations: 8.375 kB / 1.031 GB, free: 3.824 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.33e-05/0.7988, allocations: 8 kB / 1.031 GB, free: 3.816 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.379e-05/0.7988, allocations: 7.938 kB / 1.031 GB, free: 3.809 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001823/0.799, allocations: 31.86 kB / 1.031 GB, free: 3.777 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.57e-05/0.799, allocations: 11.98 kB / 1.031 GB, free: 3.766 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001283/0.8003, allocations: 131.9 kB / 1.031 GB, free: 3.637 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.674e-05/0.8003, allocations: 15.98 kB / 1.031 GB, free: 3.621 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.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.0003199/0.8006, allocations: 257.7 kB / 1.032 GB, free: 3.363 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.295e-05/0.8007, allocations: 43.44 kB / 1.032 GB, free: 3.32 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.05e-05/0.8008, allocations: 51.31 kB / 1.032 GB, free: 3.27 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.861e-06/0.8008, allocations: 4 kB / 1.032 GB, free: 3.266 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.274e-06/0.8008, allocations: 4 kB / 1.032 GB, free: 3.262 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.634e-06/0.8008, allocations: 7.984 kB / 1.032 GB, free: 3.254 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004344/0.8013, allocations: 409.2 kB / 1.032 GB, free: 2.805 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/0.8013, allocations: 0 / 1.032 GB, free: 2.805 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.335e-05/0.8013, allocations: 11.92 kB / 1.032 GB, free: 2.793 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.03e-06/0.8013, allocations: 4 kB / 1.032 GB, free: 2.789 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.459e-05/0.8014, allocations: 11.94 kB / 1.032 GB, free: 2.777 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.8014, allocations: 0 / 1.032 GB, free: 2.777 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.8014, allocations: 0 / 1.032 GB, free: 2.777 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006464/0.802, allocations: 0.5112 MB / 1.033 GB, free: 2.242 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000101/0.8021, allocations: 124.6 kB / 1.033 GB, free: 2.102 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.576e-05/0.8022, allocations: 15.92 kB / 1.033 GB, free: 2.086 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001564/0.8024, allocations: 19.92 kB / 1.033 GB, free: 2.066 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.478e-05/0.8025, allocations: 23.97 kB / 1.033 GB, free: 2.043 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.378e-05/0.8025, allocations: 16 kB / 1.033 GB, free: 2.027 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0004593/0.803, allocations: 439 kB / 1.033 GB, free: 1.602 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.803, allocations: 4 kB / 1.033 GB, free: 1.598 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0004778/0.8035, allocations: 103.9 kB / 1.033 GB, free: 1.496 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 (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.0002688/0.8037, allocations: 149.3 kB / 1.033 GB, free: 1.34 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0005629/0.8043, allocations: 376.1 kB / 1.034 GB, free: 0.9727 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.8043, allocations: 0 / 1.034 GB, free: 0.9727 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0002305/0.8045, allocations: 191.8 kB / 1.034 GB, free: 0.7852 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003043/0.8049, allocations: 42.08 kB / 1.034 GB, free: 0.7461 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001259/0.8061, allocations: 0.8366 MB / 1.035 GB, free: 15.88 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004207/0.8066, allocations: 0.835 MB / 1.036 GB, free: 15.02 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0002276/0.8068, allocations: 90.92 kB / 1.036 GB, free: 14.93 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.837e-05/0.8069, allocations: 39.42 kB / 1.036 GB, free: 14.89 MB / 0.795 GB Notification: Performance of SimCode: time 4e-07/0.8069, allocations: 0 / 1.036 GB, free: 14.89 MB / 0.795 GB Notification: Performance of Templates: time 0.01512/0.822, allocations: 7.926 MB / 1.044 GB, free: 7.051 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_TimeTable.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches