Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.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.CalendarTimeMonthsPlus,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.CalendarTimeMonthsPlus") translateModel(Buildings.Controls.OBC.CDL.Reals.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_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00106/0.00106, allocations: 92.16 kB / 16.02 MB, free: 80 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.001445/0.001446, allocations: 172.9 kB / 16.92 MB, free: 6.652 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.43/1.43, allocations: 223.3 MB / 241 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.756/2.756, allocations: 462.6 MB / 0.7371 GB, free: 15.57 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003735/0.0003736, allocations: 15.88 kB / 0.9035 GB, free: 36.43 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3169/0.3173, allocations: 159.6 MB / 1.059 GB, free: 4.957 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus): time 0.002215/0.3196, allocations: 1.45 MB / 1.061 GB, free: 3.496 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001528/0.3211, allocations: 0.6832 MB / 1.061 GB, free: 2.812 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.166e-05/0.3212, allocations: 0 / 1.061 GB, free: 2.812 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001052/0.3214, allocations: 11.92 kB / 1.061 GB, free: 2.801 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001492/0.3215, allocations: 27.84 kB / 1.061 GB, free: 2.773 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009086/0.3224, allocations: 339.5 kB / 1.062 GB, free: 2.441 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0005925/0.323, allocations: 0.5266 MB / 1.062 GB, free: 1.914 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001349/0.3232, allocations: 29.11 kB / 1.062 GB, free: 1.887 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005426/0.3237, allocations: 318.9 kB / 1.063 GB, free: 1.574 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003385/0.3241, allocations: 175 kB / 1.063 GB, free: 1.402 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 8.96e-05/0.3242, allocations: 16 kB / 1.063 GB, free: 1.387 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 6.627e-05/0.3242, allocations: 12 kB / 1.063 GB, free: 1.375 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001455/0.3244, allocations: 115.7 kB / 1.063 GB, free: 1.262 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0002705/0.3247, allocations: 220.5 kB / 1.063 GB, free: 1.039 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0004682/0.3251, allocations: 479.1 kB / 1.064 GB, free: 0.5703 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.3252, allocations: 0 / 1.064 GB, free: 0.5703 MB / 0.8106 GB Notification: Performance of FrontEnd: time 5.21e-06/0.3252, allocations: 4 kB / 1.064 GB, free: 0.5664 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.516e-05/0.3252, allocations: 0 / 1.064 GB, free: 0.5664 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.001342/0.3265, allocations: 0.777 MB / 1.064 GB, free: 15.7 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.079e-05/0.3266, allocations: 11.97 kB / 1.064 GB, free: 15.69 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001914/0.3268, allocations: 56.38 kB / 1.064 GB, free: 15.63 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004629/0.3273, allocations: 330.2 kB / 1.065 GB, free: 15.27 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.173e-05/0.3273, allocations: 24.55 kB / 1.065 GB, free: 15.25 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.875e-05/0.3275, allocations: 28.36 kB / 1.065 GB, free: 15.22 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001108/0.3286, allocations: 247.4 kB / 1.065 GB, free: 14.97 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.118e-05/0.3286, allocations: 3.938 kB / 1.065 GB, free: 14.97 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.273e-05/0.3286, allocations: 4 kB / 1.065 GB, free: 14.96 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.891e-06/0.3286, allocations: 0 / 1.065 GB, free: 14.96 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008387/0.3295, allocations: 127.9 kB / 1.065 GB, free: 14.84 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001444/0.3309, allocations: 0.699 MB / 1.066 GB, free: 14.09 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001128/0.3321, allocations: 198.5 kB / 1.066 GB, free: 13.89 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000808/0.3329, allocations: 132.8 kB / 1.066 GB, free: 13.75 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.544e-05/0.3329, allocations: 0 / 1.066 GB, free: 13.75 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00101/0.3339, allocations: 245.5 kB / 1.066 GB, free: 13.5 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=16): time 1.894e-06/0.334, allocations: 0 / 1.066 GB, free: 13.5 MB / 0.8262 GB Notification: Performance of matching and sorting (n=16): time 0.002723/0.3367, allocations: 0.5126 MB / 1.067 GB, free: 12.98 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.44e-05/0.3368, allocations: 67.39 kB / 1.067 GB, free: 12.91 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005463/0.3373, allocations: 441.8 kB / 1.067 GB, free: 12.46 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 8.627e-05/0.3374, allocations: 37.7 kB / 1.067 GB, free: 12.42 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001122/0.3375, allocations: 105.3 kB / 1.068 GB, free: 12.32 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.916e-05/0.3376, allocations: 43.48 kB / 1.068 GB, free: 12.27 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.505e-05/0.3377, allocations: 41.69 kB / 1.068 GB, free: 12.23 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001358/0.3378, allocations: 326.8 kB / 1.068 GB, free: 11.9 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003025/0.3381, allocations: 143.9 kB / 1.068 GB, free: 11.76 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003249/0.3385, allocations: 193.9 kB / 1.068 GB, free: 11.55 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004264/0.3389, allocations: 294.7 kB / 1.069 GB, free: 11.23 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.3389, allocations: 0 / 1.069 GB, free: 11.23 MB / 0.8262 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009129/0.3398, allocations: 0.5213 MB / 1.069 GB, free: 10.69 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 9.933e-05/0.3399, allocations: 95.38 kB / 1.069 GB, free: 10.58 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.085e-06/0.34, allocations: 192 / 1.069 GB, free: 10.58 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.699e-05/0.34, allocations: 8 kB / 1.069 GB, free: 10.57 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000175/0.3402, allocations: 23.92 kB / 1.069 GB, free: 10.55 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.153e-05/0.3402, allocations: 7.984 kB / 1.069 GB, free: 10.54 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005456/0.3407, allocations: 67.8 kB / 1.069 GB, free: 10.48 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.8e-05/0.3408, 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.0002789/0.3411, allocations: 212.3 kB / 1.069 GB, free: 10.2 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.656e-05/0.3412, allocations: 39.52 kB / 1.07 GB, free: 10.16 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.368e-05/0.3413, allocations: 43.8 kB / 1.07 GB, free: 10.11 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.457e-06/0.3413, allocations: 0 / 1.07 GB, free: 10.11 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/0.3413, allocations: 0 / 1.07 GB, free: 10.11 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.83e-06/0.3413, allocations: 3.984 kB / 1.07 GB, free: 10.11 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00232/0.3436, allocations: 0.8206 MB / 1.07 GB, free: 9.23 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.3436, allocations: 0 / 1.07 GB, free: 9.23 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.837e-05/0.3437, allocations: 7.984 kB / 1.07 GB, free: 9.223 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.16e-06/0.3437, allocations: 4 kB / 1.07 GB, free: 9.219 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.44e-05/0.3437, allocations: 15.92 kB / 1.07 GB, free: 9.203 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.395e-06/0.3437, allocations: 4 kB / 1.07 GB, free: 9.199 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.3437, allocations: 0 / 1.07 GB, free: 9.199 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001912/0.3457, allocations: 0.4949 MB / 1.071 GB, free: 8.688 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002966/0.346, allocations: 244.4 kB / 1.071 GB, free: 8.43 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.397e-05/0.3461, allocations: 27.88 kB / 1.071 GB, free: 8.402 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005114/0.3466, allocations: 39.95 kB / 1.071 GB, free: 8.363 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.857e-05/0.3466, allocations: 11.94 kB / 1.071 GB, free: 8.352 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.045e-05/0.3467, allocations: 59.97 kB / 1.071 GB, free: 8.293 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0003595/0.3471, allocations: 315.1 kB / 1.072 GB, free: 7.992 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.9e-07/0.3471, allocations: 0 / 1.072 GB, free: 7.992 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0004227/0.3475, allocations: 71.98 kB / 1.072 GB, free: 7.922 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.0002225/0.3477, allocations: 123.7 kB / 1.072 GB, free: 7.789 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.00148/0.3492, allocations: 490.4 kB / 1.072 GB, free: 7.285 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.3492, allocations: 0 / 1.072 GB, free: 7.285 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.000829/0.3501, allocations: 143.1 kB / 1.072 GB, free: 7.148 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004284/0.3505, allocations: 34.66 kB / 1.072 GB, free: 7.113 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001756/0.3523, allocations: 0.7852 MB / 1.073 GB, free: 6.301 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003918/0.3527, allocations: 0.7866 MB / 1.074 GB, free: 5.488 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.53e-05/0.3527, allocations: 23.42 kB / 1.074 GB, free: 5.465 MB / 0.8262 GB Notification: Performance of SimCode: time 2.51e-07/0.3528, allocations: 0 / 1.074 GB, free: 5.465 MB / 0.8262 GB Notification: Performance of Templates: time 0.006845/0.3596, allocations: 4.076 MB / 1.078 GB, free: 1.34 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Sources_Validation_CalendarTimeMonthsPlus.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.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.day,calTim.hour,calTim.minute,calTim.month,calTim.weekDay,calTim.year,time