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.CalendarTimeMonthsMinus.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.CalendarTimeMonthsMinus,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.CalendarTimeMonthsMinus") translateModel(Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus,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.CalendarTimeMonthsMinus") [: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.483/1.483, allocations: 249.4 MB / 256.7 MB, free: 6.93 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.001225/0.001225, allocations: 196.3 kB / 316 MB, free: 3.484 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.605/1.605, allocations: 205.1 MB / 0.5667 GB, free: 15.63 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.0009686/0.0009682, allocations: 90.33 kB / 0.671 GB, free: 4.766 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 8.356e-06/8.396e-06, allocations: 4 kB / 0.7808 GB, free: 103 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2069/0.207, allocations: 106.3 MB / 0.8846 GB, free: 12.59 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.565/0.7721, allocations: 134.2 MB / 1.016 GB, free: 4.484 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002114/0.7723, allocations: 70.02 kB / 1.016 GB, free: 4.445 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.01464/0.787, allocations: 4.858 MB / 1.02 GB, free: 408 kB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.341e-05/0.787, allocations: 4 kB / 1.02 GB, free: 404 kB / 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.0008546/0.7879, allocations: 0.6098 MB / 1.021 GB, free: 15.74 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 3.18e-05/0.7879, allocations: 12.03 kB / 1.021 GB, free: 15.73 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001021/0.788, allocations: 35.62 kB / 1.021 GB, free: 15.69 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003619/0.7884, allocations: 274.5 kB / 1.021 GB, free: 15.41 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.962e-05/0.7884, allocations: 15.89 kB / 1.021 GB, free: 15.39 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.897e-05/0.7885, allocations: 16 kB / 1.021 GB, free: 15.38 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001436/0.7887, allocations: 59.73 kB / 1.021 GB, free: 15.34 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002455/0.7889, allocations: 154.1 kB / 1.022 GB, free: 15.21 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.336e-06/0.7889, allocations: 0 / 1.022 GB, free: 15.21 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.631e-05/0.789, allocations: 0 / 1.022 GB, free: 15.21 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.829e-06/0.789, allocations: 4 kB / 1.022 GB, free: 15.21 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007761/0.7898, allocations: 0.5396 MB / 1.022 GB, free: 14.74 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000206/0.79, allocations: 128.5 kB / 1.022 GB, free: 14.64 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.922e-05/0.7901, allocations: 59.47 kB / 1.022 GB, free: 14.6 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 2.311e-05/0.7901, allocations: 0 / 1.022 GB, free: 14.6 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000366/0.7905, allocations: 183.8 kB / 1.022 GB, free: 14.43 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=18): time 1.443e-06/0.7905, allocations: 4 kB / 1.022 GB, free: 14.43 MB / 0.6511 GB Notification: Performance of matching and sorting (n=18): time 0.0003597/0.7909, allocations: 177.6 kB / 1.023 GB, free: 14.28 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.046e-05/0.7909, allocations: 58.47 kB / 1.023 GB, free: 14.21 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002516/0.7912, allocations: 275.4 kB / 1.023 GB, free: 13.99 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 5.341e-05/0.7912, allocations: 33.27 kB / 1.023 GB, free: 13.95 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 7.01e-05/0.7913, allocations: 101 kB / 1.023 GB, free: 13.86 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 4.298e-05/0.7914, allocations: 45.95 kB / 1.023 GB, free: 13.82 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.602e-05/0.7914, allocations: 0 / 1.023 GB, free: 13.82 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001199/0.7915, allocations: 330.4 kB / 1.023 GB, free: 13.49 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002027/0.7917, allocations: 105.9 kB / 1.024 GB, free: 13.43 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002338/0.792, allocations: 149.3 kB / 1.024 GB, free: 13.3 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001556/0.7921, allocations: 90.44 kB / 1.024 GB, free: 13.24 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.7922, allocations: 0 / 1.024 GB, free: 13.24 MB / 0.6511 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005811/0.7927, allocations: 306 kB / 1.024 GB, free: 13.01 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.181e-05/0.7928, allocations: 8 kB / 1.024 GB, free: 13 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.98e-06/0.7928, allocations: 0 / 1.024 GB, free: 13 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.471e-05/0.7928, allocations: 4 kB / 1.024 GB, free: 13 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001614/0.793, allocations: 23.92 kB / 1.024 GB, free: 12.97 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.726e-06/0.793, allocations: 4.188 kB / 1.024 GB, free: 12.97 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004004/0.7934, allocations: 55.75 kB / 1.024 GB, free: 12.91 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.502e-05/0.7935, allocations: 59.28 kB / 1.024 GB, free: 12.86 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.0001355/0.7936, allocations: 127.5 kB / 1.024 GB, free: 12.73 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.062e-05/0.7937, allocations: 27.62 kB / 1.024 GB, free: 12.7 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.674e-05/0.7937, allocations: 32.83 kB / 1.024 GB, free: 12.68 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-06/0.7937, allocations: 0 / 1.024 GB, free: 12.68 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.236e-06/0.7938, allocations: 3.906 kB / 1.024 GB, free: 12.68 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.931e-06/0.7938, allocations: 7.922 kB / 1.024 GB, free: 12.67 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006057/0.7944, allocations: 0.5135 MB / 1.025 GB, free: 12.19 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.502e-06/0.7944, allocations: 0 / 1.025 GB, free: 12.19 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.616e-05/0.7944, allocations: 8 kB / 1.025 GB, free: 12.18 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.667e-06/0.7945, allocations: 0 / 1.025 GB, free: 12.18 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.187e-05/0.7945, allocations: 23.22 kB / 1.025 GB, free: 12.16 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.7945, allocations: 0 / 1.025 GB, free: 12.16 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.7945, allocations: 0 / 1.025 GB, free: 12.16 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003088/0.7948, allocations: 277.5 kB / 1.025 GB, free: 11.91 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001854/0.795, allocations: 183.2 kB / 1.025 GB, free: 11.74 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.745e-05/0.7951, allocations: 14.5 kB / 1.025 GB, free: 11.73 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001954/0.7953, allocations: 19.86 kB / 1.025 GB, free: 11.71 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.533e-05/0.7954, allocations: 19.72 kB / 1.025 GB, free: 11.7 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.013e-05/0.7954, allocations: 27.98 kB / 1.025 GB, free: 11.67 MB / 0.6511 GB Notification: Performance of sort global known variables: time 0.0001719/0.7956, allocations: 208.2 kB / 1.026 GB, free: 11.51 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0003233/0.7959, allocations: 55.67 kB / 1.026 GB, free: 11.46 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.0001818/0.7961, allocations: 128.2 kB / 1.026 GB, free: 11.32 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0004816/0.7966, allocations: 290.1 kB / 1.026 GB, free: 11.11 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.7966, allocations: 0 / 1.026 GB, free: 11.11 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0001195/0.7967, allocations: 69.05 kB / 1.026 GB, free: 11.05 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003027/0.797, allocations: 28.83 kB / 1.026 GB, free: 11.04 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006884/0.7977, allocations: 298.6 kB / 1.026 GB, free: 10.76 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006512/0.7984, allocations: 0.8104 MB / 1.027 GB, free: 9.934 MB / 0.6511 GB Notification: Performance of SimCode: time 2.51e-07/0.7984, allocations: 0 / 1.027 GB, free: 9.934 MB / 0.6511 GB Notification: Performance of Templates: time 0.009018/0.8074, allocations: 4.672 MB / 1.032 GB, free: 5.301 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_OBC_CDL_Continuous_Sources_Validation_CalendarTimeMonthsMinus.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.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