Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.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.CalendarTimeMonths,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.CalendarTimeMonths") translateModel(Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths,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.CalendarTimeMonths") [: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.781/1.781, allocations: 387.2 MB / 394.5 MB, free: 13.61 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.0009692/0.0009692, allocations: 177.2 kB / 487 MB, free: 5.324 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.13/1.13, allocations: 221.3 MB / 0.7819 GB, free: 1.312 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.0008311/0.0008311, allocations: 103.3 kB / 0.9213 GB, free: 2.566 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 6.663e-06/6.683e-06, allocations: 0 / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1772/0.1772, allocations: 142.3 MB / 1.205 GB, free: 26.18 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5053/0.6826, allocations: 151.3 MB / 1.353 GB, free: 16.1 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001859/0.6828, allocations: 72.81 kB / 1.353 GB, free: 16.1 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.0146/0.6974, allocations: 4.982 MB / 1.358 GB, free: 15.79 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 1.335e-05/0.6975, allocations: 3.812 kB / 1.358 GB, free: 15.79 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.0006136/0.6981, allocations: 0.6481 MB / 1.359 GB, free: 15.2 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.273e-05/0.6981, allocations: 9.094 kB / 1.359 GB, free: 15.2 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.773e-05/0.6982, allocations: 36.33 kB / 1.359 GB, free: 15.18 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003195/0.6986, allocations: 275.9 kB / 1.359 GB, free: 14.96 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.022e-05/0.6986, allocations: 9.266 kB / 1.359 GB, free: 14.96 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.184e-05/0.6987, allocations: 16.77 kB / 1.359 GB, free: 14.96 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001402/0.6988, allocations: 58.86 kB / 1.359 GB, free: 14.96 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002711/0.6991, allocations: 174.3 kB / 1.359 GB, free: 14.91 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.874e-06/0.6991, allocations: 1.125 kB / 1.359 GB, free: 14.91 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.733e-05/0.6991, allocations: 10.44 kB / 1.359 GB, free: 14.91 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.64e-06/0.6992, allocations: 1.781 kB / 1.359 GB, free: 14.91 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000745/0.6999, allocations: 0.5536 MB / 1.36 GB, free: 14.66 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001824/0.7001, allocations: 106.2 kB / 1.36 GB, free: 14.63 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001136/0.7002, allocations: 58.22 kB / 1.36 GB, free: 14.62 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 2.382e-05/0.7003, allocations: 2.641 kB / 1.36 GB, free: 14.62 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002444/0.7005, allocations: 168.8 kB / 1.36 GB, free: 14.57 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=16): time 1.423e-06/0.7005, allocations: 0 / 1.36 GB, free: 14.57 MB / 0.8073 GB Notification: Performance of matching and sorting (n=16): time 0.0004383/0.701, allocations: 193.1 kB / 1.36 GB, free: 14.52 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.538e-05/0.701, allocations: 58.22 kB / 1.36 GB, free: 14.45 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002595/0.7013, allocations: 280.9 kB / 1.361 GB, free: 14.32 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 4.313e-05/0.7013, allocations: 37.86 kB / 1.361 GB, free: 14.28 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 4.931e-05/0.7014, allocations: 87.95 kB / 1.361 GB, free: 14.19 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 2.869e-05/0.7014, allocations: 41.97 kB / 1.361 GB, free: 14.16 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.052e-05/0.7014, allocations: 4.516 kB / 1.361 GB, free: 14.16 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 4.291e-05/0.7015, allocations: 322.2 kB / 1.361 GB, free: 13.84 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001688/0.7017, allocations: 100.1 kB / 1.361 GB, free: 13.79 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001765/0.7018, allocations: 146.8 kB / 1.361 GB, free: 13.68 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001355/0.702, allocations: 78.94 kB / 1.361 GB, free: 13.64 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.702, allocations: 0 / 1.361 GB, free: 13.64 MB / 0.8073 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004547/0.7025, allocations: 282.5 kB / 1.362 GB, free: 13.45 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 9.467e-06/0.7025, allocations: 4 kB / 1.362 GB, free: 13.45 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.282e-06/0.7025, allocations: 4.562 kB / 1.362 GB, free: 13.44 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.198e-05/0.7025, allocations: 4 kB / 1.362 GB, free: 13.44 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001415/0.7026, allocations: 25.58 kB / 1.362 GB, free: 13.42 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.98e-06/0.7027, allocations: 4 kB / 1.362 GB, free: 13.42 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003171/0.703, allocations: 38.28 kB / 1.362 GB, free: 13.39 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.379e-05/0.7031, allocations: 44.28 kB / 1.362 GB, free: 13.35 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.704e-05/0.7032, allocations: 136.6 kB / 1.362 GB, free: 13.22 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.821e-05/0.7032, allocations: 28.42 kB / 1.362 GB, free: 13.19 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.619e-05/0.7033, allocations: 29.64 kB / 1.362 GB, free: 13.17 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.314e-06/0.7033, allocations: 3.938 kB / 1.362 GB, free: 13.17 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.7033, allocations: 0 / 1.362 GB, free: 13.17 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.549e-06/0.7033, allocations: 1.219 kB / 1.362 GB, free: 13.17 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005724/0.7039, allocations: 0.5396 MB / 1.362 GB, free: 12.75 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/0.7039, allocations: 0.7031 kB / 1.362 GB, free: 12.75 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.551e-05/0.7039, allocations: 4.656 kB / 1.362 GB, free: 12.75 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.7039, allocations: 4.562 kB / 1.362 GB, free: 12.75 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.451e-05/0.704, allocations: 18.41 kB / 1.362 GB, free: 12.74 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.704, allocations: 0 / 1.362 GB, free: 12.74 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/0.704, allocations: 4.703 kB / 1.362 GB, free: 12.73 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002719/0.7043, allocations: 280.8 kB / 1.363 GB, free: 12.5 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001813/0.7044, allocations: 184.6 kB / 1.363 GB, free: 12.36 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.603e-05/0.7045, allocations: 17.61 kB / 1.363 GB, free: 12.36 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004179/0.705, allocations: 39.14 kB / 1.363 GB, free: 12.33 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.056e-05/0.705, allocations: 7.422 kB / 1.363 GB, free: 12.32 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.813e-05/0.705, allocations: 42.52 kB / 1.363 GB, free: 12.29 MB / 0.8073 GB Notification: Performance of sort global known variables: time 0.0001469/0.7052, allocations: 216 kB / 1.363 GB, free: 12.13 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0003026/0.7055, allocations: 62.2 kB / 1.363 GB, free: 12.08 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.0001476/0.7057, allocations: 134.5 kB / 1.363 GB, free: 11.95 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0003763/0.706, allocations: 268.5 kB / 1.364 GB, free: 11.76 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.483e-06/0.7061, allocations: 0 / 1.364 GB, free: 11.76 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 8.969e-05/0.7061, allocations: 69.12 kB / 1.364 GB, free: 11.72 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002607/0.7064, allocations: 38.8 kB / 1.364 GB, free: 11.7 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005306/0.707, allocations: 305 kB / 1.364 GB, free: 11.45 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002876/0.7073, allocations: 0.7733 MB / 1.365 GB, free: 26.68 MB / 0.823 GB Notification: Performance of SimCode: time 2.71e-07/0.7073, allocations: 4 kB / 1.365 GB, free: 26.68 MB / 0.823 GB Notification: Performance of Templates: time 0.005861/0.7131, allocations: 4.27 MB / 1.369 GB, free: 22.9 MB / 0.823 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Sources_Validation_CalendarTimeMonths.csv","../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.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