Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: "" <> buildModelFMU(Buildings.Utilities.Time.Examples.CalendarTime,fileNamePrefix="Buildings_8_Buildings_Utilities_Time_Examples_CalendarTime",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Time.Examples.CalendarTime,fileNamePrefix="Buildings_8_Buildings_Utilities_Time_Examples_CalendarTime",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00176/0.00176, allocations: 101.4 kB / 15.7 MB, free: 28 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.002148/0.002148, allocations: 200.6 kB / 16.64 MB, free: 6.43 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.387/1.387, allocations: 205.1 MB / 222.5 MB, free: 4.57 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.661/1.661, allocations: 292.3 MB / 0.549 GB, free: 12.75 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00169/0.00169, allocations: 77.48 kB / 0.6718 GB, free: 26.16 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2884/0.2901, allocations: 114.5 MB / 0.7836 GB, free: 13.29 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.003785/0.294, allocations: 1.494 MB / 0.7851 GB, free: 11.78 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001252/0.2953, allocations: 424.2 kB / 0.7855 GB, free: 11.36 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.165e-05/0.2954, allocations: 0 / 0.7855 GB, free: 11.36 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001227/0.2955, allocations: 7.922 kB / 0.7855 GB, free: 11.36 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001254/0.2957, allocations: 28.16 kB / 0.7855 GB, free: 11.33 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.001037/0.2967, allocations: 258.3 kB / 0.7858 GB, free: 11.08 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0005587/0.2973, allocations: 323.5 kB / 0.7861 GB, free: 10.76 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 6.819e-05/0.2974, allocations: 7.984 kB / 0.7861 GB, free: 10.75 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004293/0.2978, allocations: 203.6 kB / 0.7863 GB, free: 10.55 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003354/0.2982, allocations: 114.5 kB / 0.7864 GB, free: 10.45 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 9.25e-05/0.2983, allocations: 20 kB / 0.7864 GB, free: 10.43 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 5.861e-05/0.2983, allocations: 20 kB / 0.7864 GB, free: 10.41 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001357/0.2985, allocations: 79.72 kB / 0.7865 GB, free: 10.33 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001892/0.2987, allocations: 123.4 kB / 0.7866 GB, free: 10.21 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0004246/0.2991, allocations: 291.4 kB / 0.7869 GB, free: 9.922 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.002e-06/0.2991, allocations: 4 kB / 0.7869 GB, free: 9.918 MB / 0.6075 GB Notification: Performance of FrontEnd: time 4.158e-06/0.2991, allocations: 3.984 kB / 0.7869 GB, free: 9.914 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.329e-05/0.2991, allocations: 0 / 0.7869 GB, free: 9.914 MB / 0.6075 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.001438/0.3006, allocations: 0.7383 MB / 0.7876 GB, free: 9.09 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 5.277e-05/0.3007, allocations: 12.03 kB / 0.7876 GB, free: 9.078 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.543e-05/0.3007, allocations: 38.73 kB / 0.7877 GB, free: 9.031 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001329/0.3009, allocations: 32.66 kB / 0.7877 GB, free: 9 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000382/0.3013, allocations: 267.5 kB / 0.788 GB, free: 8.703 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.451e-05/0.3013, allocations: 20.12 kB / 0.788 GB, free: 8.684 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.575e-05/0.3014, allocations: 16 kB / 0.788 GB, free: 8.668 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009759/0.3024, allocations: 201.4 kB / 0.7882 GB, free: 8.465 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.037e-05/0.3024, allocations: 0 / 0.7882 GB, free: 8.465 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.444e-05/0.3024, allocations: 0 / 0.7882 GB, free: 8.465 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.861e-06/0.3024, allocations: 0 / 0.7882 GB, free: 8.465 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007242/0.3032, allocations: 103.9 kB / 0.7883 GB, free: 8.363 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004617/0.3036, allocations: 317.3 kB / 0.7886 GB, free: 8.004 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009954/0.3046, allocations: 178.3 kB / 0.7888 GB, free: 7.82 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006953/0.3054, allocations: 108.8 kB / 0.7889 GB, free: 7.711 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 3.134e-05/0.3054, allocations: 3.984 kB / 0.7889 GB, free: 7.707 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009572/0.3064, allocations: 207.2 kB / 0.7891 GB, free: 7.492 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=16): time 2.204e-06/0.3064, allocations: 0 / 0.7891 GB, free: 7.492 MB / 0.6075 GB Notification: Performance of matching and sorting (n=16): time 0.002424/0.3088, allocations: 449 kB / 0.7895 GB, free: 7.047 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.499e-05/0.3089, allocations: 63.39 kB / 0.7896 GB, free: 6.973 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003614/0.3093, allocations: 290.9 kB / 0.7898 GB, free: 6.672 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 5.724e-05/0.3093, allocations: 37.7 kB / 0.7899 GB, free: 6.629 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 7.453e-05/0.3094, allocations: 93.12 kB / 0.79 GB, free: 6.531 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 6.041e-05/0.3095, allocations: 47.41 kB / 0.79 GB, free: 6.484 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001767/0.3097, allocations: 105.4 kB / 0.7901 GB, free: 6.375 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001219/0.3098, allocations: 318.8 kB / 0.7904 GB, free: 6.055 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001981/0.31, allocations: 79.95 kB / 0.7905 GB, free: 5.977 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002235/0.3102, allocations: 134.6 kB / 0.7906 GB, free: 5.824 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003443/0.3106, allocations: 243.9 kB / 0.7908 GB, free: 5.555 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.489e-06/0.3106, allocations: 0 / 0.7908 GB, free: 5.555 MB / 0.6075 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006615/0.3113, allocations: 392.8 kB / 0.7912 GB, free: 5.152 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 7.366e-05/0.3114, allocations: 71.39 kB / 0.7913 GB, free: 5.07 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/0.3114, allocations: 0 / 0.7913 GB, free: 5.07 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.572e-05/0.3114, allocations: 4 kB / 0.7913 GB, free: 5.066 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001808/0.3116, allocations: 23.92 kB / 0.7913 GB, free: 5.043 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.806e-06/0.3116, allocations: 3.984 kB / 0.7913 GB, free: 5.039 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004291/0.312, allocations: 51.81 kB / 0.7914 GB, free: 4.988 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.005e-05/0.3121, allocations: 48.05 kB / 0.7914 GB, free: 4.941 MB / 0.6075 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.0002066/0.3123, allocations: 181.7 kB / 0.7916 GB, free: 4.754 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.437e-05/0.3124, allocations: 23.66 kB / 0.7916 GB, free: 4.73 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.284e-05/0.3125, allocations: 30.3 kB / 0.7916 GB, free: 4.703 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.298e-06/0.3125, allocations: 0 / 0.7916 GB, free: 4.703 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.045e-06/0.3125, allocations: 4 kB / 0.7916 GB, free: 4.699 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.77e-06/0.3125, allocations: 0 / 0.7916 GB, free: 4.699 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002142/0.3147, allocations: 0.6956 MB / 0.7923 GB, free: 3.945 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.3147, allocations: 0 / 0.7923 GB, free: 3.945 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.451e-05/0.3147, allocations: 4 kB / 0.7923 GB, free: 3.941 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.166e-06/0.3147, allocations: 0 / 0.7923 GB, free: 3.941 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.913e-05/0.3148, allocations: 19.97 kB / 0.7923 GB, free: 3.922 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.207e-06/0.3148, allocations: 4 kB / 0.7923 GB, free: 3.918 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.3148, allocations: 8 kB / 0.7924 GB, free: 3.91 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001595/0.3164, allocations: 443.4 kB / 0.7928 GB, free: 3.461 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000206/0.3166, allocations: 168.6 kB / 0.7929 GB, free: 3.277 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.783e-05/0.3167, allocations: 8 kB / 0.7929 GB, free: 3.27 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004424/0.3171, allocations: 31.95 kB / 0.793 GB, free: 3.238 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.536e-05/0.3172, allocations: 11.94 kB / 0.793 GB, free: 3.227 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.644e-05/0.3173, allocations: 43.97 kB / 0.793 GB, free: 3.184 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001939/0.3175, allocations: 209.9 kB / 0.7932 GB, free: 2.98 MB / 0.6075 GB Notification: Performance of sort global known variables: time 3.2e-07/0.3175, allocations: 0 / 0.7932 GB, free: 2.98 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003443/0.3178, allocations: 44 kB / 0.7933 GB, free: 2.938 MB / 0.6075 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.002018/0.3198, allocations: 0.9979 MB / 0.7942 GB, free: 1.914 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001205/0.3211, allocations: 374.5 kB / 0.7946 GB, free: 1.523 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.3211, allocations: 4 kB / 0.7946 GB, free: 1.52 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0007422/0.3218, allocations: 124.2 kB / 0.7947 GB, free: 1.398 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003928/0.3222, allocations: 33.91 kB / 0.7948 GB, free: 1.371 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003917/0.3262, allocations: 2.383 MB / 0.7971 GB, free: 14.87 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004034/0.3266, allocations: 0.7396 MB / 0.7978 GB, free: 14.1 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 8.543e-05/0.3267, allocations: 17.08 kB / 0.7978 GB, free: 14.08 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.087e-05/0.3268, allocations: 23.42 kB / 0.7978 GB, free: 14.06 MB / 0.6231 GB Notification: Performance of SimCode: time 6.41e-07/0.3268, allocations: 0 / 0.7978 GB, free: 14.06 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02889/0.3557, allocations: 4.79 MB / 0.8025 GB, free: 9.359 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.699/8.055, allocations: 8.188 kB / 0.8025 GB, free: 9.355 MB / 0.6231 GB (rm -f Buildings_8_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; mkfifo Buildings_8_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.Time.Examples.CalendarTime.pipe >> ../files/Buildings_8_Buildings.Utilities.Time.Examples.CalendarTime.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Utilities.Time.Examples.CalendarTime_res.csv --start-time 0 --stop-time 1e+08 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Utilities_Time_Examples_CalendarTime.fmu > Buildings_8_Buildings.Utilities.Time.Examples.CalendarTime.pipe 2>&1)