Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|calTim.year|calTim.month|calTim.day|calTim.weekDay|calTim.hour|calTim.minute",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus") translateModel(Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|calTim.year|calTim.month|calTim.day|calTim.weekDay|calTim.hour|calTim.minute",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.465/1.465, allocations: 249.3 MB / 261.8 MB, free: 5.914 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001051/0.001051, allocations: 180.4 kB / 321.3 MB, free: 14.65 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.409/1.409, allocations: 205.2 MB / 0.572 GB, free: 10.61 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008747/0.0008748, allocations: 82.53 kB / 0.6764 GB, free: 15.59 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 4.946e-05/4.969e-05, allocations: 4 kB / 0.788 GB, free: 97.07 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2254/0.2255, allocations: 106.3 MB / 0.8918 GB, free: 6.641 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7446/0.9701, allocations: 133.8 MB / 1.023 GB, free: 0.8828 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002438/0.9704, allocations: 71.89 kB / 1.023 GB, free: 0.8438 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.01516/0.9856, allocations: 5.207 MB / 1.028 GB, free: 12.38 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.122e-06/0.9857, allocations: 0 / 1.028 GB, free: 12.38 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 2.146e-05/0.9857, allocations: 4 kB / 1.028 GB, free: 12.38 MB / 0.6511 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.0009242/0.9866, allocations: 0.6014 MB / 1.028 GB, free: 11.73 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.681e-05/0.9867, allocations: 12.03 kB / 1.028 GB, free: 11.71 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.6e-05/0.9868, allocations: 31.72 kB / 1.028 GB, free: 11.68 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004027/0.9872, allocations: 276.4 kB / 1.029 GB, free: 11.4 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.423e-05/0.9872, allocations: 14.86 kB / 1.029 GB, free: 11.39 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.852e-05/0.9873, allocations: 23.05 kB / 1.029 GB, free: 11.37 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003041/0.9876, allocations: 163.8 kB / 1.029 GB, free: 11.23 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.864e-06/0.9876, allocations: 0 / 1.029 GB, free: 11.23 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.999e-05/0.9877, allocations: 11.39 kB / 1.029 GB, free: 11.23 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.072e-06/0.9877, allocations: 0 / 1.029 GB, free: 11.23 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000155/0.9878, allocations: 63.03 kB / 1.029 GB, free: 11.18 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001165/0.989, allocations: 0.5883 MB / 1.029 GB, free: 10.66 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002597/0.9893, allocations: 139.5 kB / 1.03 GB, free: 10.55 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001249/0.9894, allocations: 61.91 kB / 1.03 GB, free: 10.51 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 3.428e-05/0.9895, allocations: 3.984 kB / 1.03 GB, free: 10.51 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004287/0.9899, allocations: 221.5 kB / 1.03 GB, free: 10.31 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=18): time 1.784e-06/0.9899, allocations: 0 / 1.03 GB, free: 10.31 MB / 0.6511 GB Notification: Performance of matching and sorting (n=18): time 0.000529/0.9905, allocations: 234.1 kB / 1.03 GB, free: 10.11 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.485e-05/0.9905, allocations: 58.91 kB / 1.03 GB, free: 10.04 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003013/0.9908, allocations: 286.2 kB / 1.03 GB, free: 9.812 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 5.827e-05/0.9909, allocations: 35.77 kB / 1.03 GB, free: 9.777 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 8.278e-05/0.991, allocations: 103.9 kB / 1.031 GB, free: 9.676 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 5.272e-05/0.9911, allocations: 57 kB / 1.031 GB, free: 9.629 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.354e-05/0.9911, allocations: 11.06 kB / 1.031 GB, free: 9.621 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001493/0.9913, allocations: 325.5 kB / 1.031 GB, free: 9.301 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002373/0.9915, allocations: 115 kB / 1.031 GB, free: 9.227 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002705/0.9918, allocations: 162.8 kB / 1.031 GB, free: 9.09 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002432/0.992, allocations: 166.9 kB / 1.031 GB, free: 8.945 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.992, allocations: 0 / 1.031 GB, free: 8.945 MB / 0.6511 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007366/0.9928, allocations: 440.5 kB / 1.032 GB, free: 8.59 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 7.142e-05/0.9929, allocations: 78.58 kB / 1.032 GB, free: 8.508 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.566e-06/0.9929, allocations: 4 kB / 1.032 GB, free: 8.504 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.265e-05/0.9929, allocations: 0 / 1.032 GB, free: 8.504 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001621/0.9931, allocations: 35.66 kB / 1.032 GB, free: 8.473 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.869e-06/0.9931, allocations: 0 / 1.032 GB, free: 8.473 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003773/0.9935, allocations: 51.75 kB / 1.032 GB, free: 8.426 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001019/0.9936, allocations: 47.98 kB / 1.032 GB, free: 8.379 MB / 0.6511 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 26 ($PRE.calTim.calTim.firstDaySampling,calTim.calTim.firstDaySampling,$PRE.calTim.calTim.firstHourSampling,calTim.calTim.firstHourSampling,$whenCondition3,calTim.calTim.hourSampleTrigger,$whenCondition4,calTim.calTim.daySampleTrigger,$whenCondition2,$whenCondition1,$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 (28): * Single equations (assignments): 26 * 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.0001384/0.9937, allocations: 151.6 kB / 1.032 GB, free: 8.234 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.981e-05/0.9938, allocations: 27.62 kB / 1.032 GB, free: 8.207 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.322e-05/0.9939, allocations: 33.64 kB / 1.032 GB, free: 8.184 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.417e-06/0.9939, allocations: 0 / 1.032 GB, free: 8.184 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.9939, allocations: 0 / 1.032 GB, free: 8.184 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.376e-06/0.9939, allocations: 0 / 1.032 GB, free: 8.184 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007872/0.9947, allocations: 0.5924 MB / 1.033 GB, free: 7.625 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.9947, allocations: 4 kB / 1.033 GB, free: 7.621 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.723e-05/0.9948, allocations: 15.73 kB / 1.033 GB, free: 7.609 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.076e-06/0.9948, allocations: 0 / 1.033 GB, free: 7.609 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.811e-05/0.9948, allocations: 11.98 kB / 1.033 GB, free: 7.598 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.724e-06/0.9948, allocations: 0 / 1.033 GB, free: 7.598 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.9948, allocations: 0 / 1.033 GB, free: 7.598 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000411/0.9952, allocations: 333 kB / 1.033 GB, free: 7.297 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002153/0.9955, allocations: 181.9 kB / 1.033 GB, free: 7.129 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.858e-05/0.9955, allocations: 14.81 kB / 1.033 GB, free: 7.121 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001756/0.9957, allocations: 19.05 kB / 1.033 GB, free: 7.105 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.23e-05/0.9958, allocations: 19.09 kB / 1.033 GB, free: 7.09 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.294e-05/0.9958, allocations: 27.98 kB / 1.033 GB, free: 7.062 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0002234/0.9961, allocations: 229.5 kB / 1.034 GB, free: 6.879 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9961, allocations: 0 / 1.034 GB, free: 6.879 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0003268/0.9964, allocations: 58.67 kB / 1.034 GB, free: 6.828 MB / 0.6511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 16 (calTim.calTim.daySampleTrigger,calTim.calTim.hourSampleTrigger,$whenCondition4,$whenCondition3,$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.yearIndex,calTim.calTim.firstDaySampling,calTim.calTim.daysSinceEpoch,calTim.calTim.weekDay,calTim.calTim.firstHourSampling,calTim.calTim.hour,calTim.calTim.epochLastMonth,calTim.calTim.month,calTim.calTim.year) * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 8 * 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.0002215/0.9966, allocations: 133.4 kB / 1.034 GB, free: 6.699 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0005543/0.9972, allocations: 364.7 kB / 1.034 GB, free: 6.402 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.9972, allocations: 0 / 1.034 GB, free: 6.402 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0001339/0.9974, allocations: 84.06 kB / 1.034 GB, free: 6.34 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002825/0.9976, allocations: 25.2 kB / 1.034 GB, free: 6.324 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006013/0.9983, allocations: 316.9 kB / 1.034 GB, free: 6.039 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003504/0.9986, allocations: 0.7582 MB / 1.035 GB, free: 5.262 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0001448/0.9988, allocations: 41.2 kB / 1.035 GB, free: 5.223 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001204/0.9989, allocations: 31.42 kB / 1.035 GB, free: 5.191 MB / 0.6511 GB Notification: Performance of SimCode: time 3.21e-07/0.9989, allocations: 0 / 1.035 GB, free: 5.191 MB / 0.6511 GB Notification: Performance of Templates: time 0.008362/1.007, allocations: 4.761 MB / 1.04 GB, free: 456 kB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_OBC_CDL_Continuous_Sources_Validation_CalendarTimeMonthsPlus.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.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