Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTable.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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_9_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_9_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 9.1.1-maint.9.1.x/package.mo): time 1.796/1.796, allocations: 387.2 MB / 394.5 MB, free: 13.32 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001026/0.001026, allocations: 188 kB / 487 MB, free: 0.7148 MB / 378.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.105/1.105, allocations: 221.3 MB / 0.7819 GB, free: 6.75 MB / 0.573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007975/0.0007975, allocations: 105.6 kB / 0.9213 GB, free: 43.69 MB / 0.6198 GB Notification: Performance of FrontEnd - loaded program: time 7.434e-06/7.525e-06, allocations: 4 kB / 1.066 GB, free: 7.543 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5007/0.5008, allocations: 142.3 MB / 1.205 GB, free: 72.49 MB / 0.7917 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1511/0.6519, allocations: 152.4 MB / 1.354 GB, free: 10.83 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001832/0.6521, allocations: 76.58 kB / 1.354 GB, free: 10.75 MB / 0.8542 GB Notification: Performance of FrontEnd: time 0.05463/0.7067, allocations: 23.08 MB / 1.377 GB, free: 3.777 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 4.63e-05/0.7068, allocations: 16.22 kB / 1.377 GB, free: 3.762 MB / 0.8698 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.0009628/0.7078, allocations: 0.7782 MB / 1.377 GB, free: 2.938 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 2.919e-05/0.7078, allocations: 8.031 kB / 1.377 GB, free: 2.93 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001241/0.7079, allocations: 75.06 kB / 1.378 GB, free: 2.855 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00119/0.7091, allocations: 0.6866 MB / 1.378 GB, free: 2.125 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.225e-05/0.7092, allocations: 11.91 kB / 1.378 GB, free: 2.113 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.924e-05/0.7092, allocations: 15.94 kB / 1.378 GB, free: 2.098 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001656/0.7094, allocations: 87.95 kB / 1.378 GB, free: 2.012 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002477/0.7096, allocations: 183 kB / 1.378 GB, free: 1.812 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.257e-06/0.7096, allocations: 4 kB / 1.378 GB, free: 1.809 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.867e-05/0.7097, allocations: 7.938 kB / 1.379 GB, free: 1.801 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.452e-06/0.7097, allocations: 4 kB / 1.379 GB, free: 1.797 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001131/0.7108, allocations: 1.072 MB / 1.38 GB, free: 0.6719 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002987/0.7111, allocations: 247.7 kB / 1.38 GB, free: 396 kB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001234/0.7113, allocations: 96.38 kB / 1.38 GB, free: 284 kB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.469e-05/0.7113, allocations: 4 kB / 1.38 GB, free: 280 kB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002256/0.7115, allocations: 201.4 kB / 1.38 GB, free: 52 kB / 0.8698 GB Notification: Performance of pre-optimization done (n=25): time 2.124e-06/0.7115, allocations: 3.938 kB / 1.38 GB, free: 48 kB / 0.8698 GB Notification: Performance of matching and sorting (n=25): time 0.0005058/0.712, allocations: 287.5 kB / 1.38 GB, free: 15.76 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.679e-05/0.7121, allocations: 158.2 kB / 1.381 GB, free: 15.57 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001007/0.7131, allocations: 0.918 MB / 1.381 GB, free: 14.64 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 2.62e-05/0.7132, allocations: 29.7 kB / 1.381 GB, free: 14.61 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 9.912e-05/0.7133, allocations: 168.8 kB / 1.382 GB, free: 14.44 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 6.084e-05/0.7133, allocations: 75.09 kB / 1.382 GB, free: 14.36 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.735e-05/0.7134, allocations: 0 / 1.382 GB, free: 14.36 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 8.794e-05/0.7135, allocations: 330 kB / 1.382 GB, free: 14.04 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003164/0.7138, allocations: 237.2 kB / 1.382 GB, free: 13.8 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003597/0.7141, allocations: 329.6 kB / 1.383 GB, free: 13.45 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007325/0.7149, allocations: 319.4 kB / 1.383 GB, free: 13.14 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.564e-06/0.7149, allocations: 0 / 1.383 GB, free: 13.14 MB / 0.8855 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001307/0.7162, allocations: 0.7461 MB / 1.384 GB, free: 12.39 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.217e-05/0.7162, allocations: 8 kB / 1.384 GB, free: 12.38 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.962e-06/0.7162, allocations: 0 / 1.384 GB, free: 12.38 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.577e-05/0.7163, allocations: 8 kB / 1.384 GB, free: 12.38 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004054/0.7167, allocations: 115.8 kB / 1.384 GB, free: 12.26 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.604e-06/0.7167, allocations: 7.984 kB / 1.384 GB, free: 12.25 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002916/0.717, allocations: 29.14 kB / 1.384 GB, free: 12.23 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.57e-05/0.7171, allocations: 44.02 kB / 1.384 GB, free: 12.18 MB / 0.8855 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.0001001/0.7172, allocations: 129.6 kB / 1.384 GB, free: 12.05 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.177e-05/0.7173, allocations: 75.06 kB / 1.384 GB, free: 11.98 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004954/0.7178, allocations: 332.1 kB / 1.384 GB, free: 11.65 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.46e-06/0.7178, allocations: 4 kB / 1.384 GB, free: 11.64 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.977e-06/0.7178, allocations: 0 / 1.384 GB, free: 11.64 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.78e-06/0.7178, allocations: 4 kB / 1.384 GB, free: 11.64 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004121/0.7182, allocations: 454.4 kB / 1.385 GB, free: 11.16 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.7182, allocations: 0 / 1.385 GB, free: 11.16 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.35e-05/0.7183, allocations: 31.92 kB / 1.385 GB, free: 11.12 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.106e-06/0.7183, allocations: 0 / 1.385 GB, free: 11.12 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.238e-05/0.7184, allocations: 12.81 kB / 1.385 GB, free: 11.11 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.785e-06/0.7184, allocations: 3.438 kB / 1.385 GB, free: 11.11 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.943e-06/0.7184, allocations: 0 / 1.385 GB, free: 11.11 MB / 0.8855 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004507/0.7188, allocations: 413.2 kB / 1.385 GB, free: 10.66 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001781/0.719, allocations: 176.1 kB / 1.385 GB, free: 10.46 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.725e-05/0.7191, allocations: 4 kB / 1.385 GB, free: 10.46 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002022/0.7193, allocations: 25.47 kB / 1.385 GB, free: 10.44 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.814e-05/0.7194, allocations: 23.97 kB / 1.385 GB, free: 10.41 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.179e-05/0.7194, allocations: 8 kB / 1.385 GB, free: 10.41 MB / 0.8855 GB Notification: Performance of sort global known variables: time 0.0006556/0.7201, allocations: 0.5733 MB / 1.386 GB, free: 9.836 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0004295/0.7205, allocations: 135.8 kB / 1.386 GB, free: 9.703 MB / 0.8855 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.00072/0.7212, allocations: 385.4 kB / 1.386 GB, free: 9.484 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0005472/0.7218, allocations: 387.8 kB / 1.387 GB, free: 9.105 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.7218, allocations: 320 / 1.387 GB, free: 9.105 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0001838/0.722, allocations: 116.6 kB / 1.387 GB, free: 8.992 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00075/0.7228, allocations: 178.1 kB / 1.387 GB, free: 8.832 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001463/0.7242, allocations: 0.8965 MB / 1.388 GB, free: 7.895 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006165/0.7249, allocations: 1.01 MB / 1.389 GB, free: 6.855 MB / 0.8855 GB Notification: Performance of SimCode: time 2.4e-07/0.7249, allocations: 0 / 1.389 GB, free: 6.855 MB / 0.8855 GB Notification: Performance of Templates: time 0.01231/0.7372, allocations: 6.833 MB / 1.396 GB, free: 140 kB / 0.8855 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTable.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTable.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTable.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTable.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTable.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTable -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTable.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTable_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Sources_Validation_TimeTable.csv","../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTable.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches