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.CalendarTimeMonthsMinus.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.CalendarTimeMonthsMinus,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.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_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.48/1.48, allocations: 249.3 MB / 261.8 MB, free: 5.82 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.001019/0.001019, allocations: 176.9 kB / 321.3 MB, free: 14.64 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.496/1.496, 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.0009175/0.0009175, allocations: 87.23 kB / 0.6764 GB, free: 15.65 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 4.284e-05/4.286e-05, allocations: 4 kB / 0.788 GB, free: 97.06 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2066/0.2067, allocations: 106.3 MB / 0.8918 GB, free: 6.625 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6921/0.8988, allocations: 133.8 MB / 1.023 GB, free: 0.9062 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003146/0.8992, allocations: 76 kB / 1.023 GB, free: 0.8633 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.01459/0.9138, allocations: 5.21 MB / 1.028 GB, free: 12.4 MB / 0.6511 GB Notification: Performance of FrontEnd: time 8.51e-07/0.9139, allocations: 0 / 1.028 GB, free: 12.4 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 1.588e-05/0.9139, allocations: 4 kB / 1.028 GB, free: 12.4 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.0008791/0.9148, allocations: 0.6095 MB / 1.028 GB, free: 11.74 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.008e-05/0.9148, allocations: 8.031 kB / 1.028 GB, free: 11.73 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.607e-05/0.9149, allocations: 31.72 kB / 1.028 GB, free: 11.7 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003605/0.9153, allocations: 275.7 kB / 1.029 GB, free: 11.42 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.726e-05/0.9153, allocations: 19.17 kB / 1.029 GB, free: 11.4 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.555e-05/0.9154, allocations: 19.94 kB / 1.029 GB, free: 11.39 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002868/0.9157, allocations: 157.2 kB / 1.029 GB, free: 11.26 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.095e-06/0.9157, allocations: 0 / 1.029 GB, free: 11.26 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.835e-05/0.9158, allocations: 7.953 kB / 1.029 GB, free: 11.25 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.539e-06/0.9158, allocations: 0 / 1.029 GB, free: 11.25 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000126/0.9159, allocations: 58.36 kB / 1.029 GB, free: 11.21 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001137/0.9171, allocations: 0.5948 MB / 1.029 GB, free: 10.69 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002675/0.9173, allocations: 136.7 kB / 1.03 GB, free: 10.58 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001214/0.9175, allocations: 66.22 kB / 1.03 GB, free: 10.53 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 2.951e-05/0.9175, allocations: 0 / 1.03 GB, free: 10.53 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004433/0.918, allocations: 222.2 kB / 1.03 GB, free: 10.33 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=18): time 1.382e-06/0.918, allocations: 4 kB / 1.03 GB, free: 10.33 MB / 0.6511 GB Notification: Performance of matching and sorting (n=18): time 0.0004688/0.9185, allocations: 232.9 kB / 1.03 GB, free: 10.13 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.875e-05/0.9185, allocations: 58.53 kB / 1.03 GB, free: 10.06 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002887/0.9188, allocations: 287.6 kB / 1.03 GB, free: 9.832 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 5.486e-05/0.9189, allocations: 36.33 kB / 1.03 GB, free: 9.797 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 9.126e-05/0.919, allocations: 105 kB / 1.031 GB, free: 9.695 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 4.943e-05/0.919, allocations: 50.56 kB / 1.031 GB, free: 9.652 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.374e-05/0.9191, allocations: 7.938 kB / 1.031 GB, free: 9.648 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001269/0.9192, allocations: 334.5 kB / 1.031 GB, free: 9.32 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002685/0.9195, allocations: 107.1 kB / 1.031 GB, free: 9.25 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002683/0.9198, allocations: 165.3 kB / 1.031 GB, free: 9.113 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002558/0.92, allocations: 170.5 kB / 1.031 GB, free: 8.969 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.92, allocations: 0 / 1.031 GB, free: 8.969 MB / 0.6511 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007411/0.9208, allocations: 437.7 kB / 1.032 GB, free: 8.613 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 7.978e-05/0.9209, allocations: 76.23 kB / 1.032 GB, free: 8.535 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.029e-05/0.9209, allocations: 4 kB / 1.032 GB, free: 8.531 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.821e-05/0.9209, allocations: 4 kB / 1.032 GB, free: 8.527 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001736/0.9211, allocations: 34.83 kB / 1.032 GB, free: 8.496 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.088e-05/0.9211, allocations: 5.328 kB / 1.032 GB, free: 8.492 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003784/0.9215, allocations: 50.56 kB / 1.032 GB, free: 8.445 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.758e-05/0.9216, allocations: 51.11 kB / 1.032 GB, free: 8.398 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.0001367/0.9217, allocations: 136.9 kB / 1.032 GB, free: 8.27 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.736e-05/0.9218, allocations: 35.61 kB / 1.032 GB, free: 8.234 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.175e-05/0.9219, allocations: 32.89 kB / 1.032 GB, free: 8.211 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.065e-06/0.9219, allocations: 0 / 1.032 GB, free: 8.211 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.9219, allocations: 0 / 1.032 GB, free: 8.211 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/0.9219, allocations: 0 / 1.032 GB, free: 8.211 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007499/0.9227, allocations: 0.5924 MB / 1.033 GB, free: 7.652 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.9227, allocations: 0 / 1.033 GB, free: 7.652 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.448e-05/0.9227, allocations: 11.98 kB / 1.033 GB, free: 7.641 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.465e-06/0.9227, allocations: 0 / 1.033 GB, free: 7.641 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.742e-05/0.9228, allocations: 15.98 kB / 1.033 GB, free: 7.625 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.9228, allocations: 0 / 1.033 GB, free: 7.625 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.9228, allocations: 0 / 1.033 GB, free: 7.625 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003765/0.9232, allocations: 328.1 kB / 1.033 GB, free: 7.328 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001911/0.9234, allocations: 190 kB / 1.033 GB, free: 7.156 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.379e-05/0.9234, allocations: 10.81 kB / 1.033 GB, free: 7.152 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001699/0.9236, allocations: 15.92 kB / 1.033 GB, free: 7.137 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.408e-05/0.9237, allocations: 23.41 kB / 1.033 GB, free: 7.117 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.224e-05/0.9237, allocations: 31.92 kB / 1.033 GB, free: 7.086 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.000201/0.9239, allocations: 230.7 kB / 1.034 GB, free: 6.902 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.6e-07/0.9239, allocations: 0 / 1.034 GB, free: 6.902 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0003123/0.9243, allocations: 55.55 kB / 1.034 GB, free: 6.852 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.0002139/0.9245, allocations: 129.5 kB / 1.034 GB, free: 6.727 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0005819/0.9251, allocations: 374.1 kB / 1.034 GB, free: 6.426 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.9251, allocations: 0 / 1.034 GB, free: 6.426 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0001355/0.9252, allocations: 82.34 kB / 1.034 GB, free: 6.363 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002884/0.9255, allocations: 27.06 kB / 1.034 GB, free: 6.344 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006048/0.9261, allocations: 312 kB / 1.034 GB, free: 6.062 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003362/0.9265, allocations: 0.758 MB / 1.035 GB, free: 5.285 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.000144/0.9266, allocations: 41.2 kB / 1.035 GB, free: 5.246 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001198/0.9268, allocations: 34.86 kB / 1.035 GB, free: 5.215 MB / 0.6511 GB Notification: Performance of SimCode: time 5.01e-07/0.9268, allocations: 0 / 1.035 GB, free: 5.215 MB / 0.6511 GB Notification: Performance of Templates: time 0.007817/0.9346, allocations: 4.762 MB / 1.04 GB, free: 476 kB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_OBC_CDL_Continuous_Sources_Validation_CalendarTimeMonthsMinus.csv","../files/Buildings_maint.7.0.x_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