Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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.Examples.CalendarTime,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|calendarTime2016.year|calendarTime2016.month|calendarTime2016.day|calendarTime2016.hour|calendarTime2016.minute",fileNamePrefix="Buildings_10_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_10_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.001519/0.001519, allocations: 108.8 kB / 16.37 MB, free: 6.48 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.001701/0.001701, allocations: 193.1 kB / 17.31 MB, free: 5.82 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.359/1.359, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.412/2.412, allocations: 437.1 MB / 0.7112 GB, free: 4.375 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.002039/0.002039, allocations: 60.31 kB / 0.8707 GB, free: 1.484 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.291/0.2931, allocations: 151.6 MB / 1.019 GB, free: 9.879 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.002781/0.2959, allocations: 1.505 MB / 1.02 GB, free: 8.359 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001276/0.2972, allocations: 0.5554 MB / 1.021 GB, free: 7.805 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.545e-05/0.2973, allocations: 3.938 kB / 1.021 GB, free: 7.801 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0001036/0.2974, allocations: 11.92 kB / 1.021 GB, free: 7.789 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0001016/0.2975, allocations: 15.88 kB / 1.021 GB, free: 7.773 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007152/0.2982, allocations: 314.5 kB / 1.021 GB, free: 7.469 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0004911/0.2987, allocations: 0.5033 MB / 1.022 GB, free: 6.965 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 4.699e-05/0.2988, allocations: 11.98 kB / 1.022 GB, free: 6.953 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000316/0.2991, allocations: 275.6 kB / 1.022 GB, free: 6.684 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002316/0.2993, allocations: 143.6 kB / 1.022 GB, free: 6.543 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 6.368e-05/0.2994, allocations: 28 kB / 1.022 GB, free: 6.516 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 6.296e-05/0.2995, allocations: 28 kB / 1.022 GB, free: 6.488 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0001169/0.2996, allocations: 111.7 kB / 1.022 GB, free: 6.379 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0001677/0.2998, allocations: 187 kB / 1.022 GB, free: 6.195 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0003597/0.3001, allocations: 426.6 kB / 1.023 GB, free: 5.777 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.3002, allocations: 0 / 1.023 GB, free: 5.777 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.272e-06/0.3002, allocations: 0 / 1.023 GB, free: 5.777 MB / 0.795 GB Notification: Performance of Transformations before backend: time 6.142e-06/0.3002, allocations: 4 kB / 1.023 GB, free: 5.773 MB / 0.795 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.001199/0.3014, allocations: 0.8548 MB / 1.024 GB, free: 4.828 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.149e-05/0.3014, allocations: 8.922 kB / 1.024 GB, free: 4.82 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001088/0.3015, allocations: 56.45 kB / 1.024 GB, free: 4.766 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004193/0.302, allocations: 314.2 kB / 1.024 GB, free: 4.418 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.361e-05/0.302, allocations: 20.3 kB / 1.024 GB, free: 4.398 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.899e-05/0.3021, allocations: 28.36 kB / 1.024 GB, free: 4.371 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008733/0.303, allocations: 214 kB / 1.024 GB, free: 4.156 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.773e-06/0.303, allocations: 4.125 kB / 1.024 GB, free: 4.152 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.719e-05/0.303, allocations: 11.92 kB / 1.024 GB, free: 4.141 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.681e-06/0.303, allocations: 4 kB / 1.024 GB, free: 4.137 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000671/0.3037, allocations: 91.92 kB / 1.024 GB, free: 4.047 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003743/0.3041, allocations: 389.3 kB / 1.025 GB, free: 3.617 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009207/0.305, allocations: 178.4 kB / 1.025 GB, free: 3.434 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006693/0.3057, allocations: 112.8 kB / 1.025 GB, free: 3.32 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 2.957e-05/0.3057, allocations: 4 kB / 1.025 GB, free: 3.316 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008433/0.3066, allocations: 231 kB / 1.025 GB, free: 3.078 MB / 0.795 GB Notification: Performance of pre-optimization done (n=16): time 1.593e-06/0.3066, allocations: 4 kB / 1.025 GB, free: 3.074 MB / 0.795 GB Notification: Performance of matching and sorting (n=16): time 0.002233/0.3088, allocations: 478.6 kB / 1.026 GB, free: 2.602 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.941e-05/0.3089, allocations: 63.34 kB / 1.026 GB, free: 2.527 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003897/0.3093, allocations: 417.8 kB / 1.026 GB, free: 2.117 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 5.534e-05/0.3094, allocations: 37.7 kB / 1.026 GB, free: 2.074 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 6.927e-05/0.3094, allocations: 93.44 kB / 1.026 GB, free: 1.977 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 4.228e-05/0.3095, allocations: 43.53 kB / 1.026 GB, free: 1.934 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001788/0.3097, allocations: 121.3 kB / 1.026 GB, free: 1.809 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001061/0.3098, allocations: 326.8 kB / 1.027 GB, free: 1.48 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002506/0.31, allocations: 123.9 kB / 1.027 GB, free: 1.359 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002572/0.3103, allocations: 167.6 kB / 1.027 GB, free: 1.176 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003469/0.3107, allocations: 279.1 kB / 1.027 GB, free: 0.8711 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.3107, allocations: 0 / 1.027 GB, free: 0.8711 MB / 0.795 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007459/0.3114, allocations: 494 kB / 1.028 GB, free: 380 kB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 7.604e-05/0.3115, allocations: 91.31 kB / 1.028 GB, free: 276 kB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.3115, allocations: 192 / 1.028 GB, free: 276 kB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.506e-05/0.3115, allocations: 8 kB / 1.028 GB, free: 268 kB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001644/0.3117, allocations: 27.91 kB / 1.028 GB, free: 240 kB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.281e-06/0.3117, allocations: 0 / 1.028 GB, free: 240 kB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004369/0.3122, allocations: 59.8 kB / 1.028 GB, free: 180 kB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.496e-05/0.3123, allocations: 63.97 kB / 1.028 GB, free: 116 kB / 0.795 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.0002299/0.3125, allocations: 197.7 kB / 1.028 GB, free: 15.91 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.378e-05/0.3126, allocations: 43.47 kB / 1.028 GB, free: 15.87 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.281e-05/0.3126, allocations: 39.75 kB / 1.028 GB, free: 15.82 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.465e-06/0.3126, allocations: 0 / 1.028 GB, free: 15.82 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.3127, allocations: 0 / 1.028 GB, free: 15.82 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.3127, allocations: 0 / 1.028 GB, free: 15.82 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002045/0.3147, allocations: 0.7502 MB / 1.029 GB, free: 15.01 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.3147, allocations: 0 / 1.029 GB, free: 15.01 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.344e-05/0.3148, allocations: 4 kB / 1.029 GB, free: 15.01 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.445e-06/0.3148, allocations: 0 / 1.029 GB, free: 15.01 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.998e-05/0.3148, allocations: 23.97 kB / 1.029 GB, free: 14.98 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.3148, allocations: 0 / 1.029 GB, free: 14.98 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.3148, allocations: 4 kB / 1.029 GB, free: 14.98 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001538/0.3164, allocations: 479.2 kB / 1.029 GB, free: 14.5 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002823/0.3167, allocations: 200.5 kB / 1.03 GB, free: 14.28 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.78e-05/0.3167, allocations: 8 kB / 1.03 GB, free: 14.27 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004511/0.3172, allocations: 35.95 kB / 1.03 GB, free: 14.24 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.329e-05/0.3172, allocations: 8 kB / 1.03 GB, free: 14.23 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.396e-05/0.3173, allocations: 59.97 kB / 1.03 GB, free: 14.17 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0002621/0.3176, allocations: 291.1 kB / 1.03 GB, free: 13.89 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.7e-07/0.3176, allocations: 3.938 kB / 1.03 GB, free: 13.89 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.000329/0.3179, allocations: 67.98 kB / 1.03 GB, free: 13.82 MB / 0.8106 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.0001478/0.3181, allocations: 125 kB / 1.03 GB, free: 13.69 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.001137/0.3192, allocations: 449 kB / 1.031 GB, free: 13.23 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.3192, allocations: 0 / 1.031 GB, free: 13.23 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0006875/0.3199, allocations: 116.2 kB / 1.031 GB, free: 13.12 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000341/0.3203, allocations: 38.97 kB / 1.031 GB, free: 13.08 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001325/0.3216, allocations: 0.5479 MB / 1.031 GB, free: 12.5 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002928/0.3219, allocations: 0.7669 MB / 1.032 GB, free: 11.71 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 5.606e-05/0.322, allocations: 17.08 kB / 1.032 GB, free: 11.7 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.008e-05/0.322, allocations: 19.44 kB / 1.032 GB, free: 11.68 MB / 0.8106 GB Notification: Performance of SimCode: time 2.11e-07/0.322, allocations: 0 / 1.032 GB, free: 11.68 MB / 0.8106 GB Notification: Performance of Templates: time 0.007843/0.3299, allocations: 5.002 MB / 1.037 GB, free: 6.586 MB / 0.8106 GB make -j1 -f Buildings_10_Buildings.Utilities.Time.Examples.CalendarTime.makefile (rm -f Buildings_10_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; mkfifo Buildings_10_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Time.Examples.CalendarTime.pipe >> ../files/Buildings_10_Buildings.Utilities.Time.Examples.CalendarTime.sim & ./Buildings_10_Buildings.Utilities.Time.Examples.CalendarTime -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Time.Examples.CalendarTime.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Time.Examples.CalendarTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Time_Examples_CalendarTime.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Time.Examples.CalendarTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches