Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Time.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.Utilities.Time.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.Utilities.Time.Validation.CalendarTimeMonthsMinus") translateModel(Buildings.Utilities.Time.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.Utilities.Time.Validation.CalendarTimeMonthsMinus") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.592/2.592, 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.001101/0.001102, allocations: 186.3 kB / 0.4902 GB, free: 2.281 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.654/1.654, allocations: 223.1 MB / 0.7992 GB, free: 14.73 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.001106/0.001105, allocations: 96.33 kB / 0.9396 GB, free: 1.891 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004089/0.0004089, allocations: 14.7 kB / 1.09 GB, free: 216.1 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3751/0.3755, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2125/0.5881, allocations: 152.8 MB / 1.378 GB, free: 0.75 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000275/0.5884, allocations: 79.94 kB / 1.378 GB, free: 0.6719 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.0155/0.6039, allocations: 4.59 MB / 1.383 GB, free: 12.08 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.242e-06/0.604, allocations: 0 / 1.383 GB, free: 12.08 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 1.431e-05/0.604, allocations: 4 kB / 1.383 GB, free: 12.07 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.001009/0.605, allocations: 0.6728 MB / 1.384 GB, free: 11.32 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.198e-05/0.6051, allocations: 12.5 kB / 1.384 GB, free: 11.3 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001043/0.6052, allocations: 27.72 kB / 1.384 GB, free: 11.28 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004115/0.6056, allocations: 258.5 kB / 1.384 GB, free: 10.98 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.653e-05/0.6057, allocations: 12 kB / 1.384 GB, free: 10.97 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.705e-05/0.6058, allocations: 20 kB / 1.384 GB, free: 10.95 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009195/0.6067, allocations: 205.2 kB / 1.384 GB, free: 10.75 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.887e-06/0.6067, allocations: 0 / 1.384 GB, free: 10.75 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.03e-05/0.6067, allocations: 11.98 kB / 1.384 GB, free: 10.73 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.961e-06/0.6068, allocations: 0 / 1.384 GB, free: 10.73 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007236/0.6075, allocations: 107.9 kB / 1.384 GB, free: 10.63 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004462/0.6079, allocations: 337.3 kB / 1.385 GB, free: 10.25 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009873/0.6089, allocations: 182.5 kB / 1.385 GB, free: 10.06 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 2.987e-05/0.609, allocations: 3.984 kB / 1.385 GB, free: 10.06 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008634/0.6098, allocations: 222 kB / 1.385 GB, free: 9.832 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=16): time 1.693e-06/0.6099, allocations: 0 / 1.385 GB, free: 9.832 MB / 0.8855 GB Notification: Performance of matching and sorting (n=16): time 0.002312/0.6122, allocations: 480.9 kB / 1.385 GB, free: 9.355 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.737e-05/0.6122, allocations: 63.41 kB / 1.385 GB, free: 9.281 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002948/0.6125, allocations: 254.1 kB / 1.386 GB, free: 9.031 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 4.989e-05/0.6126, allocations: 37.7 kB / 1.386 GB, free: 8.988 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 7.443e-05/0.6127, allocations: 93.12 kB / 1.386 GB, free: 8.895 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 4.807e-05/0.6127, allocations: 39.41 kB / 1.386 GB, free: 8.855 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.077e-05/0.6128, allocations: 7.984 kB / 1.386 GB, free: 8.848 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.000166/0.613, allocations: 334.8 kB / 1.386 GB, free: 8.512 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002395/0.6132, allocations: 83.95 kB / 1.386 GB, free: 8.43 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003029/0.6135, allocations: 151.6 kB / 1.386 GB, free: 8.262 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002688/0.6138, allocations: 156 kB / 1.387 GB, free: 8.098 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.6138, allocations: 0 / 1.387 GB, free: 8.098 MB / 0.8855 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000739/0.6145, allocations: 401.5 kB / 1.387 GB, free: 7.688 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 7.457e-05/0.6146, allocations: 75.39 kB / 1.387 GB, free: 7.602 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.211e-06/0.6146, allocations: 3.938 kB / 1.387 GB, free: 7.598 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.565e-05/0.6147, allocations: 4 kB / 1.387 GB, free: 7.594 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001579/0.6148, allocations: 19.92 kB / 1.387 GB, free: 7.574 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.165e-06/0.6148, allocations: 8.188 kB / 1.387 GB, free: 7.566 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003451/0.6152, allocations: 51.81 kB / 1.387 GB, free: 7.516 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.661e-05/0.6153, allocations: 39.98 kB / 1.387 GB, free: 7.477 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.0002048/0.6155, allocations: 172 kB / 1.387 GB, free: 7.301 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.513e-05/0.6156, allocations: 27.67 kB / 1.387 GB, free: 7.273 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.271e-05/0.6156, allocations: 30.3 kB / 1.387 GB, free: 7.242 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.833e-06/0.6156, allocations: 7.984 kB / 1.387 GB, free: 7.234 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.159e-06/0.6156, allocations: 0 / 1.387 GB, free: 7.234 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.916e-06/0.6157, allocations: 0 / 1.387 GB, free: 7.234 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00212/0.6178, allocations: 0.705 MB / 1.388 GB, free: 6.473 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.6178, allocations: 0 / 1.388 GB, free: 6.473 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.554e-05/0.6178, allocations: 7.984 kB / 1.388 GB, free: 6.465 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.129e-06/0.6178, allocations: 8 kB / 1.388 GB, free: 6.457 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.496e-05/0.6179, allocations: 15.98 kB / 1.388 GB, free: 6.441 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.838e-06/0.6179, allocations: 3.984 kB / 1.388 GB, free: 6.438 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.6179, allocations: 3.984 kB / 1.388 GB, free: 6.434 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001612/0.6195, allocations: 465.5 kB / 1.389 GB, free: 5.965 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002216/0.6198, allocations: 160.6 kB / 1.389 GB, free: 5.789 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.444e-05/0.6198, allocations: 23.98 kB / 1.389 GB, free: 5.766 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003924/0.6202, allocations: 27.97 kB / 1.389 GB, free: 5.738 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.778e-05/0.6203, allocations: 7.984 kB / 1.389 GB, free: 5.73 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.752e-05/0.6203, allocations: 43.98 kB / 1.389 GB, free: 5.688 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0002028/0.6205, allocations: 205.9 kB / 1.389 GB, free: 5.484 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.61e-07/0.6206, allocations: 7.938 kB / 1.389 GB, free: 5.477 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0003676/0.6209, allocations: 52.38 kB / 1.389 GB, free: 5.426 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.0001959/0.6211, allocations: 121.9 kB / 1.389 GB, free: 5.301 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.001254/0.6224, allocations: 398.5 kB / 1.39 GB, free: 4.887 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 3.818e-06/0.6224, allocations: 0 / 1.39 GB, free: 4.887 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0006965/0.6231, allocations: 127.8 kB / 1.39 GB, free: 4.762 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00026/0.6234, allocations: 29.66 kB / 1.39 GB, free: 4.734 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001348/0.6247, allocations: 499.1 kB / 1.39 GB, free: 4.211 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000395/0.6252, allocations: 0.7515 MB / 1.391 GB, free: 3.434 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 6.765e-05/0.6252, allocations: 16.64 kB / 1.391 GB, free: 3.418 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.023e-05/0.6253, allocations: 15.42 kB / 1.391 GB, free: 3.402 MB / 0.8855 GB Notification: Performance of SimCode: time 7.81e-07/0.6253, allocations: 0 / 1.391 GB, free: 3.402 MB / 0.8855 GB Notification: Performance of Templates: time 0.007545/0.6328, allocations: 3.91 MB / 1.395 GB, free: 15.5 MB / 0.9011 GB make -j1 -f Buildings_latest_Buildings.Utilities.Time.Validation.CalendarTimeMonthsMinus.makefile (rm -f Buildings_latest_Buildings.Utilities.Time.Validation.CalendarTimeMonthsMinus.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Time.Validation.CalendarTimeMonthsMinus.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Time.Validation.CalendarTimeMonthsMinus.pipe >> ../files/Buildings_latest_Buildings.Utilities.Time.Validation.CalendarTimeMonthsMinus.sim & ./Buildings_latest_Buildings.Utilities.Time.Validation.CalendarTimeMonthsMinus -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Time.Validation.CalendarTimeMonthsMinus.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Time.Validation.CalendarTimeMonthsMinus_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Time_Validation_CalendarTimeMonthsMinus.csv","../files/Buildings_latest_Buildings.Utilities.Time.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.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