Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.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.CalendarTimeMonthsMinus,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.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_9_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 9.1.1-maint.9.1.x/package.mo): time 1.793/1.793, allocations: 387.2 MB / 394.5 MB, free: 13.67 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.0009005/0.0009004, allocations: 179.9 kB / 487 MB, free: 5.375 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.132/1.132, allocations: 221.3 MB / 0.7819 GB, free: 1.41 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.0008608/0.0008607, allocations: 93.73 kB / 0.9213 GB, free: 2.648 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 6.632e-06/6.652e-06, allocations: 4 kB / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1815/0.1816, allocations: 142.3 MB / 1.205 GB, free: 26.22 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5161/0.6977, allocations: 151.4 MB / 1.353 GB, free: 16.11 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002075/0.6979, allocations: 73.8 kB / 1.353 GB, free: 16.11 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.01491/0.7129, allocations: 4.997 MB / 1.358 GB, free: 15.8 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 1.268e-05/0.7129, allocations: 3.781 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.0005773/0.7135, allocations: 0.6467 MB / 1.359 GB, free: 15.2 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 2.962e-05/0.7135, allocations: 13.25 kB / 1.359 GB, free: 15.2 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.934e-05/0.7136, allocations: 36.58 kB / 1.359 GB, free: 15.18 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003015/0.7139, allocations: 269.1 kB / 1.359 GB, free: 14.96 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.221e-05/0.714, allocations: 10.31 kB / 1.359 GB, free: 14.96 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.02e-05/0.7141, allocations: 20.48 kB / 1.359 GB, free: 14.96 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001341/0.7142, allocations: 58.55 kB / 1.359 GB, free: 14.96 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002642/0.7145, allocations: 163 kB / 1.359 GB, free: 14.92 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.668e-06/0.7145, allocations: 0 / 1.359 GB, free: 14.92 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.697e-05/0.7145, allocations: 10.33 kB / 1.359 GB, free: 14.92 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.147e-06/0.7145, allocations: 1.656 kB / 1.359 GB, free: 14.92 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007238/0.7153, allocations: 0.5558 MB / 1.36 GB, free: 14.66 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000167/0.7154, allocations: 102.9 kB / 1.36 GB, free: 14.64 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.952e-05/0.7155, allocations: 58.66 kB / 1.36 GB, free: 14.63 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 2.218e-05/0.7156, allocations: 10.19 kB / 1.36 GB, free: 14.63 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002171/0.7158, allocations: 160.3 kB / 1.36 GB, free: 14.58 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=16): time 1.443e-06/0.7158, allocations: 0 / 1.36 GB, free: 14.58 MB / 0.8073 GB Notification: Performance of matching and sorting (n=16): time 0.0004182/0.7162, allocations: 189.4 kB / 1.36 GB, free: 14.53 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.518e-05/0.7163, allocations: 61.78 kB / 1.36 GB, free: 14.46 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002669/0.7165, allocations: 278 kB / 1.361 GB, free: 14.36 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 4.524e-05/0.7166, allocations: 36.61 kB / 1.361 GB, free: 14.32 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 5.091e-05/0.7166, allocations: 92.34 kB / 1.361 GB, free: 14.24 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 3.414e-05/0.7167, allocations: 41.16 kB / 1.361 GB, free: 14.22 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.216e-05/0.7167, allocations: 3.531 kB / 1.361 GB, free: 14.22 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 3.957e-05/0.7168, allocations: 321.9 kB / 1.361 GB, free: 13.91 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001945/0.717, allocations: 98.5 kB / 1.361 GB, free: 13.89 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001777/0.7171, allocations: 150.1 kB / 1.361 GB, free: 13.77 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001349/0.7173, allocations: 74.05 kB / 1.361 GB, free: 13.74 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.484e-06/0.7173, allocations: 0 / 1.361 GB, free: 13.74 MB / 0.8073 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004575/0.7178, allocations: 294.9 kB / 1.362 GB, free: 13.54 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 8.175e-06/0.7178, allocations: 4 kB / 1.362 GB, free: 13.54 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.649e-06/0.7178, allocations: 4 kB / 1.362 GB, free: 13.54 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.148e-05/0.7178, allocations: 8.516 kB / 1.362 GB, free: 13.53 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00014/0.7179, allocations: 24.58 kB / 1.362 GB, free: 13.51 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.22e-06/0.718, allocations: 7.984 kB / 1.362 GB, free: 13.5 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003173/0.7183, allocations: 38.73 kB / 1.362 GB, free: 13.47 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.107e-05/0.7183, allocations: 40.41 kB / 1.362 GB, free: 13.44 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 9.16e-05/0.7184, allocations: 132.6 kB / 1.362 GB, free: 13.31 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.152e-05/0.7185, allocations: 29.03 kB / 1.362 GB, free: 13.28 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.473e-05/0.7186, allocations: 34.72 kB / 1.362 GB, free: 13.26 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.7186, allocations: 0 / 1.362 GB, free: 13.26 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.057e-06/0.7186, allocations: 4 kB / 1.362 GB, free: 13.25 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.997e-06/0.7186, allocations: 1.312 kB / 1.362 GB, free: 13.25 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000555/0.7191, allocations: 0.5399 MB / 1.362 GB, free: 12.84 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.7192, allocations: 0 / 1.362 GB, free: 12.84 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.594e-05/0.7192, allocations: 5.547 kB / 1.362 GB, free: 12.84 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.7192, allocations: 0 / 1.362 GB, free: 12.84 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.446e-05/0.7192, allocations: 18.14 kB / 1.363 GB, free: 12.83 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.7193, allocations: 0.6094 kB / 1.363 GB, free: 12.83 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.7193, allocations: 0 / 1.363 GB, free: 12.83 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002645/0.7195, allocations: 295.9 kB / 1.363 GB, free: 12.58 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001787/0.7197, allocations: 185.1 kB / 1.363 GB, free: 12.45 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.508e-05/0.7198, allocations: 16.28 kB / 1.363 GB, free: 12.44 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004219/0.7202, allocations: 35.64 kB / 1.363 GB, free: 12.41 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.95e-05/0.7203, allocations: 10.33 kB / 1.363 GB, free: 12.41 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.844e-05/0.7203, allocations: 42.94 kB / 1.363 GB, free: 12.37 MB / 0.8073 GB Notification: Performance of sort global known variables: time 0.0001445/0.7205, allocations: 216.6 kB / 1.363 GB, free: 12.21 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0002987/0.7208, allocations: 53.58 kB / 1.363 GB, free: 12.16 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.0001483/0.7209, allocations: 137.4 kB / 1.363 GB, free: 12.04 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0003898/0.7213, allocations: 278.5 kB / 1.364 GB, free: 11.84 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.7213, allocations: 0 / 1.364 GB, free: 11.84 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 9.455e-05/0.7214, allocations: 67.33 kB / 1.364 GB, free: 11.8 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002605/0.7217, allocations: 34.64 kB / 1.364 GB, free: 11.78 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005249/0.7222, allocations: 301.1 kB / 1.364 GB, free: 11.53 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002971/0.7225, allocations: 0.7765 MB / 1.365 GB, free: 26.77 MB / 0.823 GB Notification: Performance of SimCode: time 2.3e-07/0.7225, allocations: 0 / 1.365 GB, free: 26.77 MB / 0.823 GB Notification: Performance of Templates: time 0.006117/0.7287, allocations: 4.267 MB / 1.369 GB, free: 23 MB / 0.823 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Sources_Validation_CalendarTimeMonthsMinus.csv","../files/Buildings_9_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