Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Time.Validation.CalendarTimeMonths.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.Utilities.Time.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_latest_Buildings.Utilities.Time.Validation.CalendarTimeMonths") translateModel(Buildings.Utilities.Time.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_latest_Buildings.Utilities.Time.Validation.CalendarTimeMonths") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.544/2.544, allocations: 393.5 MB / 408.4 MB, free: 11 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.001545/0.001545, allocations: 179.2 kB / 0.4902 GB, free: 2.238 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.737/1.737, allocations: 223.1 MB / 0.7992 GB, free: 15.67 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.0009611/0.0009611, allocations: 101.8 kB / 0.9396 GB, free: 2.828 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004116/0.0004117, allocations: 8.766 kB / 1.09 GB, free: 212.8 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3475/0.348, allocations: 143 MB / 1.229 GB, free: 85.47 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2396/0.5876, allocations: 152.7 MB / 1.378 GB, free: 12.55 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004476/0.5881, allocations: 75.94 kB / 1.378 GB, free: 12.47 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.0278/0.616, allocations: 4.6 MB / 1.383 GB, free: 7.867 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.844e-06/0.616, allocations: 0 / 1.383 GB, free: 7.867 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 2.549e-05/0.6161, allocations: 4 kB / 1.383 GB, free: 7.863 MB / 0.8855 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.001637/0.6177, allocations: 0.6605 MB / 1.384 GB, free: 7.117 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 6.892e-05/0.6178, allocations: 12.56 kB / 1.384 GB, free: 7.105 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002332/0.618, allocations: 35.7 kB / 1.384 GB, free: 7.07 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000757/0.6188, allocations: 258.4 kB / 1.384 GB, free: 6.773 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.926e-05/0.6189, allocations: 15.98 kB / 1.384 GB, free: 6.758 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001249/0.6191, allocations: 15.98 kB / 1.384 GB, free: 6.742 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001604/0.6207, allocations: 209.5 kB / 1.384 GB, free: 6.531 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.626e-05/0.6207, allocations: 0 / 1.384 GB, free: 6.531 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.13e-05/0.6208, allocations: 4 kB / 1.384 GB, free: 6.527 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.576e-06/0.6208, allocations: 4 kB / 1.384 GB, free: 6.523 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001295/0.6221, allocations: 107.5 kB / 1.384 GB, free: 6.422 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008587/0.623, allocations: 337.3 kB / 1.385 GB, free: 6.043 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00179/0.6248, allocations: 190.4 kB / 1.385 GB, free: 5.848 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 4.472e-05/0.6249, allocations: 4 kB / 1.385 GB, free: 5.844 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001555/0.6265, allocations: 216.9 kB / 1.385 GB, free: 5.621 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=16): time 2.525e-06/0.6265, allocations: 0 / 1.385 GB, free: 5.621 MB / 0.8855 GB Notification: Performance of matching and sorting (n=16): time 0.004412/0.6309, allocations: 484.9 kB / 1.385 GB, free: 5.141 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.647e-05/0.631, allocations: 55.41 kB / 1.385 GB, free: 5.074 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005574/0.6316, allocations: 258.1 kB / 1.386 GB, free: 4.82 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 9.387e-05/0.6317, allocations: 33.7 kB / 1.386 GB, free: 4.781 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001311/0.6318, allocations: 101.1 kB / 1.386 GB, free: 4.68 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001096/0.632, allocations: 43.44 kB / 1.386 GB, free: 4.637 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.82e-05/0.632, allocations: 8 kB / 1.386 GB, free: 4.629 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0002027/0.6323, allocations: 326.8 kB / 1.386 GB, free: 4.301 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004669/0.6328, allocations: 91.94 kB / 1.386 GB, free: 4.211 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005379/0.6333, allocations: 143.6 kB / 1.386 GB, free: 4.051 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005162/0.6338, allocations: 156 kB / 1.387 GB, free: 3.887 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.2e-06/0.6339, allocations: 0 / 1.387 GB, free: 3.887 MB / 0.8855 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001469/0.6353, allocations: 398.5 kB / 1.387 GB, free: 3.48 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001175/0.6355, allocations: 75.42 kB / 1.387 GB, free: 3.395 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.531e-05/0.6355, allocations: 4 kB / 1.387 GB, free: 3.391 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.793e-05/0.6356, allocations: 4 kB / 1.387 GB, free: 3.387 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002832/0.6359, allocations: 27.84 kB / 1.387 GB, free: 3.359 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.756e-05/0.6359, allocations: 4 kB / 1.387 GB, free: 3.355 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006298/0.6365, allocations: 43.77 kB / 1.387 GB, free: 3.312 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001333/0.6367, allocations: 43.98 kB / 1.387 GB, free: 3.27 MB / 0.8855 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 () * Number of clocked 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.0003596/0.6371, allocations: 172 kB / 1.387 GB, free: 3.094 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.802e-05/0.6372, allocations: 27.67 kB / 1.387 GB, free: 3.066 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.415e-05/0.6373, allocations: 30.3 kB / 1.387 GB, free: 3.035 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.142e-06/0.6373, allocations: 0 / 1.387 GB, free: 3.035 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.215e-06/0.6373, allocations: 0 / 1.387 GB, free: 3.035 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.12e-05/0.6374, allocations: 4 kB / 1.387 GB, free: 3.031 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003684/0.6411, allocations: 0.7187 MB / 1.388 GB, free: 2.258 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.518e-06/0.6411, allocations: 0 / 1.388 GB, free: 2.258 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.885e-05/0.6412, allocations: 4 kB / 1.388 GB, free: 2.254 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.6e-06/0.6412, allocations: 0 / 1.388 GB, free: 2.254 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.393e-05/0.6412, allocations: 19.97 kB / 1.388 GB, free: 2.234 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.898e-06/0.6413, allocations: 4 kB / 1.388 GB, free: 2.23 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.6413, allocations: 0 / 1.388 GB, free: 2.23 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003073/0.6444, allocations: 459 kB / 1.388 GB, free: 1.766 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004057/0.6448, allocations: 172.5 kB / 1.389 GB, free: 1.578 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000121/0.6449, allocations: 8 kB / 1.389 GB, free: 1.57 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007727/0.6457, allocations: 39.91 kB / 1.389 GB, free: 1.531 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.653e-05/0.6458, allocations: 15.98 kB / 1.389 GB, free: 1.516 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001086/0.6459, allocations: 39.98 kB / 1.389 GB, free: 1.477 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0003844/0.6463, allocations: 205.9 kB / 1.389 GB, free: 1.273 MB / 0.8855 GB Notification: Performance of sort global known variables: time 3.31e-07/0.6463, allocations: 3.938 kB / 1.389 GB, free: 1.27 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0007382/0.6471, allocations: 56.36 kB / 1.389 GB, free: 1.215 MB / 0.8855 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) * Number of clocked states: 0 () * 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.0002951/0.6474, allocations: 122.3 kB / 1.389 GB, free: 1.09 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.002195/0.6496, allocations: 396.6 kB / 1.389 GB, free: 0.6797 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 5.811e-06/0.6496, allocations: 0 / 1.389 GB, free: 0.6797 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.001336/0.651, allocations: 128.3 kB / 1.39 GB, free: 0.5547 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004368/0.6514, allocations: 20.36 kB / 1.39 GB, free: 0.5352 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002431/0.6539, allocations: 0.503 MB / 1.39 GB, free: 15.99 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000575/0.6545, allocations: 0.7437 MB / 1.391 GB, free: 15.23 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 0.0001219/0.6546, allocations: 4.656 kB / 1.391 GB, free: 15.22 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.012e-05/0.6547, allocations: 23.42 kB / 1.391 GB, free: 15.2 MB / 0.9011 GB Notification: Performance of SimCode: time 1.303e-06/0.6547, allocations: 0 / 1.391 GB, free: 15.2 MB / 0.9011 GB Notification: Performance of Templates: time 0.01603/0.6708, allocations: 3.906 MB / 1.395 GB, free: 11.31 MB / 0.9011 GB make -j1 -f Buildings_latest_Buildings.Utilities.Time.Validation.CalendarTimeMonths.makefile (rm -f Buildings_latest_Buildings.Utilities.Time.Validation.CalendarTimeMonths.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Time.Validation.CalendarTimeMonths.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Time.Validation.CalendarTimeMonths.pipe >> ../files/Buildings_latest_Buildings.Utilities.Time.Validation.CalendarTimeMonths.sim & ./Buildings_latest_Buildings.Utilities.Time.Validation.CalendarTimeMonths -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Time.Validation.CalendarTimeMonths.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Time.Validation.CalendarTimeMonths_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Time_Validation_CalendarTimeMonths.csv","../files/Buildings_latest_Buildings.Utilities.Time.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.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