Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_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 10.0.0-master/package.mo): time 1.766/1.766, allocations: 390.4 MB / 397.7 MB, free: 11.24 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.0009782/0.0009782, allocations: 179.9 kB / 490.8 MB, free: 1.898 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.088/1.088, allocations: 221.3 MB / 0.7863 GB, free: 13.7 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008496/0.0008496, allocations: 90.69 kB / 0.9264 GB, free: 14.23 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 6.533e-06/6.553e-06, allocations: 4 kB / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1747/0.1747, allocations: 143 MB / 1.212 GB, free: 40.07 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4724/0.6472, allocations: 152.2 MB / 1.36 GB, free: 17.29 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001692/0.6474, allocations: 72.75 kB / 1.36 GB, free: 17.29 MB / 0.823 GB Notification: Performance of FrontEnd: time 0.0133/0.6607, allocations: 5.001 MB / 1.365 GB, free: 16.97 MB / 0.823 GB Notification: Performance of Transformations before backend: time 1.143e-05/0.6607, allocations: 9.406 kB / 1.365 GB, free: 16.97 MB / 0.823 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.0005573/0.6613, allocations: 0.6435 MB / 1.366 GB, free: 32.36 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 2.68e-05/0.6613, allocations: 8.219 kB / 1.366 GB, free: 32.36 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.44e-05/0.6614, allocations: 35.97 kB / 1.366 GB, free: 32.35 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002841/0.6617, allocations: 274.8 kB / 1.366 GB, free: 32.12 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.059e-05/0.6617, allocations: 10.31 kB / 1.366 GB, free: 32.12 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.286e-05/0.6618, allocations: 20.27 kB / 1.366 GB, free: 32.12 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001217/0.6619, allocations: 62.77 kB / 1.366 GB, free: 32.12 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002266/0.6622, allocations: 169.8 kB / 1.366 GB, free: 32.08 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.071e-06/0.6622, allocations: 0.9688 kB / 1.366 GB, free: 32.08 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.437e-05/0.6622, allocations: 2.312 kB / 1.366 GB, free: 32.08 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.31e-06/0.6622, allocations: 6.094 kB / 1.366 GB, free: 32.07 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006784/0.6629, allocations: 0.5517 MB / 1.367 GB, free: 31.82 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001458/0.663, allocations: 106.3 kB / 1.367 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.957e-05/0.6631, allocations: 60.08 kB / 1.367 GB, free: 31.79 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.986e-05/0.6632, allocations: 4.969 kB / 1.367 GB, free: 31.79 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001802/0.6634, allocations: 164.2 kB / 1.367 GB, free: 31.73 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=16): time 1.343e-06/0.6634, allocations: 0 / 1.367 GB, free: 31.73 MB / 0.8386 GB Notification: Performance of matching and sorting (n=16): time 0.0003497/0.6637, allocations: 194 kB / 1.367 GB, free: 31.68 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.968e-05/0.6637, allocations: 61.28 kB / 1.367 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002156/0.664, allocations: 270.8 kB / 1.368 GB, free: 31.52 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 4.138e-05/0.664, allocations: 31.77 kB / 1.368 GB, free: 31.49 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 6.466e-05/0.6641, allocations: 97.16 kB / 1.368 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.293e-05/0.6641, allocations: 36.23 kB / 1.368 GB, free: 31.39 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.076e-05/0.6642, allocations: 2.812 kB / 1.368 GB, free: 31.39 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001415/0.6643, allocations: 334.4 kB / 1.368 GB, free: 31.07 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001711/0.6645, allocations: 91.28 kB / 1.368 GB, free: 31.07 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001855/0.6647, allocations: 147 kB / 1.368 GB, free: 31.01 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001369/0.6648, allocations: 81.64 kB / 1.369 GB, free: 31 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.6648, allocations: 1.5 kB / 1.369 GB, free: 31 MB / 0.8386 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004694/0.6653, allocations: 284.3 kB / 1.369 GB, free: 30.96 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 9.267e-06/0.6653, allocations: 7.016 kB / 1.369 GB, free: 30.96 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/0.6653, allocations: 5.25 kB / 1.369 GB, free: 30.95 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.082e-05/0.6653, allocations: 2.594 kB / 1.369 GB, free: 30.95 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001438/0.6655, allocations: 27.23 kB / 1.369 GB, free: 30.95 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.601e-06/0.6655, allocations: 4.094 kB / 1.369 GB, free: 30.95 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003278/0.6658, allocations: 41.95 kB / 1.369 GB, free: 30.94 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.597e-05/0.6659, allocations: 39.84 kB / 1.369 GB, free: 30.94 MB / 0.8386 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.000106/0.666, allocations: 139.8 kB / 1.369 GB, free: 30.81 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.003e-05/0.6661, allocations: 30.06 kB / 1.369 GB, free: 30.79 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.956e-05/0.6661, allocations: 27.69 kB / 1.369 GB, free: 30.79 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.015e-06/0.6661, allocations: 2.781 kB / 1.369 GB, free: 30.79 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.336e-06/0.6661, allocations: 0 / 1.369 GB, free: 30.79 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/0.6661, allocations: 1.266 kB / 1.369 GB, free: 30.79 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005526/0.6667, allocations: 0.5396 MB / 1.37 GB, free: 30.51 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.6667, allocations: 5.688 kB / 1.37 GB, free: 30.51 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.593e-05/0.6668, allocations: 12.11 kB / 1.37 GB, free: 30.5 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.6668, allocations: 1.094 kB / 1.37 GB, free: 30.5 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.212e-05/0.6668, allocations: 16.2 kB / 1.37 GB, free: 30.5 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.6668, allocations: 1.406 kB / 1.37 GB, free: 30.5 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.6668, allocations: 3.938 kB / 1.37 GB, free: 30.5 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002912/0.6671, allocations: 284.5 kB / 1.37 GB, free: 30.35 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001737/0.6673, allocations: 192.5 kB / 1.37 GB, free: 30.24 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.395e-05/0.6674, allocations: 17.98 kB / 1.37 GB, free: 30.23 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000412/0.6678, allocations: 36.39 kB / 1.37 GB, free: 30.23 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.836e-05/0.6678, allocations: 10.08 kB / 1.37 GB, free: 30.23 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.015e-05/0.6679, allocations: 41.08 kB / 1.37 GB, free: 30.23 MB / 0.8386 GB Notification: Performance of sort global known variables: time 0.0001676/0.6681, allocations: 220.5 kB / 1.37 GB, free: 30.14 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.000305/0.6684, allocations: 46.36 kB / 1.37 GB, free: 30.14 MB / 0.8386 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.0001499/0.6685, allocations: 132.5 kB / 1.371 GB, free: 30.05 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0003924/0.6689, allocations: 270.5 kB / 1.371 GB, free: 29.98 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.624e-06/0.6689, allocations: 0 / 1.371 GB, free: 29.98 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 9.721e-05/0.669, allocations: 70.83 kB / 1.371 GB, free: 29.98 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002484/0.6693, allocations: 35.89 kB / 1.371 GB, free: 29.97 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005336/0.6698, allocations: 302.6 kB / 1.371 GB, free: 29.85 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002997/0.6701, allocations: 0.7808 MB / 1.372 GB, free: 29.14 MB / 0.8386 GB Notification: Performance of SimCode: time 2.6e-07/0.6701, allocations: 0 / 1.372 GB, free: 29.14 MB / 0.8386 GB Notification: Performance of Templates: time 0.006621/0.6768, allocations: 4.266 MB / 1.376 GB, free: 28.72 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Continuous_Sources_Validation_CalendarTimeMonthsMinus.csv","../files/Buildings_latest_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