Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.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.Utilities.Time.Examples.CalendarTime,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|calendarTime2016.year|calendarTime2016.month|calendarTime2016.day|calendarTime2016.hour|calendarTime2016.minute",fileNamePrefix="Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime") translateModel(Buildings.Utilities.Time.Examples.CalendarTime,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|calendarTime2016.year|calendarTime2016.month|calendarTime2016.day|calendarTime2016.hour|calendarTime2016.minute",fileNamePrefix="Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001546/0.001546, allocations: 100.1 kB / 15.88 MB, free: 12 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.001799/0.001799, allocations: 199.5 kB / 16.79 MB, free: 6.809 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.409/1.409, allocations: 222.9 MB / 240.5 MB, free: 4.602 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.87/2.87, allocations: 461.8 MB / 0.7348 GB, free: 14.21 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00129/0.001291, allocations: 73.89 kB / 0.899 GB, free: 37.1 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3021/0.3034, allocations: 157.4 MB / 1.053 GB, free: 8.359 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.00287/0.3063, allocations: 1.58 MB / 1.054 GB, free: 6.766 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001332/0.3076, allocations: 0.5892 MB / 1.055 GB, free: 6.172 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.657e-05/0.3077, allocations: 3.938 kB / 1.055 GB, free: 6.168 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.000106/0.3078, allocations: 3.984 kB / 1.055 GB, free: 6.164 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.00011/0.308, allocations: 27.86 kB / 1.055 GB, free: 6.137 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007603/0.3087, allocations: 283.5 kB / 1.055 GB, free: 5.859 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.000449/0.3092, allocations: 447.4 kB / 1.056 GB, free: 5.422 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.813e-05/0.3093, allocations: 8 kB / 1.056 GB, free: 5.414 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004555/0.3097, allocations: 307 kB / 1.056 GB, free: 5.113 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003081/0.31, allocations: 167.2 kB / 1.056 GB, free: 4.949 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.0001169/0.3102, allocations: 12 kB / 1.056 GB, free: 4.938 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 9.894e-05/0.3103, allocations: 20 kB / 1.056 GB, free: 4.918 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001497/0.3104, allocations: 111.6 kB / 1.056 GB, free: 4.809 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.000219/0.3107, allocations: 186.8 kB / 1.056 GB, free: 4.625 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.000297/0.311, allocations: 311.7 kB / 1.057 GB, free: 4.32 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.409e-06/0.311, allocations: 0 / 1.057 GB, free: 4.32 MB / 0.8106 GB Notification: Performance of FrontEnd: time 9.82e-07/0.311, allocations: 0 / 1.057 GB, free: 4.32 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.021e-05/0.311, allocations: 0 / 1.057 GB, free: 4.32 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.001326/0.3123, allocations: 0.8665 MB / 1.057 GB, free: 3.363 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.095e-05/0.3124, allocations: 15.97 kB / 1.058 GB, free: 3.348 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001386/0.3125, allocations: 52.47 kB / 1.058 GB, free: 3.297 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003886/0.3129, allocations: 318.1 kB / 1.058 GB, free: 2.945 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.879e-05/0.313, allocations: 24.3 kB / 1.058 GB, free: 2.922 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.736e-05/0.3131, allocations: 28.36 kB / 1.058 GB, free: 2.895 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001085/0.3141, allocations: 208.6 kB / 1.058 GB, free: 2.688 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.806e-06/0.3142, allocations: 192 / 1.058 GB, free: 2.688 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.41e-05/0.3142, allocations: 11.92 kB / 1.058 GB, free: 2.676 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.719e-06/0.3142, allocations: 4 kB / 1.058 GB, free: 2.672 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008353/0.3151, allocations: 103.9 kB / 1.058 GB, free: 2.57 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004404/0.3155, allocations: 381.2 kB / 1.059 GB, free: 2.148 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001136/0.3167, allocations: 182.5 kB / 1.059 GB, free: 1.961 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008179/0.3175, allocations: 108.8 kB / 1.059 GB, free: 1.852 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.331e-05/0.3175, allocations: 0 / 1.059 GB, free: 1.852 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001049/0.3186, allocations: 233.5 kB / 1.059 GB, free: 1.613 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=16): time 1.473e-06/0.3186, allocations: 0 / 1.059 GB, free: 1.613 MB / 0.8106 GB Notification: Performance of matching and sorting (n=16): time 0.002669/0.3213, allocations: 484.9 kB / 1.06 GB, free: 1.133 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.003e-05/0.3213, allocations: 55.41 kB / 1.06 GB, free: 1.066 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004064/0.3217, allocations: 417.8 kB / 1.06 GB, free: 0.6484 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 6.156e-05/0.3218, allocations: 37.7 kB / 1.06 GB, free: 0.6055 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 8.046e-05/0.3219, allocations: 101.4 kB / 1.06 GB, free: 0.5039 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 5.944e-05/0.3219, allocations: 39.48 kB / 1.06 GB, free: 476 kB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002079/0.3222, allocations: 129.3 kB / 1.06 GB, free: 340 kB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001088/0.3223, allocations: 322.8 kB / 1.061 GB, free: 8 kB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002929/0.3226, allocations: 119.9 kB / 1.061 GB, free: 15.89 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002883/0.3229, allocations: 171.5 kB / 1.061 GB, free: 15.7 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003725/0.3233, allocations: 279 kB / 1.061 GB, free: 15.4 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.42e-06/0.3233, allocations: 4 kB / 1.061 GB, free: 15.39 MB / 0.8262 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008207/0.3241, allocations: 497.4 kB / 1.062 GB, free: 14.89 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 9.421e-05/0.3242, allocations: 91.31 kB / 1.062 GB, free: 14.79 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.673e-06/0.3242, allocations: 4 kB / 1.062 GB, free: 14.79 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.972e-05/0.3242, allocations: 4 kB / 1.062 GB, free: 14.78 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000172/0.3244, allocations: 19.92 kB / 1.062 GB, free: 14.76 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.131e-05/0.3244, allocations: 4 kB / 1.062 GB, free: 14.76 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005225/0.325, allocations: 67.97 kB / 1.062 GB, free: 14.69 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.132e-05/0.3251, allocations: 59.98 kB / 1.062 GB, free: 14.63 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 (calendarTime2016.firstHourSampling,$PRE.calendarTime2016.firstHourSampling,calendarTime2016.firstDaySampling,$PRE.calendarTime2016.firstDaySampling,calendarTime2016.daySampleTrigger,$whenCondition1,calendarTime2016.hourSampleTrigger,$whenCondition2,calendarTime2016.epochLastMonth,$PRE.calendarTime2016.epochLastMonth,calendarTime2016.yearIndex,$PRE.calendarTime2016.yearIndex,calendarTime2016.daysSinceEpoch,$PRE.calendarTime2016.daysSinceEpoch,calendarTime2016.weekDay,$PRE.calendarTime2016.weekDay,calendarTime2016.hour,$PRE.calendarTime2016.hour,calendarTime2016.day,$PRE.calendarTime2016.day,calendarTime2016.month,$PRE.calendarTime2016.month,calendarTime2016.year,$PRE.calendarTime2016.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.0002296/0.3253, allocations: 193.7 kB / 1.062 GB, free: 14.44 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.263e-05/0.3254, allocations: 43.47 kB / 1.062 GB, free: 14.39 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.541e-05/0.3254, allocations: 47.67 kB / 1.062 GB, free: 14.34 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.3255, allocations: 0 / 1.062 GB, free: 14.34 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.3255, allocations: 0 / 1.062 GB, free: 14.34 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.497e-06/0.3255, allocations: 4 kB / 1.062 GB, free: 14.34 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002223/0.3277, allocations: 0.7434 MB / 1.063 GB, free: 13.54 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.3277, allocations: 0 / 1.063 GB, free: 13.54 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.784e-05/0.3278, allocations: 15.92 kB / 1.063 GB, free: 13.53 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.3278, allocations: 0 / 1.063 GB, free: 13.53 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.133e-05/0.3278, allocations: 19.98 kB / 1.063 GB, free: 13.51 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.898e-06/0.3278, allocations: 3.984 kB / 1.063 GB, free: 13.5 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.3278, allocations: 0 / 1.063 GB, free: 13.5 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001773/0.3296, allocations: 474.8 kB / 1.063 GB, free: 13.02 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002546/0.3299, allocations: 200.5 kB / 1.064 GB, free: 12.81 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.382e-05/0.33, allocations: 11.98 kB / 1.064 GB, free: 12.8 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004825/0.3305, allocations: 27.97 kB / 1.064 GB, free: 12.77 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.794e-05/0.3305, allocations: 7.984 kB / 1.064 GB, free: 12.76 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.375e-05/0.3306, allocations: 63.95 kB / 1.064 GB, free: 12.7 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0002692/0.3309, allocations: 299.1 kB / 1.064 GB, free: 12.41 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3309, allocations: 0 / 1.064 GB, free: 12.41 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003498/0.3312, allocations: 64 kB / 1.064 GB, free: 12.35 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 (calendarTime2016.hourSampleTrigger,calendarTime2016.daySampleTrigger,$whenCondition2,$whenCondition1,calendarTime2016.year,calendarTime2016.month,calendarTime2016.day,calendarTime2016.hour,calendarTime2016.weekDay,calendarTime2016.daysSinceEpoch,calendarTime2016.yearIndex,calendarTime2016.epochLastMonth,calendarTime2016.firstHourSampling,calendarTime2016.firstDaySampling) * Number of discrete states: 9 (calendarTime2016.firstDaySampling,calendarTime2016.daysSinceEpoch,calendarTime2016.weekDay,calendarTime2016.yearIndex,calendarTime2016.year,calendarTime2016.epochLastMonth,calendarTime2016.month,calendarTime2016.firstHourSampling,calendarTime2016.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.0001482/0.3314, allocations: 120.9 kB / 1.064 GB, free: 12.22 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001264/0.3326, allocations: 442.7 kB / 1.065 GB, free: 11.76 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.3327, allocations: 0 / 1.065 GB, free: 11.76 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0008189/0.3335, allocations: 119.8 kB / 1.065 GB, free: 11.64 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003552/0.3338, allocations: 36.05 kB / 1.065 GB, free: 11.61 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001962/0.3358, allocations: 0.7111 MB / 1.065 GB, free: 10.87 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005079/0.3363, allocations: 0.7749 MB / 1.066 GB, free: 10.07 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.009e-05/0.3364, allocations: 15.44 kB / 1.066 GB, free: 10.06 MB / 0.8262 GB Notification: Performance of SimCode: time 4.6e-07/0.3364, allocations: 0 / 1.066 GB, free: 10.06 MB / 0.8262 GB Notification: Performance of Templates: time 0.006229/0.3427, allocations: 3.729 MB / 1.07 GB, free: 6.277 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.makefile (rm -f Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.pipe >> ../files/Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.sim & ./Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Time_Examples_CalendarTime.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches