Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.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.Continuous.Sources.Validation.TimeTable,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.TimeTable") translateModel(Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTable,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.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.698/1.698, allocations: 390.4 MB / 397.7 MB, free: 1.977 MB / 307 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009745/0.0009745, allocations: 179 kB / 490.8 MB, free: 7.551 MB / 403 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.065/1.065, allocations: 221.3 MB / 0.7863 GB, free: 308 kB / 0.5498 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008176/0.0008176, allocations: 92.69 kB / 0.9264 GB, free: 0.6914 MB / 0.6904 GB Notification: Performance of FrontEnd - loaded program: time 7.294e-06/7.404e-06, allocations: 4 kB / 1.072 GB, free: 137.6 MB / 0.7217 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1774/0.1775, allocations: 143 MB / 1.212 GB, free: 10.61 MB / 0.7373 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4736/0.6511, allocations: 153.2 MB / 1.361 GB, free: 8.965 MB / 0.8311 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001853/0.6513, allocations: 79.94 kB / 1.361 GB, free: 8.887 MB / 0.8311 GB Notification: Performance of FrontEnd: time 0.05357/0.7049, allocations: 23.08 MB / 1.384 GB, free: 1.793 MB / 0.8467 GB Notification: Performance of Transformations before backend: time 5.068e-05/0.705, allocations: 20.16 kB / 1.384 GB, free: 1.773 MB / 0.8467 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.001053/0.7061, allocations: 0.7706 MB / 1.385 GB, free: 0.957 MB / 0.8467 GB Notification: Performance of prepare preOptimizeDAE: time 3.399e-05/0.7061, allocations: 12.03 kB / 1.385 GB, free: 0.9453 MB / 0.8467 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001591/0.7063, allocations: 79.05 kB / 1.385 GB, free: 0.8672 MB / 0.8467 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001249/0.7075, allocations: 0.6827 MB / 1.385 GB, free: 144 kB / 0.8467 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.331e-05/0.7076, allocations: 11.98 kB / 1.385 GB, free: 132 kB / 0.8467 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.113e-05/0.7076, allocations: 11.91 kB / 1.385 GB, free: 120 kB / 0.8467 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000168/0.7078, allocations: 95.95 kB / 1.385 GB, free: 24 kB / 0.8467 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002444/0.708, allocations: 188.9 kB / 1.386 GB, free: 15.82 MB / 0.8623 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.135e-06/0.708, allocations: 0 / 1.386 GB, free: 15.82 MB / 0.8623 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.757e-05/0.7081, allocations: 0 / 1.386 GB, free: 15.82 MB / 0.8623 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.841e-06/0.7081, allocations: 4 kB / 1.386 GB, free: 15.82 MB / 0.8623 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001079/0.7092, allocations: 1.076 MB / 1.387 GB, free: 14.69 MB / 0.8623 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00031/0.7095, allocations: 249.4 kB / 1.387 GB, free: 14.4 MB / 0.8623 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001235/0.7096, allocations: 104.3 kB / 1.387 GB, free: 14.28 MB / 0.8623 GB Notification: Performance of preOpt evalFunc (simulation): time 1.755e-05/0.7096, allocations: 4 kB / 1.387 GB, free: 14.28 MB / 0.8623 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002208/0.7099, allocations: 199.4 kB / 1.387 GB, free: 14.05 MB / 0.8623 GB Notification: Performance of pre-optimization done (n=25): time 1.593e-06/0.7099, allocations: 0 / 1.387 GB, free: 14.05 MB / 0.8623 GB Notification: Performance of matching and sorting (n=25): time 0.0004707/0.7103, allocations: 284.6 kB / 1.387 GB, free: 13.77 MB / 0.8623 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.151e-05/0.7104, allocations: 166.2 kB / 1.388 GB, free: 13.57 MB / 0.8623 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009992/0.7114, allocations: 0.9063 MB / 1.389 GB, free: 12.66 MB / 0.8623 GB Notification: Performance of collectPreVariables (initialization): time 2.822e-05/0.7114, allocations: 33.69 kB / 1.389 GB, free: 12.62 MB / 0.8623 GB Notification: Performance of collectInitialEqns (initialization): time 9.461e-05/0.7116, allocations: 180.8 kB / 1.389 GB, free: 12.44 MB / 0.8623 GB Notification: Performance of collectInitialBindings (initialization): time 5.736e-05/0.7116, allocations: 75.09 kB / 1.389 GB, free: 12.36 MB / 0.8623 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.753e-05/0.7116, allocations: 0 / 1.389 GB, free: 12.36 MB / 0.8623 GB Notification: Performance of setup shared object (initialization): time 8.259e-05/0.7117, allocations: 333.9 kB / 1.389 GB, free: 12.03 MB / 0.8623 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003129/0.7121, allocations: 237.2 kB / 1.389 GB, free: 11.8 MB / 0.8623 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003391/0.7124, allocations: 317.8 kB / 1.39 GB, free: 11.46 MB / 0.8623 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007185/0.7131, allocations: 318.3 kB / 1.39 GB, free: 11.15 MB / 0.8623 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.7131, allocations: 4 kB / 1.39 GB, free: 11.14 MB / 0.8623 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001281/0.7144, allocations: 0.7464 MB / 1.391 GB, free: 10.39 MB / 0.8623 GB Notification: Performance of prepare postOptimizeDAE: time 1.064e-05/0.7144, allocations: 4 kB / 1.391 GB, free: 10.39 MB / 0.8623 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.883e-06/0.7145, allocations: 4 kB / 1.391 GB, free: 10.39 MB / 0.8623 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.553e-05/0.7145, allocations: 4 kB / 1.391 GB, free: 10.38 MB / 0.8623 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003887/0.7149, allocations: 116 kB / 1.391 GB, free: 10.27 MB / 0.8623 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.069e-05/0.7149, allocations: 8 kB / 1.391 GB, free: 10.26 MB / 0.8623 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002816/0.7152, allocations: 31.73 kB / 1.391 GB, free: 10.23 MB / 0.8623 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.14e-05/0.7153, allocations: 35.92 kB / 1.391 GB, free: 10.2 MB / 0.8623 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.0001009/0.7154, allocations: 136.8 kB / 1.391 GB, free: 10.05 MB / 0.8623 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.229e-05/0.7155, allocations: 71.06 kB / 1.391 GB, free: 9.984 MB / 0.8623 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004716/0.7159, allocations: 335.7 kB / 1.391 GB, free: 9.648 MB / 0.8623 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.49e-06/0.7159, allocations: 7.906 kB / 1.391 GB, free: 9.641 MB / 0.8623 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.716, allocations: 4 kB / 1.391 GB, free: 9.637 MB / 0.8623 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.589e-06/0.716, allocations: 0 / 1.391 GB, free: 9.637 MB / 0.8623 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003811/0.7164, allocations: 449.7 kB / 1.392 GB, free: 9.16 MB / 0.8623 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/0.7164, allocations: 4 kB / 1.392 GB, free: 9.156 MB / 0.8623 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.615e-05/0.7165, allocations: 24 kB / 1.392 GB, free: 9.133 MB / 0.8623 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.239e-06/0.7165, allocations: 7.984 kB / 1.392 GB, free: 9.125 MB / 0.8623 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.825e-05/0.7165, allocations: 4 kB / 1.392 GB, free: 9.121 MB / 0.8623 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.015e-06/0.7165, allocations: 8 kB / 1.392 GB, free: 9.113 MB / 0.8623 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.7165, allocations: 3.938 kB / 1.392 GB, free: 9.109 MB / 0.8623 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000424/0.7169, allocations: 403 kB / 1.392 GB, free: 8.66 MB / 0.8623 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00015/0.7171, allocations: 172.1 kB / 1.392 GB, free: 8.473 MB / 0.8623 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.938e-05/0.7172, allocations: 8 kB / 1.392 GB, free: 8.465 MB / 0.8623 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001865/0.7174, allocations: 19.92 kB / 1.392 GB, free: 8.445 MB / 0.8623 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.148e-05/0.7174, allocations: 27.95 kB / 1.393 GB, free: 8.418 MB / 0.8623 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.982e-05/0.7175, allocations: 12.3 kB / 1.393 GB, free: 8.406 MB / 0.8623 GB Notification: Performance of sort global known variables: time 0.0005663/0.718, allocations: 0.5811 MB / 1.393 GB, free: 7.828 MB / 0.8623 GB Notification: Performance of remove unused functions: time 0.0003943/0.7184, allocations: 127.8 kB / 1.393 GB, free: 7.703 MB / 0.8623 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.000635/0.7191, allocations: 383.2 kB / 1.394 GB, free: 7.426 MB / 0.8623 GB Notification: Performance of simCode: created initialization part: time 0.000482/0.7196, allocations: 392.2 kB / 1.394 GB, free: 7.043 MB / 0.8623 GB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.7196, allocations: 0 / 1.394 GB, free: 7.043 MB / 0.8623 GB Notification: Performance of simCode: created simulation system equations: time 0.0001438/0.7197, allocations: 107.9 kB / 1.394 GB, free: 6.938 MB / 0.8623 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006944/0.7204, allocations: 181.1 kB / 1.394 GB, free: 6.77 MB / 0.8623 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001262/0.7217, allocations: 0.8978 MB / 1.395 GB, free: 5.832 MB / 0.8623 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005092/0.7222, allocations: 1.002 MB / 1.396 GB, free: 4.801 MB / 0.8623 GB Notification: Performance of SimCode: time 2.4e-07/0.7222, allocations: 4 kB / 1.396 GB, free: 4.797 MB / 0.8623 GB Notification: Performance of Templates: time 0.01069/0.7329, allocations: 6.83 MB / 1.403 GB, free: 14.04 MB / 0.8779 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTable.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTable.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTable.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTable.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTable.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTable -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTable.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTable_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Continuous_Sources_Validation_TimeTable.csv","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTable.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches