Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Reals.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_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus") translateModel(Buildings.Controls.OBC.CDL.Reals.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_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008319/0.000832, allocations: 97.78 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001132/0.001132, allocations: 187.3 kB / 16.92 MB, free: 6.75 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.46/1.46, allocations: 223.3 MB / 241 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.679/2.679, allocations: 462.7 MB / 0.7371 GB, free: 15.59 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003577/0.0003578, allocations: 14.66 kB / 0.9035 GB, free: 36.45 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3267/0.327, allocations: 159.6 MB / 1.059 GB, free: 4.949 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus): time 0.001979/0.329, allocations: 1.45 MB / 1.061 GB, free: 3.488 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001458/0.3305, allocations: 0.6811 MB / 1.061 GB, free: 2.809 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.52e-05/0.3306, allocations: 0 / 1.061 GB, free: 2.809 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 9.43e-05/0.3307, allocations: 7.922 kB / 1.061 GB, free: 2.801 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001406/0.3309, allocations: 31.84 kB / 1.061 GB, free: 2.77 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.000863/0.3318, allocations: 338.2 kB / 1.062 GB, free: 2.441 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0005678/0.3323, allocations: 0.5305 MB / 1.062 GB, free: 1.91 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000118/0.3325, allocations: 37.09 kB / 1.062 GB, free: 1.875 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005686/0.333, allocations: 318.9 kB / 1.063 GB, free: 1.562 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003556/0.3334, allocations: 171 kB / 1.063 GB, free: 1.395 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 9.981e-05/0.3335, allocations: 20 kB / 1.063 GB, free: 1.375 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 7.143e-05/0.3336, allocations: 12 kB / 1.063 GB, free: 1.363 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.000137/0.3337, allocations: 111.7 kB / 1.063 GB, free: 1.254 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0002416/0.334, allocations: 228.4 kB / 1.063 GB, free: 1.023 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0004367/0.3344, allocations: 475.2 kB / 1.064 GB, free: 0.5586 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.3345, allocations: 0 / 1.064 GB, free: 0.5586 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.633e-06/0.3345, allocations: 0 / 1.064 GB, free: 0.5586 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.28e-05/0.3345, allocations: 0 / 1.064 GB, free: 0.5586 MB / 0.8106 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.001211/0.3357, allocations: 0.777 MB / 1.064 GB, free: 15.69 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.391e-05/0.3357, allocations: 15.97 kB / 1.064 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001649/0.3359, allocations: 60.31 kB / 1.064 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004019/0.3363, allocations: 322.3 kB / 1.065 GB, free: 15.26 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.354e-05/0.3364, allocations: 24.48 kB / 1.065 GB, free: 15.24 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.979e-05/0.3365, allocations: 32.36 kB / 1.065 GB, free: 15.21 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001068/0.3376, allocations: 247.2 kB / 1.065 GB, free: 14.96 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.578e-06/0.3376, allocations: 3.938 kB / 1.065 GB, free: 14.96 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.622e-05/0.3377, allocations: 4 kB / 1.065 GB, free: 14.95 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.41e-06/0.3377, allocations: 0 / 1.065 GB, free: 14.95 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008526/0.3385, allocations: 127.9 kB / 1.065 GB, free: 14.83 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001329/0.3399, allocations: 0.6913 MB / 1.066 GB, free: 14.09 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001089/0.341, allocations: 202.5 kB / 1.066 GB, free: 13.88 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007627/0.3417, allocations: 124.8 kB / 1.066 GB, free: 13.75 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.479e-05/0.3418, allocations: 7.984 kB / 1.066 GB, free: 13.75 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009824/0.3428, allocations: 239.1 kB / 1.066 GB, free: 13.5 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=16): time 2.144e-06/0.3428, allocations: 4 kB / 1.066 GB, free: 13.5 MB / 0.8262 GB Notification: Performance of matching and sorting (n=16): time 0.002635/0.3454, allocations: 0.5108 MB / 1.067 GB, free: 12.98 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.04e-05/0.3455, allocations: 71.39 kB / 1.067 GB, free: 12.9 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004976/0.346, allocations: 445.8 kB / 1.067 GB, free: 12.45 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 8.027e-05/0.3461, allocations: 37.7 kB / 1.067 GB, free: 12.41 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001067/0.3462, allocations: 101.3 kB / 1.068 GB, free: 12.31 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.724e-05/0.3463, allocations: 43.48 kB / 1.068 GB, free: 12.27 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.636e-05/0.3464, allocations: 37.69 kB / 1.068 GB, free: 12.22 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001127/0.3465, allocations: 334.7 kB / 1.068 GB, free: 11.89 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002947/0.3468, allocations: 135.9 kB / 1.068 GB, free: 11.75 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003127/0.3471, allocations: 197.9 kB / 1.068 GB, free: 11.54 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004091/0.3475, allocations: 294.7 kB / 1.069 GB, free: 11.22 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.159e-06/0.3475, allocations: 0 / 1.069 GB, free: 11.22 MB / 0.8262 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008873/0.3484, allocations: 0.522 MB / 1.069 GB, free: 10.68 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 8.62e-05/0.3485, allocations: 95.38 kB / 1.069 GB, free: 10.57 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.258e-06/0.3485, allocations: 0 / 1.069 GB, free: 10.57 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.832e-05/0.3486, allocations: 4.188 kB / 1.069 GB, free: 10.57 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001684/0.3487, allocations: 27.92 kB / 1.069 GB, free: 10.54 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.438e-05/0.3488, allocations: 7.984 kB / 1.069 GB, free: 10.54 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005439/0.3493, allocations: 63.8 kB / 1.069 GB, free: 10.47 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.216e-05/0.3494, allocations: 63.92 kB / 1.069 GB, free: 10.41 MB / 0.8262 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 (calTim.calTim.firstDaySampling,$PRE.calTim.calTim.firstDaySampling,calTim.calTim.firstHourSampling,$PRE.calTim.calTim.firstHourSampling,calTim.calTim.hourSampleTrigger,$whenCondition1,calTim.calTim.daySampleTrigger,$whenCondition2,calTim.calTim.epochLastMonth,$PRE.calTim.calTim.epochLastMonth,calTim.calTim.yearIndex,$PRE.calTim.calTim.yearIndex,calTim.calTim.daysSinceEpoch,$PRE.calTim.calTim.daysSinceEpoch,calTim.calTim.weekDay,$PRE.calTim.calTim.weekDay,calTim.calTim.hour,$PRE.calTim.calTim.hour,calTim.calTim.day,$PRE.calTim.calTim.day,calTim.calTim.month,$PRE.calTim.calTim.month,calTim.calTim.year,$PRE.calTim.calTim.year) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000267/0.3497, allocations: 216.3 kB / 1.069 GB, free: 10.19 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.328e-05/0.3498, allocations: 39.52 kB / 1.07 GB, free: 10.15 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.659e-05/0.3498, allocations: 39.8 kB / 1.07 GB, free: 10.11 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.487e-06/0.3498, allocations: 4 kB / 1.07 GB, free: 10.1 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.3499, allocations: 0 / 1.07 GB, free: 10.1 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.047e-06/0.3499, allocations: 0 / 1.07 GB, free: 10.1 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002209/0.3521, allocations: 0.8182 MB / 1.07 GB, free: 9.227 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.3521, allocations: 0 / 1.07 GB, free: 9.227 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.758e-05/0.3521, allocations: 11.92 kB / 1.07 GB, free: 9.215 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.627e-06/0.3521, allocations: 0 / 1.07 GB, free: 9.215 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.588e-05/0.3522, allocations: 19.92 kB / 1.07 GB, free: 9.195 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.908e-06/0.3522, allocations: 4 kB / 1.07 GB, free: 9.191 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.3522, allocations: 4 kB / 1.07 GB, free: 9.188 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001791/0.354, allocations: 0.4978 MB / 1.071 GB, free: 8.676 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002929/0.3543, allocations: 248.3 kB / 1.071 GB, free: 8.414 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.974e-05/0.3544, allocations: 19.94 kB / 1.071 GB, free: 8.395 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004991/0.3549, allocations: 31.97 kB / 1.071 GB, free: 8.363 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.919e-05/0.355, allocations: 15.92 kB / 1.071 GB, free: 8.348 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.501e-05/0.355, allocations: 63.97 kB / 1.071 GB, free: 8.285 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0003309/0.3554, allocations: 319.1 kB / 1.072 GB, free: 7.98 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.91e-07/0.3554, allocations: 0 / 1.072 GB, free: 7.98 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0004668/0.3558, allocations: 67.98 kB / 1.072 GB, free: 7.914 MB / 0.8262 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) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001946/0.356, allocations: 123.7 kB / 1.072 GB, free: 7.781 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001405/0.3575, allocations: 490.4 kB / 1.072 GB, free: 7.277 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.317e-06/0.3575, allocations: 0 / 1.072 GB, free: 7.277 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0008336/0.3583, allocations: 140.3 kB / 1.072 GB, free: 7.141 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004374/0.3588, allocations: 35.36 kB / 1.072 GB, free: 7.105 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001682/0.3605, allocations: 0.7854 MB / 1.073 GB, free: 6.293 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003417/0.3608, allocations: 0.7866 MB / 1.074 GB, free: 5.48 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.048e-05/0.3609, allocations: 23.42 kB / 1.074 GB, free: 5.457 MB / 0.8262 GB Notification: Performance of SimCode: time 3.91e-07/0.3609, allocations: 0 / 1.074 GB, free: 5.457 MB / 0.8262 GB Notification: Performance of Templates: time 0.00688/0.3678, allocations: 4.063 MB / 1.078 GB, free: 1.34 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Sources_Validation_CalendarTimeMonthsMinus.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.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.day,calTim.hour,calTim.minute,calTim.month,calTim.weekDay,calTim.year,time