Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|calTim.year|calTim.month|calTim.day|calTim.weekDay|calTim.hour|calTim.minute",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths") translateModel(Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|calTim.year|calTim.month|calTim.day|calTim.weekDay|calTim.hour|calTim.minute",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths") [: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 7.0.3-maint.7.0.x/package.mo): time 1.4/1.4, allocations: 249.4 MB / 256.7 MB, free: 6.988 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001148/0.001148, allocations: 181.2 kB / 316 MB, free: 3.605 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.611/1.611, allocations: 205.1 MB / 0.5667 GB, free: 15.7 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001068/0.001068, allocations: 94.06 kB / 0.671 GB, free: 4.844 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 8.075e-06/8.095e-06, allocations: 0 / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2031/0.2032, allocations: 106.3 MB / 0.8846 GB, free: 12.65 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5638/0.767, allocations: 134.1 MB / 1.016 GB, free: 4.629 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002062/0.7673, allocations: 77.62 kB / 1.016 GB, free: 4.586 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.01487/0.7822, allocations: 4.848 MB / 1.02 GB, free: 0.5469 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.752e-05/0.7823, allocations: 4 kB / 1.02 GB, free: 0.543 MB / 0.6355 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0009352/0.7832, allocations: 0.6043 MB / 1.021 GB, free: 15.89 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 3.527e-05/0.7832, allocations: 12.03 kB / 1.021 GB, free: 15.88 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.991e-05/0.7834, allocations: 31.62 kB / 1.021 GB, free: 15.84 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004222/0.7838, allocations: 281.6 kB / 1.021 GB, free: 15.55 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.208e-05/0.7838, allocations: 11.91 kB / 1.021 GB, free: 15.54 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.241e-05/0.7839, allocations: 19.98 kB / 1.021 GB, free: 15.52 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001367/0.784, allocations: 52.73 kB / 1.021 GB, free: 15.49 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000249/0.7843, allocations: 153.1 kB / 1.021 GB, free: 15.36 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.135e-05/0.7843, allocations: 7.922 kB / 1.021 GB, free: 15.36 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.727e-05/0.7844, allocations: 3.188 kB / 1.021 GB, free: 15.36 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.672e-06/0.7844, allocations: 4 kB / 1.022 GB, free: 15.35 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007814/0.7851, allocations: 0.5419 MB / 1.022 GB, free: 14.88 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002124/0.7854, allocations: 119.5 kB / 1.022 GB, free: 14.79 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.701e-05/0.7855, allocations: 58.02 kB / 1.022 GB, free: 14.75 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 2.94e-05/0.7855, allocations: 11.86 kB / 1.022 GB, free: 14.74 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003846/0.7859, allocations: 174.1 kB / 1.022 GB, free: 14.58 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=18): time 1.553e-06/0.7859, allocations: 4 kB / 1.022 GB, free: 14.58 MB / 0.6511 GB Notification: Performance of matching and sorting (n=18): time 0.0003777/0.7863, allocations: 177.8 kB / 1.023 GB, free: 14.43 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.614e-05/0.7864, allocations: 62.83 kB / 1.023 GB, free: 14.36 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002571/0.7866, allocations: 271.6 kB / 1.023 GB, free: 14.14 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 5.879e-05/0.7867, allocations: 37.06 kB / 1.023 GB, free: 14.1 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 7.05e-05/0.7868, allocations: 100.8 kB / 1.023 GB, free: 14 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 4.251e-05/0.7868, allocations: 45 kB / 1.023 GB, free: 13.96 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.547e-05/0.7869, allocations: 4 kB / 1.023 GB, free: 13.96 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001195/0.787, allocations: 330.4 kB / 1.023 GB, free: 13.63 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002236/0.7872, allocations: 100.4 kB / 1.023 GB, free: 13.57 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002333/0.7875, allocations: 156 kB / 1.024 GB, free: 13.45 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001539/0.7876, allocations: 83.39 kB / 1.024 GB, free: 13.39 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.7876, allocations: 0 / 1.024 GB, free: 13.39 MB / 0.6511 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005581/0.7882, allocations: 308 kB / 1.024 GB, free: 13.15 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.228e-05/0.7882, allocations: 8 kB / 1.024 GB, free: 13.14 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.621e-06/0.7882, allocations: 0 / 1.024 GB, free: 13.14 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.489e-05/0.7882, allocations: 4 kB / 1.024 GB, free: 13.14 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001717/0.7884, allocations: 27.91 kB / 1.024 GB, free: 13.11 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.975e-06/0.7884, allocations: 8.172 kB / 1.024 GB, free: 13.11 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000402/0.7888, allocations: 47.81 kB / 1.024 GB, free: 13.06 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.611e-05/0.789, allocations: 55.61 kB / 1.024 GB, free: 13.01 MB / 0.6511 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 26 ($PRE.calTim.calTim.firstDaySampling,calTim.calTim.firstDaySampling,$PRE.calTim.calTim.firstHourSampling,calTim.calTim.firstHourSampling,$whenCondition3,calTim.calTim.hourSampleTrigger,$whenCondition4,calTim.calTim.daySampleTrigger,$whenCondition2,$whenCondition1,$PRE.calTim.calTim.year,calTim.calTim.year,$PRE.calTim.calTim.month,calTim.calTim.month,$PRE.calTim.calTim.day,calTim.calTim.day,$PRE.calTim.calTim.hour,calTim.calTim.hour,$PRE.calTim.calTim.weekDay,calTim.calTim.weekDay,$PRE.calTim.calTim.daysSinceEpoch,calTim.calTim.daysSinceEpoch,$PRE.calTim.calTim.yearIndex,calTim.calTim.yearIndex,$PRE.calTim.calTim.epochLastMonth,calTim.calTim.epochLastMonth) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 2 * 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.0001294/0.7891, allocations: 131.7 kB / 1.024 GB, free: 12.88 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.237e-05/0.7891, allocations: 27.62 kB / 1.024 GB, free: 12.85 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.224e-05/0.7892, allocations: 28.52 kB / 1.024 GB, free: 12.83 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.128e-06/0.7892, allocations: 4 kB / 1.024 GB, free: 12.83 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.451e-06/0.7892, allocations: 3.906 kB / 1.024 GB, free: 12.82 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.7892, allocations: 0 / 1.024 GB, free: 12.82 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006149/0.7899, allocations: 0.5129 MB / 1.025 GB, free: 12.34 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.384e-06/0.7899, allocations: 11.94 kB / 1.025 GB, free: 12.33 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.576e-05/0.7899, allocations: 8 kB / 1.025 GB, free: 12.32 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.464e-06/0.7899, allocations: 0 / 1.025 GB, free: 12.32 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.032e-05/0.79, allocations: 11.92 kB / 1.025 GB, free: 12.32 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.005e-06/0.79, allocations: 4 kB / 1.025 GB, free: 12.31 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/0.79, allocations: 0 / 1.025 GB, free: 12.31 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003156/0.7903, allocations: 279.1 kB / 1.025 GB, free: 12.05 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001868/0.7905, allocations: 186.7 kB / 1.025 GB, free: 11.88 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.903e-05/0.7906, allocations: 17.12 kB / 1.025 GB, free: 11.88 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001951/0.7908, allocations: 19.91 kB / 1.025 GB, free: 11.86 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.217e-05/0.7908, allocations: 11.98 kB / 1.025 GB, free: 11.84 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.897e-05/0.7909, allocations: 31.09 kB / 1.025 GB, free: 11.82 MB / 0.6511 GB Notification: Performance of sort global known variables: time 0.0001934/0.7911, allocations: 211.7 kB / 1.026 GB, free: 11.65 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0003352/0.7914, allocations: 51.67 kB / 1.026 GB, free: 11.6 MB / 0.6511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 16 (calTim.calTim.daySampleTrigger,calTim.calTim.hourSampleTrigger,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,calTim.calTim.year,calTim.calTim.month,calTim.calTim.day,calTim.calTim.hour,calTim.calTim.weekDay,calTim.calTim.daysSinceEpoch,calTim.calTim.yearIndex,calTim.calTim.epochLastMonth,calTim.calTim.firstHourSampling,calTim.calTim.firstDaySampling) * Number of discrete states: 9 (calTim.calTim.yearIndex,calTim.calTim.firstDaySampling,calTim.calTim.daysSinceEpoch,calTim.calTim.weekDay,calTim.calTim.firstHourSampling,calTim.calTim.hour,calTim.calTim.epochLastMonth,calTim.calTim.month,calTim.calTim.year) * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 8 * 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.0001711/0.7916, allocations: 120.2 kB / 1.026 GB, free: 11.48 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0004637/0.7921, allocations: 295.5 kB / 1.026 GB, free: 11.25 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.784e-06/0.7921, allocations: 0 / 1.026 GB, free: 11.25 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.000117/0.7922, allocations: 76.66 kB / 1.026 GB, free: 11.2 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002859/0.7925, allocations: 23.45 kB / 1.026 GB, free: 11.18 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006491/0.7932, allocations: 302.4 kB / 1.026 GB, free: 10.9 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005262/0.7937, allocations: 0.8062 MB / 1.027 GB, free: 10.08 MB / 0.6511 GB Notification: Performance of SimCode: time 2.5e-07/0.7937, allocations: 0 / 1.027 GB, free: 10.08 MB / 0.6511 GB Notification: Performance of Templates: time 0.007769/0.8015, allocations: 4.673 MB / 1.032 GB, free: 5.441 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_OBC_CDL_Continuous_Sources_Validation_CalendarTimeMonths.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,calTim.year,calTim.month,calTim.day,calTim.weekDay,calTim.hour,calTim.minute Variables in the result:calTim.calTim.day,calTim.calTim.daySampleStart,calTim.calTim.hour,calTim.calTim.hourSampleStart,calTim.calTim.month,calTim.calTim.offset,calTim.calTim.outputUnixTimeStamp,calTim.calTim.timOff,calTim.calTim.timZon,calTim.calTim.weekDay,calTim.calTim.year,calTim.calTim.yearRef,calTim.calTim.zerTim,calTim.day,calTim.hour,calTim.minute,calTim.month,calTim.offset,calTim.weekDay,calTim.year,calTim.yearRef,calTim.zerTim,time