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/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 1.7/1.7, allocations: 390.4 MB / 397.7 MB, free: 11.23 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008891/0.0008891, allocations: 177.3 kB / 490.8 MB, free: 1.953 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.049/1.049, allocations: 221.4 MB / 0.7863 GB, free: 13.74 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007919/0.000792, allocations: 83.19 kB / 0.9264 GB, free: 14.27 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 6.211e-06/6.251e-06, allocations: 4 kB / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1638/0.1638, allocations: 143 MB / 1.212 GB, free: 40.1 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4409/0.6047, allocations: 149.7 MB / 1.358 GB, free: 17.55 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001648/0.6049, allocations: 72.53 kB / 1.358 GB, free: 17.55 MB / 0.823 GB Notification: Performance of FrontEnd: time 0.1082/0.7132, allocations: 45.05 MB / 1.402 GB, free: 6.914 MB / 0.823 GB Notification: Performance of Transformations before backend: time 2.668e-05/0.7132, allocations: 7.375 kB / 1.402 GB, free: 6.914 MB / 0.823 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.000883/0.7141, allocations: 0.6077 MB / 1.402 GB, free: 22.4 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.007e-05/0.7142, allocations: 8.75 kB / 1.402 GB, free: 22.4 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001911/0.7144, allocations: 53.97 kB / 1.402 GB, free: 22.38 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008039/0.7152, allocations: 0.5371 MB / 1.403 GB, free: 22.07 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.553e-05/0.7152, allocations: 4.219 kB / 1.403 GB, free: 22.07 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001052/0.7153, allocations: 29.83 kB / 1.403 GB, free: 22.07 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003062/0.7156, allocations: 229.1 kB / 1.403 GB, free: 22.03 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003568/0.716, allocations: 300.8 kB / 1.404 GB, free: 21.92 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.434e-06/0.716, allocations: 1.375 kB / 1.404 GB, free: 21.92 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.28e-05/0.716, allocations: 3.984 kB / 1.404 GB, free: 21.91 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.051e-06/0.716, allocations: 7.281 kB / 1.404 GB, free: 21.91 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001518/0.7176, allocations: 1.12 MB / 1.405 GB, free: 21.25 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004655/0.718, allocations: 465.6 kB / 1.405 GB, free: 20.96 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000166/0.7182, allocations: 185.5 kB / 1.405 GB, free: 20.83 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.194e-05/0.7182, allocations: 11.98 kB / 1.405 GB, free: 20.82 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002507/0.7185, allocations: 271.8 kB / 1.406 GB, free: 20.59 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=24): time 1.724e-06/0.7185, allocations: 0 / 1.406 GB, free: 20.59 MB / 0.8386 GB Notification: Performance of matching and sorting (n=24): time 0.0005572/0.7191, allocations: 396.5 kB / 1.406 GB, free: 20.27 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.676e-05/0.7191, allocations: 114 kB / 1.406 GB, free: 20.14 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004488/0.7196, allocations: 0.5226 MB / 1.407 GB, free: 19.72 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 6.791e-05/0.7196, allocations: 33.7 kB / 1.407 GB, free: 19.68 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001146/0.7198, allocations: 151.3 kB / 1.407 GB, free: 19.54 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.22e-05/0.7198, allocations: 42.02 kB / 1.407 GB, free: 19.5 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.394e-05/0.7198, allocations: 7.25 kB / 1.407 GB, free: 19.5 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 9.891e-05/0.7199, allocations: 359.1 kB / 1.407 GB, free: 19.16 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001281/0.72, allocations: 126.6 kB / 1.407 GB, free: 19.07 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004323/0.7205, allocations: 0.6959 MB / 1.408 GB, free: 18.29 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000399/0.7209, allocations: 224.4 kB / 1.408 GB, free: 18.11 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.7209, allocations: 0 / 1.408 GB, free: 18.11 MB / 0.8386 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0006504/0.7216, allocations: 428.8 kB / 1.409 GB, free: 17.76 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 9.388e-06/0.7216, allocations: 8.375 kB / 1.409 GB, free: 17.75 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.959e-06/0.7216, allocations: 4 kB / 1.409 GB, free: 17.75 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.284e-05/0.7216, allocations: 8 kB / 1.409 GB, free: 17.74 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001254/0.7217, allocations: 39.66 kB / 1.409 GB, free: 17.71 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.95e-06/0.7217, allocations: 4 kB / 1.409 GB, free: 17.7 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001055/0.7228, allocations: 88.12 kB / 1.409 GB, free: 17.62 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.962e-05/0.7228, allocations: 15.98 kB / 1.409 GB, free: 17.6 MB / 0.8386 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.y[1],booTimTab.y[2],$PRE.booTimTab.intTimTab.y[1],booTimTab.intTimTab.y[1],$PRE.booTimTab.intTimTab.y[2],booTimTab.intTimTab.y[2],$PRE.booTimTab.intTimTab.idx,booTimTab.intTimTab.idx,$whenCondition5,booTimTabOneRow.y[1],booTimTabOneRow.y[2],$PRE.booTimTabOneRow.intTimTab.y[1],booTimTabOneRow.intTimTab.y[1],$PRE.booTimTabOneRow.intTimTab.y[2],booTimTabOneRow.intTimTab.y[2],$PRE.booTimTabOneRow.intTimTab.idx,booTimTabOneRow.intTimTab.idx,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,booTimTabTwi.y[1],booTimTabTwi.y[2],$PRE.booTimTabTwi.intTimTab.y[1],booTimTabTwi.intTimTab.y[1],$PRE.booTimTabTwi.intTimTab.y[2],booTimTabTwi.intTimTab.y[2],$PRE.booTimTabTwi.intTimTab.idx,booTimTabTwi.intTimTab.idx) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001262/0.723, allocations: 148.2 kB / 1.409 GB, free: 17.46 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.803e-05/0.723, allocations: 43.44 kB / 1.409 GB, free: 17.42 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.101e-05/0.7231, allocations: 54.55 kB / 1.409 GB, free: 17.38 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-06/0.7231, allocations: 0 / 1.409 GB, free: 17.38 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.529e-06/0.7231, allocations: 4 kB / 1.409 GB, free: 17.37 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.7231, allocations: 3.906 kB / 1.409 GB, free: 17.37 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002336/0.7234, allocations: 362.5 kB / 1.409 GB, free: 17.05 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.7234, allocations: 4 kB / 1.409 GB, free: 17.04 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.851e-05/0.7234, allocations: 7.984 kB / 1.409 GB, free: 17.04 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.7234, allocations: 0 / 1.409 GB, free: 17.04 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.767e-05/0.7234, allocations: 11.19 kB / 1.409 GB, free: 17.03 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.883e-06/0.7234, allocations: 4 kB / 1.409 GB, free: 17.02 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.7234, allocations: 7.891 kB / 1.409 GB, free: 17.02 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004086/0.7239, allocations: 443.2 kB / 1.41 GB, free: 16.63 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 8.324e-05/0.724, allocations: 143.5 kB / 1.41 GB, free: 16.48 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.448e-05/0.724, allocations: 7.031 kB / 1.41 GB, free: 16.48 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001536/0.7242, allocations: 19.97 kB / 1.41 GB, free: 16.46 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.719e-05/0.7242, allocations: 26.66 kB / 1.41 GB, free: 16.44 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.44e-05/0.7243, allocations: 22.86 kB / 1.41 GB, free: 16.42 MB / 0.8386 GB Notification: Performance of sort global known variables: time 0.0003094/0.7246, allocations: 412.4 kB / 1.41 GB, free: 16.1 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0004025/0.725, allocations: 103.9 kB / 1.41 GB, free: 16 MB / 0.8386 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001705/0.7252, allocations: 149.4 kB / 1.411 GB, free: 15.85 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0003692/0.7255, allocations: 341.9 kB / 1.411 GB, free: 15.6 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.342e-06/0.7256, allocations: 0.75 kB / 1.411 GB, free: 15.6 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001588/0.7257, allocations: 181.1 kB / 1.411 GB, free: 15.48 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001868/0.7259, allocations: 39.55 kB / 1.411 GB, free: 15.45 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008302/0.7267, allocations: 0.6702 MB / 1.412 GB, free: 14.86 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003989/0.7272, allocations: 0.8845 MB / 1.413 GB, free: 13.97 MB / 0.8386 GB Notification: Performance of SimCode: time 1.253e-06/0.7272, allocations: 0 / 1.413 GB, free: 13.97 MB / 0.8386 GB Notification: Performance of Templates: time 0.01058/0.7377, allocations: 6.696 MB / 1.419 GB, free: 7.367 MB / 0.8386 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","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches