Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Time.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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.Utilities.Time.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.Utilities.Time.Validation.CalendarTimeMonthsMinus") translateModel(Buildings.Utilities.Time.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.Utilities.Time.Validation.CalendarTimeMonthsMinus") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009702/0.009702, allocations: 101.1 kB / 15.73 MB, free: 6.039 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001974/0.001974, allocations: 190.4 kB / 16.67 MB, free: 5.977 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.487/1.487, allocations: 222.9 MB / 240.4 MB, free: 4.188 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.454/2.454, allocations: 390.2 MB / 0.6648 GB, free: 176 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001271/0.001271, allocations: 66.16 kB / 0.9508 GB, free: 5.492 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2957/0.297, allocations: 140.4 MB / 1.088 GB, free: 1.531 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Validation.CalendarTimeMonthsMinus): time 0.002484/0.2995, allocations: 1.512 MB / 1.089 GB, free: 8 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001383/0.3009, allocations: 0.5476 MB / 1.09 GB, free: 15.46 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.351e-05/0.301, allocations: 0 / 1.09 GB, free: 15.46 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001155/0.3011, allocations: 11.86 kB / 1.09 GB, free: 15.45 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001293/0.3013, allocations: 27.86 kB / 1.09 GB, free: 15.42 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008246/0.3021, allocations: 320.2 kB / 1.09 GB, free: 15.11 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0005271/0.3027, allocations: 0.4917 MB / 1.091 GB, free: 14.62 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 5.867e-05/0.3027, allocations: 19.95 kB / 1.091 GB, free: 14.6 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003828/0.3031, allocations: 275.6 kB / 1.091 GB, free: 14.33 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000267/0.3034, allocations: 139.6 kB / 1.091 GB, free: 14.2 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 7.808e-05/0.3035, allocations: 28 kB / 1.091 GB, free: 14.17 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 7.063e-05/0.3035, allocations: 28 kB / 1.091 GB, free: 14.14 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001553/0.3037, allocations: 115.7 kB / 1.091 GB, free: 14.03 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001892/0.3039, allocations: 183 kB / 1.091 GB, free: 13.85 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0004394/0.3043, allocations: 426.6 kB / 1.092 GB, free: 13.43 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.3044, allocations: 0 / 1.092 GB, free: 13.43 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.262e-06/0.3044, allocations: 4 kB / 1.092 GB, free: 13.43 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.232e-06/0.3044, allocations: 0 / 1.092 GB, free: 13.43 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.001289/0.3057, allocations: 0.8664 MB / 1.093 GB, free: 12.47 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.571e-05/0.3057, allocations: 8.031 kB / 1.093 GB, free: 12.46 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001104/0.3058, allocations: 48.56 kB / 1.093 GB, free: 12.41 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003517/0.3062, allocations: 314.1 kB / 1.093 GB, free: 12.07 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.952e-05/0.3063, allocations: 20.36 kB / 1.093 GB, free: 12.05 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.786e-05/0.3063, allocations: 28.38 kB / 1.093 GB, free: 12.02 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001061/0.3074, allocations: 218 kB / 1.093 GB, free: 11.8 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.925e-05/0.3074, allocations: 192 / 1.093 GB, free: 11.8 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.918e-05/0.3075, allocations: 3.938 kB / 1.093 GB, free: 11.8 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.158e-06/0.3075, allocations: 0 / 1.093 GB, free: 11.8 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000715/0.3082, allocations: 103.9 kB / 1.093 GB, free: 11.7 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006213/0.3089, allocations: 389.2 kB / 1.094 GB, free: 11.27 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009244/0.3098, allocations: 174.5 kB / 1.094 GB, free: 11.09 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006706/0.3105, allocations: 112.8 kB / 1.094 GB, free: 10.97 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.282e-05/0.3105, allocations: 4 kB / 1.094 GB, free: 10.97 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008825/0.3114, allocations: 227 kB / 1.094 GB, free: 10.73 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=16): time 1.603e-06/0.3114, allocations: 0 / 1.094 GB, free: 10.73 MB / 0.8575 GB Notification: Performance of matching and sorting (n=16): time 0.002405/0.3138, allocations: 486.9 kB / 1.095 GB, free: 10.25 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.747e-05/0.3139, allocations: 71.33 kB / 1.095 GB, free: 10.17 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004636/0.3144, allocations: 401.9 kB / 1.095 GB, free: 9.773 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 7.093e-05/0.3144, allocations: 41.69 kB / 1.095 GB, free: 9.727 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 9.467e-05/0.3145, allocations: 93.45 kB / 1.095 GB, free: 9.633 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 5.375e-05/0.3146, allocations: 39.59 kB / 1.095 GB, free: 9.594 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002358/0.3148, allocations: 125.3 kB / 1.096 GB, free: 9.465 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0002028/0.3151, allocations: 326.8 kB / 1.096 GB, free: 9.137 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000296/0.3154, allocations: 115.9 kB / 1.096 GB, free: 9.023 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003063/0.3157, allocations: 170.9 kB / 1.096 GB, free: 8.836 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004523/0.3161, allocations: 280.6 kB / 1.096 GB, free: 8.531 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.3162, allocations: 0 / 1.096 GB, free: 8.531 MB / 0.8575 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009022/0.3171, allocations: 0.4888 MB / 1.097 GB, free: 8.023 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001057/0.3172, allocations: 91.5 kB / 1.097 GB, free: 7.922 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.566e-06/0.3172, allocations: 7.938 kB / 1.097 GB, free: 7.914 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.351e-05/0.3172, allocations: 4 kB / 1.097 GB, free: 7.91 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001826/0.3174, allocations: 15.98 kB / 1.097 GB, free: 7.895 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.189e-05/0.3174, allocations: 7.938 kB / 1.097 GB, free: 7.887 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004465/0.3179, allocations: 59.8 kB / 1.097 GB, free: 7.828 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.949e-05/0.318, allocations: 63.97 kB / 1.097 GB, free: 7.766 MB / 0.8575 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.firstHourSampling,$PRE.calTim.firstHourSampling,calTim.firstDaySampling,$PRE.calTim.firstDaySampling,calTim.daySampleTrigger,$whenCondition1,calTim.hourSampleTrigger,$whenCondition2,calTim.epochLastMonth,$PRE.calTim.epochLastMonth,calTim.yearIndex,$PRE.calTim.yearIndex,calTim.daysSinceEpoch,$PRE.calTim.daysSinceEpoch,calTim.weekDay,$PRE.calTim.weekDay,calTim.hour,$PRE.calTim.hour,calTim.day,$PRE.calTim.day,calTim.month,$PRE.calTim.month,calTim.year,$PRE.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.0002421/0.3182, allocations: 192 kB / 1.097 GB, free: 7.566 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.975e-05/0.3183, allocations: 43.47 kB / 1.097 GB, free: 7.523 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.2e-05/0.3184, allocations: 39.75 kB / 1.097 GB, free: 7.477 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.039e-06/0.3184, allocations: 3.984 kB / 1.097 GB, free: 7.473 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/0.3184, allocations: 0 / 1.097 GB, free: 7.473 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.377e-06/0.3184, allocations: 0 / 1.097 GB, free: 7.473 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002063/0.3205, allocations: 0.7482 MB / 1.098 GB, free: 6.664 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.598e-06/0.3205, allocations: 4 kB / 1.098 GB, free: 6.66 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.818e-05/0.3205, allocations: 7.938 kB / 1.098 GB, free: 6.652 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.399e-06/0.3206, allocations: 3.984 kB / 1.098 GB, free: 6.648 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.019e-05/0.3206, allocations: 15.98 kB / 1.098 GB, free: 6.633 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.934e-06/0.3206, allocations: 3.938 kB / 1.098 GB, free: 6.629 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.856e-06/0.3206, allocations: 8 kB / 1.098 GB, free: 6.621 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001622/0.3222, allocations: 474.4 kB / 1.099 GB, free: 6.145 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002749/0.3225, allocations: 200.5 kB / 1.099 GB, free: 5.93 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.653e-05/0.3226, allocations: 15.98 kB / 1.099 GB, free: 5.914 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004342/0.323, allocations: 27.97 kB / 1.099 GB, free: 5.887 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.216e-05/0.3231, allocations: 15.92 kB / 1.099 GB, free: 5.871 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.535e-05/0.3232, allocations: 55.98 kB / 1.099 GB, free: 5.816 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0002974/0.3235, allocations: 291.1 kB / 1.099 GB, free: 5.535 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3235, allocations: 0 / 1.099 GB, free: 5.535 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003831/0.3239, allocations: 71.98 kB / 1.099 GB, free: 5.465 MB / 0.8575 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.hourSampleTrigger,calTim.daySampleTrigger,$whenCondition2,$whenCondition1,calTim.year,calTim.month,calTim.day,calTim.hour,calTim.weekDay,calTim.daysSinceEpoch,calTim.yearIndex,calTim.epochLastMonth,calTim.firstHourSampling,calTim.firstDaySampling) * Number of discrete states: 9 (calTim.firstDaySampling,calTim.daysSinceEpoch,calTim.weekDay,calTim.yearIndex,calTim.year,calTim.epochLastMonth,calTim.month,calTim.firstHourSampling,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.0001665/0.324, allocations: 123.6 kB / 1.099 GB, free: 5.332 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.001227/0.3253, allocations: 430.5 kB / 1.1 GB, free: 4.887 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.786e-06/0.3253, allocations: 0 / 1.1 GB, free: 4.887 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.000704/0.326, allocations: 128.2 kB / 1.1 GB, free: 4.762 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003668/0.3264, allocations: 31.05 kB / 1.1 GB, free: 4.73 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001441/0.3278, allocations: 0.5362 MB / 1.1 GB, free: 4.172 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003838/0.3282, allocations: 0.7747 MB / 1.101 GB, free: 3.371 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 7.509e-05/0.3283, allocations: 13.08 kB / 1.101 GB, free: 3.359 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.398e-05/0.3284, allocations: 15.44 kB / 1.101 GB, free: 3.344 MB / 0.8575 GB Notification: Performance of SimCode: time 7.52e-07/0.3284, allocations: 0 / 1.101 GB, free: 3.344 MB / 0.8575 GB Notification: Performance of Templates: time 0.008918/0.3373, allocations: 4.95 MB / 1.106 GB, free: 14.3 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Utilities.Time.Validation.CalendarTimeMonthsMinus.makefile (rm -f Buildings_9_Buildings.Utilities.Time.Validation.CalendarTimeMonthsMinus.pipe ; mkfifo Buildings_9_Buildings.Utilities.Time.Validation.CalendarTimeMonthsMinus.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Time.Validation.CalendarTimeMonthsMinus.pipe >> ../files/Buildings_9_Buildings.Utilities.Time.Validation.CalendarTimeMonthsMinus.sim & ./Buildings_9_Buildings.Utilities.Time.Validation.CalendarTimeMonthsMinus -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Time.Validation.CalendarTimeMonthsMinus.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Time.Validation.CalendarTimeMonthsMinus_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Time_Validation_CalendarTimeMonthsMinus.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Time.Validation.CalendarTimeMonthsMinus.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches