Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Time.Validation.CalendarTimeMonthsPlus.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.Utilities.Time.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_9_Buildings.Utilities.Time.Validation.CalendarTimeMonthsPlus") translateModel(Buildings.Utilities.Time.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_9_Buildings.Utilities.Time.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 9.1.1-maint.9.1.x/package.mo): time 2.003/2.003, allocations: 387.2 MB / 394.5 MB, free: 13.66 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001435/0.001435, allocations: 189.2 kB / 487 MB, free: 5.398 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.443/1.443, allocations: 221.3 MB / 0.7819 GB, free: 1.523 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009952/0.0009952, allocations: 90.88 kB / 0.9213 GB, free: 2.781 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 6.261e-06/6.282e-06, allocations: 0 / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2945/0.2945, allocations: 142.3 MB / 1.205 GB, free: 26.29 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7899/1.084, allocations: 151.2 MB / 1.353 GB, free: 15.83 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000272/1.085, allocations: 70.84 kB / 1.353 GB, free: 15.83 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.0158/1.101, allocations: 4.256 MB / 1.357 GB, free: 15.56 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 1.958e-05/1.101, allocations: 2.844 kB / 1.357 GB, free: 15.56 MB / 0.8073 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.00075/1.101, allocations: 0.6265 MB / 1.358 GB, free: 14.96 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 4.731e-05/1.102, allocations: 8.594 kB / 1.358 GB, free: 14.96 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001198/1.102, allocations: 31.61 kB / 1.358 GB, free: 14.95 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003554/1.102, allocations: 261.6 kB / 1.358 GB, free: 14.73 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.213e-05/1.102, allocations: 9.281 kB / 1.358 GB, free: 14.73 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.183e-05/1.102, allocations: 15.47 kB / 1.358 GB, free: 14.73 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001415/1.102, allocations: 41.34 kB / 1.358 GB, free: 14.73 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002621/1.103, allocations: 144.2 kB / 1.358 GB, free: 14.7 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.113e-05/1.103, allocations: 0.9375 kB / 1.358 GB, free: 14.7 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.808e-05/1.103, allocations: 0.8125 kB / 1.358 GB, free: 14.7 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.574e-06/1.103, allocations: 9.5 kB / 1.358 GB, free: 14.69 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000399/1.103, allocations: 297.7 kB / 1.358 GB, free: 14.54 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001964/1.103, allocations: 98.66 kB / 1.359 GB, free: 14.51 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001217/1.103, allocations: 53.41 kB / 1.359 GB, free: 14.5 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 2.841e-05/1.103, allocations: 2.219 kB / 1.359 GB, free: 14.5 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00025/1.104, allocations: 158.9 kB / 1.359 GB, free: 14.45 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=16): time 1.503e-06/1.104, allocations: 0.75 kB / 1.359 GB, free: 14.45 MB / 0.8073 GB Notification: Performance of matching and sorting (n=16): time 0.0004485/1.104, allocations: 183 kB / 1.359 GB, free: 14.4 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.87e-05/1.104, allocations: 65.66 kB / 1.359 GB, free: 14.34 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002873/1.104, allocations: 248.5 kB / 1.359 GB, free: 14.23 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 4.942e-05/1.105, allocations: 34.98 kB / 1.359 GB, free: 14.2 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 6.682e-05/1.105, allocations: 91.03 kB / 1.359 GB, free: 14.11 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 4.634e-05/1.105, allocations: 34.53 kB / 1.359 GB, free: 14.09 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.192e-05/1.105, allocations: 4.172 kB / 1.359 GB, free: 14.09 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 6.88e-05/1.105, allocations: 332.6 kB / 1.36 GB, free: 13.77 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001897/1.105, allocations: 73.69 kB / 1.36 GB, free: 13.77 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002182/1.105, allocations: 124.9 kB / 1.36 GB, free: 13.72 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001625/1.105, allocations: 76.28 kB / 1.36 GB, free: 13.71 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/1.105, allocations: 1.219 kB / 1.36 GB, free: 13.71 MB / 0.8073 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005998/1.106, allocations: 258.4 kB / 1.36 GB, free: 13.66 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.542e-05/1.106, allocations: 5.125 kB / 1.36 GB, free: 13.66 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.236e-06/1.106, allocations: 1.875 kB / 1.36 GB, free: 13.66 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.303e-05/1.106, allocations: 3.625 kB / 1.36 GB, free: 13.66 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001852/1.106, allocations: 27.2 kB / 1.36 GB, free: 13.66 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.546e-06/1.106, allocations: 3.094 kB / 1.36 GB, free: 13.66 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003807/1.107, allocations: 44.02 kB / 1.36 GB, free: 13.64 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001189/1.107, allocations: 43.16 kB / 1.36 GB, free: 13.64 MB / 0.8073 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 24 ($PRE.calTim.firstHourSampling,calTim.firstHourSampling,$PRE.calTim.firstDaySampling,calTim.firstDaySampling,$whenCondition1,calTim.daySampleTrigger,$whenCondition2,calTim.hourSampleTrigger,$PRE.calTim.year,calTim.year,$PRE.calTim.month,calTim.month,$PRE.calTim.day,calTim.day,$PRE.calTim.hour,calTim.hour,$PRE.calTim.weekDay,calTim.weekDay,$PRE.calTim.daysSinceEpoch,calTim.daysSinceEpoch,$PRE.calTim.yearIndex,calTim.yearIndex,$PRE.calTim.epochLastMonth,calTim.epochLastMonth) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 24 * 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.0001296/1.107, allocations: 132.8 kB / 1.36 GB, free: 13.52 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.665e-05/1.107, allocations: 24.42 kB / 1.36 GB, free: 13.51 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.077e-05/1.107, allocations: 29.98 kB / 1.361 GB, free: 13.5 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.871e-06/1.107, allocations: 1.75 kB / 1.361 GB, free: 13.5 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.755e-06/1.107, allocations: 3.906 kB / 1.361 GB, free: 13.5 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.992e-06/1.107, allocations: 1.875 kB / 1.361 GB, free: 13.5 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008618/1.108, allocations: 0.4988 MB / 1.361 GB, free: 13.21 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/1.108, allocations: 0 / 1.361 GB, free: 13.21 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.781e-05/1.108, allocations: 5.5 kB / 1.361 GB, free: 13.2 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.775e-06/1.108, allocations: 0 / 1.361 GB, free: 13.2 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.193e-05/1.108, allocations: 17.81 kB / 1.361 GB, free: 13.2 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.935e-06/1.108, allocations: 1.453 kB / 1.361 GB, free: 13.2 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/1.108, allocations: 4 kB / 1.361 GB, free: 13.19 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003068/1.108, allocations: 276.7 kB / 1.361 GB, free: 12.96 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001733/1.109, allocations: 167.4 kB / 1.361 GB, free: 12.82 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.652e-05/1.109, allocations: 12.72 kB / 1.361 GB, free: 12.81 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004245/1.109, allocations: 35.64 kB / 1.362 GB, free: 12.78 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.731e-05/1.109, allocations: 6.234 kB / 1.362 GB, free: 12.78 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.983e-05/1.109, allocations: 42.8 kB / 1.362 GB, free: 12.75 MB / 0.8073 GB Notification: Performance of sort global known variables: time 0.0001629/1.109, allocations: 206.6 kB / 1.362 GB, free: 12.6 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0003407/1.11, allocations: 45.59 kB / 1.362 GB, free: 12.55 MB / 0.8073 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 14 (calTim.hourSampleTrigger,calTim.daySampleTrigger,$whenCondition2,$whenCondition1,calTim.year,calTim.month,calTim.day,calTim.hour,calTim.weekDay,calTim.daysSinceEpoch,calTim.yearIndex,calTim.epochLastMonth,calTim.firstHourSampling,calTim.firstDaySampling) * Number of discrete states: 9 (calTim.firstDaySampling,calTim.daysSinceEpoch,calTim.weekDay,calTim.yearIndex,calTim.year,calTim.epochLastMonth,calTim.month,calTim.firstHourSampling,calTim.hour) * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 6 * 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.0001465/1.11, allocations: 117.7 kB / 1.362 GB, free: 12.44 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0004192/1.11, allocations: 251.1 kB / 1.362 GB, free: 12.26 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/1.11, allocations: 0 / 1.362 GB, free: 12.26 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 9.51e-05/1.11, allocations: 61.41 kB / 1.362 GB, free: 12.22 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002693/1.111, allocations: 26.62 kB / 1.362 GB, free: 12.2 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005819/1.111, allocations: 287.6 kB / 1.363 GB, free: 11.96 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002361/1.112, allocations: 0.7637 MB / 1.363 GB, free: 11.21 MB / 0.8073 GB Notification: Performance of SimCode: time 2.61e-07/1.112, allocations: 0 / 1.363 GB, free: 11.21 MB / 0.8073 GB Notification: Performance of Templates: time 0.007137/1.119, allocations: 3.889 MB / 1.367 GB, free: 8.18 MB / 0.8073 GB make -j1 -f Buildings_9_Buildings.Utilities.Time.Validation.CalendarTimeMonthsPlus.makefile (rm -f Buildings_9_Buildings.Utilities.Time.Validation.CalendarTimeMonthsPlus.pipe ; mkfifo Buildings_9_Buildings.Utilities.Time.Validation.CalendarTimeMonthsPlus.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Time.Validation.CalendarTimeMonthsPlus.pipe >> ../files/Buildings_9_Buildings.Utilities.Time.Validation.CalendarTimeMonthsPlus.sim & ./Buildings_9_Buildings.Utilities.Time.Validation.CalendarTimeMonthsPlus -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Time.Validation.CalendarTimeMonthsPlus.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Time.Validation.CalendarTimeMonthsPlus_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Time_Validation_CalendarTimeMonthsPlus.csv","../files/Buildings_9_Buildings.Utilities.Time.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.day,calTim.daySampleStart,calTim.hour,calTim.hourSampleStart,calTim.minute,calTim.month,calTim.offset,calTim.outputUnixTimeStamp,calTim.timOff,calTim.timZon,calTim.weekDay,calTim.year,calTim.yearRef,calTim.zerTim,time