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.CalendarTimeMonthsPlus.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.CalendarTimeMonthsPlus,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.CalendarTimeMonthsPlus") translateModel(Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus,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.CalendarTimeMonthsPlus") [: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.306/1.306, allocations: 249.4 MB / 256.7 MB, free: 7.02 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.001098/0.001098, allocations: 177.2 kB / 316 MB, free: 3.523 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.578/1.578, 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.0009657/0.0009659, allocations: 93.56 kB / 0.671 GB, free: 4.758 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.007e-05/1.03e-05, allocations: 0 / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2174/0.2174, allocations: 106.3 MB / 0.8846 GB, free: 12.62 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5944/0.8118, allocations: 134.2 MB / 1.016 GB, free: 4.574 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000231/0.8121, allocations: 75.64 kB / 1.016 GB, free: 4.535 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.01494/0.8271, allocations: 4.859 MB / 1.02 GB, free: 500 kB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.709e-05/0.8271, allocations: 4 kB / 1.02 GB, free: 496 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.0009684/0.8281, allocations: 0.6062 MB / 1.021 GB, free: 15.83 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.132e-05/0.8282, allocations: 12.03 kB / 1.021 GB, free: 15.82 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001062/0.8283, allocations: 35.62 kB / 1.021 GB, free: 15.78 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004062/0.8287, allocations: 274.4 kB / 1.021 GB, free: 15.5 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.966e-05/0.8287, allocations: 15.89 kB / 1.021 GB, free: 15.48 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.297e-05/0.8288, allocations: 15.31 kB / 1.021 GB, free: 15.47 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001486/0.8289, allocations: 61.48 kB / 1.021 GB, free: 15.43 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002542/0.8292, allocations: 157.4 kB / 1.022 GB, free: 15.29 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.005e-05/0.8292, allocations: 0 / 1.022 GB, free: 15.29 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.709e-05/0.8293, allocations: 0 / 1.022 GB, free: 15.29 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.013e-06/0.8293, allocations: 4 kB / 1.022 GB, free: 15.29 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008433/0.8301, allocations: 0.5442 MB / 1.022 GB, free: 14.82 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002151/0.8304, allocations: 119.4 kB / 1.022 GB, free: 14.73 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.853e-05/0.8305, allocations: 60.03 kB / 1.022 GB, free: 14.68 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 2.757e-05/0.8305, allocations: 4 kB / 1.022 GB, free: 14.68 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003523/0.8309, allocations: 182.4 kB / 1.022 GB, free: 14.52 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=18): time 1.473e-06/0.8309, allocations: 0 / 1.022 GB, free: 14.52 MB / 0.6511 GB Notification: Performance of matching and sorting (n=18): time 0.0004306/0.8313, allocations: 179.5 kB / 1.023 GB, free: 14.36 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.933e-05/0.8314, allocations: 58.72 kB / 1.023 GB, free: 14.3 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002633/0.8316, allocations: 270.5 kB / 1.023 GB, free: 14.08 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 5.608e-05/0.8317, allocations: 37.2 kB / 1.023 GB, free: 14.04 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 7.647e-05/0.8318, allocations: 95.91 kB / 1.023 GB, free: 13.95 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 4.905e-05/0.8318, allocations: 54.31 kB / 1.023 GB, free: 13.9 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.487e-05/0.8319, allocations: 7.062 kB / 1.023 GB, free: 13.89 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001077/0.832, allocations: 322.5 kB / 1.023 GB, free: 13.57 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002204/0.8322, allocations: 106.9 kB / 1.024 GB, free: 13.51 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000239/0.8325, allocations: 150.4 kB / 1.024 GB, free: 13.39 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001599/0.8326, allocations: 91.06 kB / 1.024 GB, free: 13.32 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.8326, allocations: 0 / 1.024 GB, free: 13.32 MB / 0.6511 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005563/0.8332, allocations: 304.4 kB / 1.024 GB, free: 13.09 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.443e-05/0.8332, allocations: 4 kB / 1.024 GB, free: 13.08 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.828e-06/0.8332, allocations: 4.188 kB / 1.024 GB, free: 13.08 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.67e-05/0.8333, allocations: 8 kB / 1.024 GB, free: 13.07 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001868/0.8334, allocations: 22.98 kB / 1.024 GB, free: 13.05 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.095e-06/0.8335, allocations: 3.938 kB / 1.024 GB, free: 13.05 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003975/0.8339, allocations: 51.81 kB / 1.024 GB, free: 13 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.885e-05/0.834, allocations: 55.47 kB / 1.024 GB, free: 12.95 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.0001827/0.8342, allocations: 123.1 kB / 1.024 GB, free: 12.82 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.325e-05/0.8342, allocations: 35.56 kB / 1.024 GB, free: 12.79 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.732e-05/0.8343, allocations: 28.45 kB / 1.024 GB, free: 12.77 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.42e-06/0.8343, allocations: 4 kB / 1.024 GB, free: 12.77 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.006e-06/0.8343, allocations: 3.906 kB / 1.024 GB, free: 12.76 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.53e-06/0.8343, allocations: 7.984 kB / 1.024 GB, free: 12.75 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006442/0.835, allocations: 0.51 MB / 1.025 GB, free: 12.28 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.502e-06/0.835, allocations: 0 / 1.025 GB, free: 12.28 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.556e-05/0.835, allocations: 7.938 kB / 1.025 GB, free: 12.27 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.875e-06/0.835, allocations: 4 kB / 1.025 GB, free: 12.27 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.253e-05/0.8351, allocations: 15.91 kB / 1.025 GB, free: 12.25 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.8351, allocations: 0 / 1.025 GB, free: 12.25 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.915e-06/0.8351, allocations: 4 kB / 1.025 GB, free: 12.25 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003624/0.8355, allocations: 271.5 kB / 1.025 GB, free: 12 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000211/0.8357, allocations: 191 kB / 1.025 GB, free: 11.82 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.282e-05/0.8358, allocations: 14.5 kB / 1.025 GB, free: 11.82 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001922/0.836, allocations: 15.92 kB / 1.025 GB, free: 11.8 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.7e-05/0.836, allocations: 15.78 kB / 1.025 GB, free: 11.79 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.484e-05/0.8361, allocations: 27.98 kB / 1.025 GB, free: 11.76 MB / 0.6511 GB Notification: Performance of sort global known variables: time 0.0002201/0.8363, allocations: 214.1 kB / 1.026 GB, free: 11.59 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0003661/0.8367, allocations: 51.98 kB / 1.026 GB, free: 11.54 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.0002586/0.837, allocations: 132.1 kB / 1.026 GB, free: 11.41 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0005248/0.8375, allocations: 283.2 kB / 1.026 GB, free: 11.2 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.8375, allocations: 0 / 1.026 GB, free: 11.2 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0001295/0.8376, allocations: 76.11 kB / 1.026 GB, free: 11.14 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003299/0.838, allocations: 26.03 kB / 1.026 GB, free: 11.12 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006628/0.8387, allocations: 303.6 kB / 1.026 GB, free: 10.85 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000512/0.8392, allocations: 0.8058 MB / 1.027 GB, free: 10.02 MB / 0.6511 GB Notification: Performance of SimCode: time 3.71e-07/0.8392, allocations: 0 / 1.027 GB, free: 10.02 MB / 0.6511 GB Notification: Performance of Templates: time 0.008632/0.8478, allocations: 4.675 MB / 1.032 GB, free: 5.383 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_OBC_CDL_Continuous_Sources_Validation_CalendarTimeMonthsPlus.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.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