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.CalendarTimeMonths.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.CalendarTimeMonths,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.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_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.425/1.425, allocations: 249.3 MB / 261.8 MB, free: 5.977 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.0009952/0.0009953, allocations: 176.9 kB / 321.3 MB, free: 14.66 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.552/1.552, allocations: 205.2 MB / 0.572 GB, free: 10.68 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.0009436/0.0009432, allocations: 78.55 kB / 0.6764 GB, free: 15.66 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.958e-05/3.96e-05, allocations: 4 kB / 0.788 GB, free: 97.07 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1959/0.1959, allocations: 106.3 MB / 0.8918 GB, free: 6.633 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7044/0.9003, allocations: 133.8 MB / 1.022 GB, free: 0.918 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001959/0.9006, allocations: 73.39 kB / 1.023 GB, free: 0.8789 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.01467/0.9152, allocations: 5.191 MB / 1.028 GB, free: 12.43 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.453e-06/0.9153, allocations: 7.938 kB / 1.028 GB, free: 12.42 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 1.563e-05/0.9153, allocations: 4 kB / 1.028 GB, free: 12.42 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.0009339/0.9163, allocations: 0.6029 MB / 1.028 GB, free: 11.77 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.703e-05/0.9163, allocations: 12.03 kB / 1.028 GB, free: 11.75 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.967e-05/0.9164, allocations: 27.72 kB / 1.028 GB, free: 11.73 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004178/0.9169, allocations: 271.8 kB / 1.029 GB, free: 11.45 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.485e-05/0.9169, allocations: 19.36 kB / 1.029 GB, free: 11.43 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.179e-05/0.917, allocations: 19.5 kB / 1.029 GB, free: 11.41 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003215/0.9173, allocations: 163 kB / 1.029 GB, free: 11.28 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.456e-06/0.9173, allocations: 0 / 1.029 GB, free: 11.28 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.319e-05/0.9174, allocations: 11.81 kB / 1.029 GB, free: 11.27 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.702e-06/0.9174, allocations: 4 kB / 1.029 GB, free: 11.27 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001325/0.9175, allocations: 61.55 kB / 1.029 GB, free: 11.23 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001144/0.9187, allocations: 0.5869 MB / 1.029 GB, free: 10.71 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002565/0.9189, allocations: 137.7 kB / 1.029 GB, free: 10.6 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001093/0.9191, allocations: 58.22 kB / 1.03 GB, free: 10.56 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 2.947e-05/0.9191, allocations: 7.188 kB / 1.03 GB, free: 10.55 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004185/0.9195, allocations: 224.2 kB / 1.03 GB, free: 10.35 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=18): time 1.483e-06/0.9195, allocations: 0 / 1.03 GB, free: 10.35 MB / 0.6511 GB Notification: Performance of matching and sorting (n=18): time 0.0004651/0.92, allocations: 229.6 kB / 1.03 GB, free: 10.16 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.674e-05/0.9201, allocations: 62.03 kB / 1.03 GB, free: 10.09 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002782/0.9203, allocations: 282.1 kB / 1.03 GB, free: 9.859 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 5.353e-05/0.9204, allocations: 40.52 kB / 1.03 GB, free: 9.82 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 8.727e-05/0.9205, allocations: 112.5 kB / 1.03 GB, free: 9.711 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 4.825e-05/0.9206, allocations: 45.39 kB / 1.03 GB, free: 9.676 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.191e-05/0.9206, allocations: 7.438 kB / 1.03 GB, free: 9.672 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001217/0.9207, allocations: 326.2 kB / 1.031 GB, free: 9.348 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002323/0.921, allocations: 120.1 kB / 1.031 GB, free: 9.27 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002632/0.9212, allocations: 160 kB / 1.031 GB, free: 9.137 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002347/0.9215, allocations: 165.7 kB / 1.031 GB, free: 8.996 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.9215, allocations: 0 / 1.031 GB, free: 8.996 MB / 0.6511 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007004/0.9222, allocations: 441.4 kB / 1.032 GB, free: 8.637 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 6.925e-05/0.9223, allocations: 81.98 kB / 1.032 GB, free: 8.555 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.341e-06/0.9223, allocations: 0 / 1.032 GB, free: 8.555 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.606e-05/0.9223, allocations: 4 kB / 1.032 GB, free: 8.551 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001609/0.9225, allocations: 27.91 kB / 1.032 GB, free: 8.523 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.294e-05/0.9226, allocations: 4 kB / 1.032 GB, free: 8.52 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003882/0.923, allocations: 55.75 kB / 1.032 GB, free: 8.469 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.436e-05/0.9231, allocations: 55.92 kB / 1.032 GB, free: 8.418 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.0001345/0.9232, allocations: 143.4 kB / 1.032 GB, free: 8.281 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.109e-05/0.9233, allocations: 27.62 kB / 1.032 GB, free: 8.254 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.659e-05/0.9233, allocations: 28.77 kB / 1.032 GB, free: 8.234 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.953e-06/0.9233, allocations: 4 kB / 1.032 GB, free: 8.23 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.469e-06/0.9233, allocations: 0 / 1.032 GB, free: 8.23 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.438e-06/0.9234, allocations: 0 / 1.032 GB, free: 8.23 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007332/0.9241, allocations: 0.606 MB / 1.033 GB, free: 7.66 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.9241, allocations: 0 / 1.033 GB, free: 7.66 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.215e-05/0.9242, allocations: 8 kB / 1.033 GB, free: 7.652 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.346e-06/0.9242, allocations: 0 / 1.033 GB, free: 7.652 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.045e-05/0.9242, allocations: 7.984 kB / 1.033 GB, free: 7.645 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.735e-06/0.9242, allocations: 5.328 kB / 1.033 GB, free: 7.641 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.9242, allocations: 0 / 1.033 GB, free: 7.641 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000397/0.9246, allocations: 326.5 kB / 1.033 GB, free: 7.344 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001928/0.9248, allocations: 192.4 kB / 1.033 GB, free: 7.168 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.699e-05/0.9249, allocations: 10.75 kB / 1.033 GB, free: 7.164 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001759/0.9251, allocations: 19.17 kB / 1.033 GB, free: 7.148 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.21e-05/0.9251, allocations: 15.97 kB / 1.033 GB, free: 7.133 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.302e-05/0.9252, allocations: 30.86 kB / 1.033 GB, free: 7.105 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0002192/0.9254, allocations: 233.3 kB / 1.033 GB, free: 6.918 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.31e-07/0.9254, allocations: 0 / 1.033 GB, free: 6.918 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0003162/0.9258, allocations: 51.31 kB / 1.034 GB, free: 6.871 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.0002031/0.926, allocations: 133.4 kB / 1.034 GB, free: 6.746 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0005591/0.9265, allocations: 369.8 kB / 1.034 GB, free: 6.445 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.9265, allocations: 0 / 1.034 GB, free: 6.445 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.000132/0.9267, allocations: 81.25 kB / 1.034 GB, free: 6.383 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002712/0.927, allocations: 27.98 kB / 1.034 GB, free: 6.367 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005572/0.9275, allocations: 306.5 kB / 1.034 GB, free: 6.09 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003117/0.9279, allocations: 0.7627 MB / 1.035 GB, free: 5.309 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.000147/0.928, allocations: 41.19 kB / 1.035 GB, free: 5.27 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000119/0.9281, allocations: 38.86 kB / 1.035 GB, free: 5.234 MB / 0.6511 GB Notification: Performance of SimCode: time 4.21e-07/0.9281, allocations: 0 / 1.035 GB, free: 5.234 MB / 0.6511 GB Notification: Performance of Templates: time 0.008297/0.9364, allocations: 4.766 MB / 1.04 GB, free: 496 kB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_OBC_CDL_Continuous_Sources_Validation_CalendarTimeMonths.csv","../files/Buildings_maint.7.0.x_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