Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.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.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_9_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_9_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 9.1.1-maint.9.1.x/package.mo): time 1.782/1.782, allocations: 387.2 MB / 394.5 MB, free: 13.64 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.00103/0.00103, allocations: 176.6 kB / 487 MB, free: 5.387 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.14/1.14, allocations: 221.3 MB / 0.7819 GB, free: 1.484 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.0007932/0.0007932, allocations: 96.14 kB / 0.9213 GB, free: 2.742 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 6.522e-06/6.543e-06, allocations: 4 kB / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1814/0.1814, allocations: 142.3 MB / 1.205 GB, free: 26.26 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5146/0.6961, allocations: 151.4 MB / 1.353 GB, free: 16.12 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001373/0.6963, allocations: 75.59 kB / 1.353 GB, free: 16.11 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.01427/0.7105, allocations: 4.999 MB / 1.358 GB, free: 15.8 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 1.171e-05/0.7106, allocations: 6.5 kB / 1.358 GB, free: 15.8 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: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0005758/0.7112, allocations: 0.6458 MB / 1.359 GB, free: 15.2 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 2.542e-05/0.7112, allocations: 9.125 kB / 1.359 GB, free: 15.2 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.113e-05/0.7113, allocations: 36.5 kB / 1.359 GB, free: 15.18 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002873/0.7116, allocations: 273.4 kB / 1.359 GB, free: 14.96 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.06e-05/0.7116, allocations: 9.609 kB / 1.359 GB, free: 14.96 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.26e-05/0.7117, allocations: 17.69 kB / 1.359 GB, free: 14.96 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001366/0.7118, allocations: 55.77 kB / 1.359 GB, free: 14.96 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002739/0.7121, allocations: 172.8 kB / 1.359 GB, free: 14.92 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.821e-06/0.7121, allocations: 0.75 kB / 1.359 GB, free: 14.92 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.473e-05/0.7122, allocations: 6.266 kB / 1.359 GB, free: 14.92 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.11e-06/0.7122, allocations: 2 kB / 1.359 GB, free: 14.92 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007522/0.7129, allocations: 0.5578 MB / 1.36 GB, free: 14.66 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001839/0.7131, allocations: 103.9 kB / 1.36 GB, free: 14.64 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.958e-05/0.7132, allocations: 62.59 kB / 1.36 GB, free: 14.63 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.959e-05/0.7133, allocations: 3.203 kB / 1.36 GB, free: 14.63 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002273/0.7135, allocations: 165 kB / 1.36 GB, free: 14.57 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=16): time 2.334e-06/0.7135, allocations: 4 kB / 1.36 GB, free: 14.57 MB / 0.8073 GB Notification: Performance of matching and sorting (n=16): time 0.0004071/0.7139, allocations: 189.2 kB / 1.36 GB, free: 14.52 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.827e-05/0.714, allocations: 65.66 kB / 1.36 GB, free: 14.46 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002984/0.7143, allocations: 275.7 kB / 1.361 GB, free: 14.36 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 5.112e-05/0.7143, allocations: 36.52 kB / 1.361 GB, free: 14.32 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 5.428e-05/0.7144, allocations: 89.11 kB / 1.361 GB, free: 14.24 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 3.816e-05/0.7144, allocations: 40.3 kB / 1.361 GB, free: 14.22 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.445e-05/0.7145, allocations: 7.703 kB / 1.361 GB, free: 14.21 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 4.414e-05/0.7145, allocations: 325.8 kB / 1.361 GB, free: 13.9 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002151/0.7147, allocations: 96.28 kB / 1.361 GB, free: 13.9 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001874/0.7149, allocations: 142.5 kB / 1.361 GB, free: 13.79 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001423/0.7151, allocations: 83.44 kB / 1.361 GB, free: 13.75 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.7151, allocations: 0 / 1.361 GB, free: 13.75 MB / 0.8073 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004722/0.7156, allocations: 287.8 kB / 1.362 GB, free: 13.56 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 8.526e-06/0.7156, allocations: 8.656 kB / 1.362 GB, free: 13.55 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.128e-06/0.7156, allocations: 0 / 1.362 GB, free: 13.55 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.03e-05/0.7156, allocations: 4 kB / 1.362 GB, free: 13.55 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001395/0.7157, allocations: 21.34 kB / 1.362 GB, free: 13.53 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.3e-06/0.7158, allocations: 8.484 kB / 1.362 GB, free: 13.52 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003297/0.7161, allocations: 42.19 kB / 1.362 GB, free: 13.49 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.556e-05/0.7162, allocations: 40.56 kB / 1.362 GB, free: 13.46 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.calTim.firstDaySampling,calTim.calTim.firstDaySampling,$PRE.calTim.calTim.firstHourSampling,calTim.calTim.firstHourSampling,$whenCondition1,calTim.calTim.hourSampleTrigger,$whenCondition2,calTim.calTim.daySampleTrigger,$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 (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.000101/0.7163, allocations: 136.7 kB / 1.362 GB, free: 13.32 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.061e-05/0.7163, allocations: 28.8 kB / 1.362 GB, free: 13.3 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.437e-05/0.7164, allocations: 29.33 kB / 1.362 GB, free: 13.28 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.955e-06/0.7164, allocations: 4.547 kB / 1.362 GB, free: 13.27 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.7164, allocations: 4 kB / 1.362 GB, free: 13.27 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.7164, allocations: 0.7031 kB / 1.362 GB, free: 13.27 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006057/0.717, allocations: 0.5286 MB / 1.362 GB, free: 12.86 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.717, allocations: 0.7969 kB / 1.362 GB, free: 12.86 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.636e-05/0.7171, allocations: 12.64 kB / 1.363 GB, free: 12.85 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.138e-06/0.7171, allocations: 4.547 kB / 1.363 GB, free: 12.85 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.654e-05/0.7171, allocations: 22.16 kB / 1.363 GB, free: 12.84 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.7171, allocations: 0 / 1.363 GB, free: 12.84 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.7171, allocations: 0.5625 kB / 1.363 GB, free: 12.84 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002878/0.7174, allocations: 281.4 kB / 1.363 GB, free: 12.6 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001843/0.7176, allocations: 189.5 kB / 1.363 GB, free: 12.46 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.646e-05/0.7177, allocations: 15.83 kB / 1.363 GB, free: 12.45 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004105/0.7181, allocations: 39.52 kB / 1.363 GB, free: 12.43 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.81e-05/0.7182, allocations: 7.328 kB / 1.363 GB, free: 12.42 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.109e-05/0.7182, allocations: 38.7 kB / 1.363 GB, free: 12.39 MB / 0.8073 GB Notification: Performance of sort global known variables: time 0.0001515/0.7184, allocations: 217.4 kB / 1.363 GB, free: 12.23 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0003154/0.7187, allocations: 57.91 kB / 1.363 GB, free: 12.18 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.calTim.daySampleTrigger,calTim.calTim.hourSampleTrigger,$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.firstDaySampling,calTim.calTim.daysSinceEpoch,calTim.calTim.weekDay,calTim.calTim.yearIndex,calTim.calTim.year,calTim.calTim.epochLastMonth,calTim.calTim.month,calTim.calTim.firstHourSampling,calTim.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.0001371/0.7188, allocations: 136.7 kB / 1.363 GB, free: 12.05 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0003824/0.7192, allocations: 266.7 kB / 1.364 GB, free: 11.86 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.592e-06/0.7192, allocations: 0 / 1.364 GB, free: 11.86 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 9.737e-05/0.7193, allocations: 77.94 kB / 1.364 GB, free: 11.82 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002581/0.7196, allocations: 36.27 kB / 1.364 GB, free: 11.8 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005716/0.7202, allocations: 306.1 kB / 1.364 GB, free: 11.55 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002243/0.7204, allocations: 0.7768 MB / 1.365 GB, free: 10.79 MB / 0.8073 GB Notification: Performance of SimCode: time 2.3e-07/0.7204, allocations: 0 / 1.365 GB, free: 10.79 MB / 0.8073 GB Notification: Performance of Templates: time 0.005852/0.7263, allocations: 4.258 MB / 1.369 GB, free: 7.004 MB / 0.8073 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Sources_Validation_CalendarTimeMonthsPlus.csv","../files/Buildings_9_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