Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTableNegativeStartTime.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.Continuous.Sources.Validation.TimeTableNegativeStartTime,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|timTabLin.y.1.|timTabLinCon.y.1.|timTabCon.y.1.|timTabLinHol.y.1.|timTabLinDer.y.1.",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTableNegativeStartTime") translateModel(Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTableNegativeStartTime,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|timTabLin.y.1.|timTabLinCon.y.1.|timTabCon.y.1.|timTabLinHol.y.1.|timTabLinDer.y.1.",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTableNegativeStartTime") [: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.719/1.719, allocations: 390.4 MB / 397.7 MB, free: 11.29 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.0009051/0.0009051, allocations: 174.8 kB / 490.8 MB, free: 1.957 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.078/1.078, allocations: 221.3 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.0008459/0.0008459, allocations: 97.78 kB / 0.9264 GB, free: 14.27 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 7.093e-06/7.193e-06, allocations: 4 kB / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1768/0.1768, allocations: 143 MB / 1.212 GB, free: 40.12 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4676/0.6444, allocations: 153.2 MB / 1.361 GB, free: 17.27 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001825/0.6446, allocations: 80.53 kB / 1.361 GB, free: 17.27 MB / 0.823 GB Notification: Performance of FrontEnd: time 0.05176/0.6964, allocations: 23.09 MB / 1.384 GB, free: 13.22 MB / 0.823 GB Notification: Performance of Transformations before backend: time 4.722e-05/0.6964, allocations: 18.34 kB / 1.384 GB, free: 13.21 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: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.000975/0.6974, allocations: 0.7784 MB / 1.385 GB, free: 28.57 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 2.91e-05/0.6975, allocations: 9.188 kB / 1.385 GB, free: 28.57 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000145/0.6976, allocations: 72.75 kB / 1.385 GB, free: 28.53 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001172/0.6988, allocations: 0.6925 MB / 1.385 GB, free: 28.14 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.153e-05/0.6988, allocations: 9.109 kB / 1.385 GB, free: 28.14 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.169e-05/0.6989, allocations: 11.97 kB / 1.385 GB, free: 28.14 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001653/0.699, allocations: 91.66 kB / 1.385 GB, free: 28.13 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002182/0.6993, allocations: 192.3 kB / 1.386 GB, free: 28.02 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.047e-06/0.6993, allocations: 1.344 kB / 1.386 GB, free: 28.02 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.851e-05/0.6993, allocations: 4.375 kB / 1.386 GB, free: 28.02 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.521e-06/0.6993, allocations: 2.375 kB / 1.386 GB, free: 28.02 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001039/0.7003, allocations: 1.066 MB / 1.387 GB, free: 27.27 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002789/0.7006, allocations: 245.3 kB / 1.387 GB, free: 27.13 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001135/0.7008, allocations: 106.1 kB / 1.387 GB, free: 27.08 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.712e-05/0.7008, allocations: 5.547 kB / 1.387 GB, free: 27.08 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002008/0.701, allocations: 201.9 kB / 1.387 GB, free: 26.95 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=25): time 1.753e-06/0.701, allocations: 0 / 1.387 GB, free: 26.95 MB / 0.8386 GB Notification: Performance of matching and sorting (n=25): time 0.0004715/0.7015, allocations: 286.5 kB / 1.387 GB, free: 26.85 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.243e-05/0.7015, allocations: 161.5 kB / 1.388 GB, free: 26.66 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00104/0.7026, allocations: 0.9107 MB / 1.389 GB, free: 26.44 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.642e-05/0.7026, allocations: 33.12 kB / 1.389 GB, free: 26.41 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001065/0.7027, allocations: 177.8 kB / 1.389 GB, free: 26.29 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 5.036e-05/0.7028, allocations: 73.19 kB / 1.389 GB, free: 26.24 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.937e-05/0.7028, allocations: 4 kB / 1.389 GB, free: 26.23 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 9.818e-05/0.7029, allocations: 331.1 kB / 1.389 GB, free: 25.92 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003272/0.7032, allocations: 233.4 kB / 1.389 GB, free: 25.9 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000332/0.7036, allocations: 320.6 kB / 1.39 GB, free: 25.79 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006779/0.7043, allocations: 319.8 kB / 1.39 GB, free: 25.72 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.7043, allocations: 1.781 kB / 1.39 GB, free: 25.72 MB / 0.8386 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001243/0.7055, allocations: 0.745 MB / 1.391 GB, free: 25.54 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.168e-05/0.7055, allocations: 8.25 kB / 1.391 GB, free: 25.53 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.183e-06/0.7056, allocations: 2.688 kB / 1.391 GB, free: 25.53 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.744e-05/0.7056, allocations: 9.453 kB / 1.391 GB, free: 25.53 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003884/0.706, allocations: 116 kB / 1.391 GB, free: 25.5 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.386e-06/0.706, allocations: 5.125 kB / 1.391 GB, free: 25.5 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002862/0.7063, allocations: 32.98 kB / 1.391 GB, free: 25.48 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.45e-05/0.7064, allocations: 40.61 kB / 1.391 GB, free: 25.48 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 25 ($whenCondition5,$PRE.timTabLin.tab.nextTimeEvent,$whenCondition4,$PRE.timTabLinHol.tab.nextTimeEvent,$whenCondition3,$PRE.timTabLinDer.tab.nextTimeEvent,$whenCondition2,$PRE.timTabCon.tab.nextTimeEvent,$whenCondition1,$PRE.timTabLinCon.tab.nextTimeEvent,timTabLinCon.tab.nextTimeEvent,$PRE.timTabLinCon.tab.nextTimeEventScaled,timTabLinCon.tab.nextTimeEventScaled,timTabCon.tab.nextTimeEvent,$PRE.timTabCon.tab.nextTimeEventScaled,timTabCon.tab.nextTimeEventScaled,timTabLinDer.tab.nextTimeEvent,$PRE.timTabLinDer.tab.nextTimeEventScaled,timTabLinDer.tab.nextTimeEventScaled,timTabLinHol.tab.nextTimeEvent,$PRE.timTabLinHol.tab.nextTimeEventScaled,timTabLinHol.tab.nextTimeEventScaled,timTabLin.tab.nextTimeEvent,$PRE.timTabLin.tab.nextTimeEventScaled,timTabLin.tab.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (75): * Single equations (assignments): 75 * 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.0001049/0.7065, allocations: 134.5 kB / 1.391 GB, free: 25.35 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.141e-05/0.7066, allocations: 75.81 kB / 1.391 GB, free: 25.31 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004551/0.707, allocations: 320.5 kB / 1.391 GB, free: 25.22 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.23e-06/0.707, allocations: 8.062 kB / 1.391 GB, free: 25.21 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.707, allocations: 14.8 kB / 1.391 GB, free: 25.2 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.57e-06/0.7071, allocations: 1.281 kB / 1.391 GB, free: 25.2 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003582/0.7074, allocations: 447.3 kB / 1.392 GB, free: 24.95 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.015e-06/0.7074, allocations: 5.359 kB / 1.392 GB, free: 24.94 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.875e-05/0.7075, allocations: 22 kB / 1.392 GB, free: 24.94 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.619e-06/0.7075, allocations: 3.281 kB / 1.392 GB, free: 24.94 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.067e-05/0.7076, allocations: 12.58 kB / 1.392 GB, free: 24.94 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.776e-06/0.7076, allocations: 2.469 kB / 1.392 GB, free: 24.94 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/0.7076, allocations: 4.875 kB / 1.392 GB, free: 24.93 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004149/0.708, allocations: 404.5 kB / 1.392 GB, free: 24.69 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001407/0.7081, allocations: 171.5 kB / 1.392 GB, free: 24.55 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.234e-05/0.7082, allocations: 7.719 kB / 1.392 GB, free: 24.55 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001879/0.7084, allocations: 18.02 kB / 1.392 GB, free: 24.54 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.82e-05/0.7085, allocations: 21.69 kB / 1.393 GB, free: 24.53 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.498e-05/0.7085, allocations: 17.05 kB / 1.393 GB, free: 24.53 MB / 0.8386 GB Notification: Performance of sort global known variables: time 0.0006211/0.7092, allocations: 0.578 MB / 1.393 GB, free: 24.37 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0004429/0.7096, allocations: 133.1 kB / 1.393 GB, free: 24.35 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition5,timTabLin.tab.nextTimeEvent,timTabLin.tab.nextTimeEventScaled,$whenCondition4,timTabLinHol.tab.nextTimeEvent,timTabLinHol.tab.nextTimeEventScaled,$whenCondition3,timTabLinDer.tab.nextTimeEvent,timTabLinDer.tab.nextTimeEventScaled,$whenCondition2,timTabCon.tab.nextTimeEvent,timTabCon.tab.nextTimeEventScaled,$whenCondition1,timTabLinCon.tab.nextTimeEvent,timTabLinCon.tab.nextTimeEventScaled) * Number of discrete states: 10 (timTabLinCon.tab.nextTimeEvent,timTabLinCon.tab.nextTimeEventScaled,timTabCon.tab.nextTimeEvent,timTabCon.tab.nextTimeEventScaled,timTabLinDer.tab.nextTimeEvent,timTabLinDer.tab.nextTimeEventScaled,timTabLinHol.tab.nextTimeEvent,timTabLinHol.tab.nextTimeEventScaled,timTabLin.tab.nextTimeEvent,timTabLin.tab.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 10 * 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.0006336/0.7102, allocations: 378.3 kB / 1.394 GB, free: 24.15 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0004845/0.7107, allocations: 395 kB / 1.394 GB, free: 24.11 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.443e-06/0.7107, allocations: 0 / 1.394 GB, free: 24.11 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.000142/0.7109, allocations: 107.6 kB / 1.394 GB, free: 24.11 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007068/0.7116, allocations: 179.4 kB / 1.394 GB, free: 24.05 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001299/0.7129, allocations: 0.8966 MB / 1.395 GB, free: 23.7 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005777/0.7135, allocations: 1.003 MB / 1.396 GB, free: 22.88 MB / 0.8386 GB Notification: Performance of SimCode: time 2.7e-07/0.7135, allocations: 0 / 1.396 GB, free: 22.88 MB / 0.8386 GB Notification: Performance of Templates: time 0.01175/0.7253, allocations: 6.828 MB / 1.403 GB, free: 19.55 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTableNegativeStartTime.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTableNegativeStartTime.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTableNegativeStartTime.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTableNegativeStartTime.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTableNegativeStartTime.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTableNegativeStartTime -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTableNegativeStartTime.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTableNegativeStartTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Continuous_Sources_Validation_TimeTableNegativeStartTime.csv","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTableNegativeStartTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches