Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.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_9_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_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.336/2.336, allocations: 387.4 MB / 394.9 MB, free: 13.38 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.001064/0.001064, allocations: 184.7 kB / 487.4 MB, free: 5.039 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.514/1.514, allocations: 221.5 MB / 0.7824 GB, free: 1.016 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009881/0.0009882, allocations: 99.84 kB / 0.9219 GB, free: 2.254 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.745e-05/1.749e-05, allocations: 8 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3122/0.3123, allocations: 142.4 MB / 1.206 GB, free: 43.95 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.017/1.329, allocations: 151.5 MB / 1.354 GB, free: 18.41 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002872/1.329, allocations: 72.69 kB / 1.354 GB, free: 18.41 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01592/1.345, allocations: 5.318 MB / 1.359 GB, free: 33.79 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.463e-06/1.345, allocations: 0 / 1.359 GB, free: 33.79 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.687e-05/1.345, allocations: 3.812 kB / 1.359 GB, free: 33.79 MB / 0.8386 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.0007444/1.346, allocations: 0.6481 MB / 1.36 GB, free: 33.18 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.92e-05/1.346, allocations: 7.844 kB / 1.36 GB, free: 33.18 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.934e-05/1.346, allocations: 36.77 kB / 1.36 GB, free: 33.17 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003167/1.347, allocations: 274.5 kB / 1.36 GB, free: 32.94 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.214e-05/1.347, allocations: 12.73 kB / 1.36 GB, free: 32.94 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.457e-05/1.347, allocations: 17.25 kB / 1.36 GB, free: 32.94 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001565/1.347, allocations: 57.67 kB / 1.36 GB, free: 32.94 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002492/1.347, allocations: 173.2 kB / 1.36 GB, free: 32.9 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.546e-06/1.347, allocations: 0 / 1.36 GB, free: 32.9 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.838e-05/1.347, allocations: 5.344 kB / 1.36 GB, free: 32.89 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.952e-06/1.347, allocations: 7.688 kB / 1.36 GB, free: 32.89 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009868/1.348, allocations: 0.5593 MB / 1.361 GB, free: 32.65 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001633/1.348, allocations: 114.2 kB / 1.361 GB, free: 32.61 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.201e-05/1.349, allocations: 60.55 kB / 1.361 GB, free: 32.61 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.703e-05/1.349, allocations: 3.844 kB / 1.361 GB, free: 32.61 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002213/1.349, allocations: 160.6 kB / 1.361 GB, free: 32.55 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=16): time 1.463e-06/1.349, allocations: 3.875 kB / 1.361 GB, free: 32.55 MB / 0.8386 GB Notification: Performance of matching and sorting (n=16): time 0.0004364/1.349, allocations: 249.5 kB / 1.361 GB, free: 32.51 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.137e-05/1.349, allocations: 64.36 kB / 1.362 GB, free: 32.44 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002323/1.35, allocations: 276 kB / 1.362 GB, free: 32.34 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 4.071e-05/1.35, allocations: 32.98 kB / 1.362 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 9.09e-05/1.35, allocations: 99.91 kB / 1.362 GB, free: 32.21 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.972e-05/1.35, allocations: 34.22 kB / 1.362 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.172e-05/1.35, allocations: 7.812 kB / 1.362 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001299/1.35, allocations: 321.5 kB / 1.362 GB, free: 31.88 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001613/1.35, allocations: 96.62 kB / 1.362 GB, free: 31.88 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001756/1.35, allocations: 143.1 kB / 1.363 GB, free: 31.82 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001332/1.35, allocations: 83.92 kB / 1.363 GB, free: 31.82 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.165e-06/1.35, allocations: 0 / 1.363 GB, free: 31.82 MB / 0.8386 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005091/1.351, allocations: 320.6 kB / 1.363 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 8.006e-05/1.351, allocations: 75.98 kB / 1.363 GB, free: 31.71 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.918e-06/1.351, allocations: 7.828 kB / 1.363 GB, free: 31.7 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.958e-05/1.351, allocations: 0 / 1.363 GB, free: 31.7 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001496/1.351, allocations: 25.84 kB / 1.363 GB, free: 31.7 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.247e-06/1.351, allocations: 7.219 kB / 1.363 GB, free: 31.7 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003089/1.351, allocations: 41.91 kB / 1.363 GB, free: 31.69 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.516e-05/1.352, allocations: 41.28 kB / 1.363 GB, free: 31.69 MB / 0.8386 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.calTim.firstDaySampling,calTim.calTim.firstDaySampling,$PRE.calTim.calTim.firstHourSampling,calTim.calTim.firstHourSampling,$whenCondition1,calTim.calTim.hourSampleTrigger,$whenCondition2,calTim.calTim.daySampleTrigger,$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 (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.0001391/1.352, allocations: 130.4 kB / 1.363 GB, free: 31.57 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.724e-05/1.352, allocations: 27.25 kB / 1.363 GB, free: 31.56 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.492e-05/1.352, allocations: 23.14 kB / 1.363 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.518e-06/1.352, allocations: 7.797 kB / 1.363 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.193e-06/1.352, allocations: 7.172 kB / 1.363 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/1.352, allocations: 4 kB / 1.363 GB, free: 31.54 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006966/1.353, allocations: 0.5963 MB / 1.364 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.316e-06/1.353, allocations: 7.844 kB / 1.364 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.383e-05/1.353, allocations: 7.172 kB / 1.364 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.946e-06/1.353, allocations: 3.953 kB / 1.364 GB, free: 31.26 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.289e-05/1.353, allocations: 16.8 kB / 1.364 GB, free: 31.26 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.323e-06/1.353, allocations: 0 / 1.364 GB, free: 31.26 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/1.353, allocations: 0 / 1.364 GB, free: 31.26 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003806/1.353, allocations: 351.2 kB / 1.364 GB, free: 31.11 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001814/1.353, allocations: 192.3 kB / 1.364 GB, free: 31 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.817e-05/1.353, allocations: 19.08 kB / 1.364 GB, free: 30.99 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003941/1.354, allocations: 34.91 kB / 1.364 GB, free: 30.99 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.957e-05/1.354, allocations: 6.688 kB / 1.364 GB, free: 30.99 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.553e-05/1.354, allocations: 43.03 kB / 1.365 GB, free: 30.99 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001693/1.354, allocations: 219.8 kB / 1.365 GB, free: 30.91 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.61e-07/1.354, allocations: 0 / 1.365 GB, free: 30.91 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003115/1.354, allocations: 55.73 kB / 1.365 GB, free: 30.9 MB / 0.8386 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.calTim.daySampleTrigger,calTim.calTim.hourSampleTrigger,$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.firstDaySampling,calTim.calTim.daysSinceEpoch,calTim.calTim.weekDay,calTim.calTim.yearIndex,calTim.calTim.year,calTim.calTim.epochLastMonth,calTim.calTim.month,calTim.calTim.firstHourSampling,calTim.calTim.hour) * 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.0001954/1.355, allocations: 123.7 kB / 1.365 GB, free: 30.8 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0004331/1.355, allocations: 348.2 kB / 1.365 GB, free: 30.67 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.524e-06/1.355, allocations: 0 / 1.365 GB, free: 30.67 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 8.977e-05/1.355, allocations: 61.83 kB / 1.365 GB, free: 30.67 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002838/1.355, allocations: 33.8 kB / 1.365 GB, free: 30.66 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005239/1.356, allocations: 307 kB / 1.366 GB, free: 30.54 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003925/1.356, allocations: 0.7626 MB / 1.366 GB, free: 29.84 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 6.776e-05/1.356, allocations: 15.67 kB / 1.366 GB, free: 29.83 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.402e-05/1.356, allocations: 18.34 kB / 1.366 GB, free: 29.82 MB / 0.8386 GB Notification: Performance of SimCode: time 2.4e-07/1.356, allocations: 0 / 1.366 GB, free: 29.82 MB / 0.8386 GB Notification: Performance of Templates: time 0.006441/1.363, allocations: 4.143 MB / 1.37 GB, free: 29.36 MB / 0.8386 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Sources_Validation_CalendarTimeMonthsMinus.csv","../files/Buildings_9_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