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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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: "" <> buildModelFMU(Buildings.Utilities.Time.Examples.CalendarTime,fileNamePrefix="Buildings_latest_Buildings_Utilities_Time_Examples_CalendarTime",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Time.Examples.CalendarTime,fileNamePrefix="Buildings_latest_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.001691/0.001691, allocations: 108 kB / 15.61 MB, free: 152 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.001843/0.001843, allocations: 194.4 kB / 16.53 MB, free: 6.699 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.296/1.296, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.699/2.699, allocations: 461.9 MB / 0.7346 GB, free: 14.7 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001429/0.001429, allocations: 61.77 kB / 0.8992 GB, free: 36.98 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3178/0.3193, allocations: 157.4 MB / 1.053 GB, free: 8.25 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.003008/0.3223, allocations: 1.517 MB / 1.054 GB, free: 6.723 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0013/0.3237, allocations: 0.5472 MB / 1.055 GB, free: 6.176 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.212e-05/0.3238, allocations: 0 / 1.055 GB, free: 6.176 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001015/0.3239, allocations: 11.88 kB / 1.055 GB, free: 6.164 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001226/0.324, allocations: 23.84 kB / 1.055 GB, free: 6.141 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008861/0.3249, allocations: 318.6 kB / 1.055 GB, free: 5.832 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.000568/0.3255, allocations: 0.5033 MB / 1.056 GB, free: 5.328 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 5.258e-05/0.3256, allocations: 7.984 kB / 1.056 GB, free: 5.32 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004427/0.326, allocations: 275.7 kB / 1.056 GB, free: 5.051 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002954/0.3263, allocations: 131.6 kB / 1.056 GB, free: 4.922 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.0001189/0.3265, allocations: 24 kB / 1.056 GB, free: 4.898 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001023/0.3266, allocations: 28 kB / 1.056 GB, free: 4.871 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001316/0.3267, allocations: 111.7 kB / 1.056 GB, free: 4.762 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0002075/0.3269, allocations: 191 kB / 1.056 GB, free: 4.574 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0004205/0.3273, allocations: 426.9 kB / 1.057 GB, free: 4.156 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.3274, allocations: 4 kB / 1.057 GB, free: 4.152 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.463e-06/0.3274, allocations: 0 / 1.057 GB, free: 4.152 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.255e-05/0.3274, allocations: 0 / 1.057 GB, free: 4.152 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.001263/0.3286, allocations: 0.8625 MB / 1.058 GB, free: 3.199 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.187e-05/0.3287, allocations: 12.62 kB / 1.058 GB, free: 3.188 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.888e-05/0.3288, allocations: 38.73 kB / 1.058 GB, free: 3.141 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001286/0.3289, allocations: 48.56 kB / 1.058 GB, free: 3.094 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003672/0.3293, allocations: 318.1 kB / 1.058 GB, free: 2.742 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.743e-05/0.3293, allocations: 16.36 kB / 1.058 GB, free: 2.727 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.567e-05/0.3294, allocations: 32.36 kB / 1.058 GB, free: 2.695 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009927/0.3304, allocations: 210 kB / 1.058 GB, free: 2.484 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.263e-05/0.3304, allocations: 7.922 kB / 1.058 GB, free: 2.477 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.26e-05/0.3305, allocations: 4 kB / 1.058 GB, free: 2.473 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.184e-06/0.3305, allocations: 7.938 kB / 1.058 GB, free: 2.465 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007911/0.3313, allocations: 103.9 kB / 1.058 GB, free: 2.363 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004379/0.3317, allocations: 389.2 kB / 1.059 GB, free: 1.934 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001059/0.3328, allocations: 170.5 kB / 1.059 GB, free: 1.758 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007699/0.3336, allocations: 116.8 kB / 1.059 GB, free: 1.641 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.295e-05/0.3336, allocations: 0 / 1.059 GB, free: 1.641 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001001/0.3346, allocations: 242.9 kB / 1.059 GB, free: 1.391 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=16): time 3.696e-06/0.3346, allocations: 0 / 1.059 GB, free: 1.391 MB / 0.8106 GB Notification: Performance of matching and sorting (n=16): time 0.002626/0.3373, allocations: 486.8 kB / 1.06 GB, free: 0.9102 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.293e-05/0.3373, allocations: 55.41 kB / 1.06 GB, free: 0.8438 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003954/0.3377, allocations: 417.8 kB / 1.06 GB, free: 440 kB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 5.871e-05/0.3378, allocations: 37.7 kB / 1.06 GB, free: 396 kB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 8.247e-05/0.3379, allocations: 93.44 kB / 1.06 GB, free: 300 kB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 4.401e-05/0.3379, allocations: 39.59 kB / 1.06 GB, free: 260 kB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001911/0.3381, allocations: 125.3 kB / 1.061 GB, free: 128 kB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001247/0.3383, allocations: 326.8 kB / 1.061 GB, free: 15.8 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002778/0.3385, allocations: 119.9 kB / 1.061 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002913/0.3388, allocations: 169.9 kB / 1.061 GB, free: 15.49 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003696/0.3392, allocations: 275.7 kB / 1.061 GB, free: 15.19 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.3392, allocations: 0 / 1.061 GB, free: 15.19 MB / 0.8262 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008173/0.3401, allocations: 496.7 kB / 1.062 GB, free: 14.69 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 7.987e-05/0.3402, allocations: 95.31 kB / 1.062 GB, free: 14.58 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/0.3402, allocations: 4 kB / 1.062 GB, free: 14.58 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.82e-05/0.3402, allocations: 3.984 kB / 1.062 GB, free: 14.57 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001596/0.3404, allocations: 19.98 kB / 1.062 GB, free: 14.55 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.022e-05/0.3404, allocations: 7.938 kB / 1.062 GB, free: 14.55 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005152/0.3409, allocations: 59.73 kB / 1.062 GB, free: 14.49 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.386e-05/0.341, allocations: 71.97 kB / 1.062 GB, free: 14.42 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.0002097/0.3412, allocations: 189.7 kB / 1.062 GB, free: 14.23 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.384e-05/0.3413, allocations: 39.47 kB / 1.062 GB, free: 14.19 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.236e-05/0.3413, allocations: 39.75 kB / 1.062 GB, free: 14.14 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.55e-06/0.3414, allocations: 7.984 kB / 1.062 GB, free: 14.14 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.3414, allocations: 0 / 1.062 GB, free: 14.14 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.297e-06/0.3414, allocations: 0 / 1.062 GB, free: 14.14 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002198/0.3436, allocations: 0.7463 MB / 1.063 GB, free: 13.34 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/0.3436, allocations: 0 / 1.063 GB, free: 13.34 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.946e-05/0.3436, allocations: 7.938 kB / 1.063 GB, free: 13.33 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.679e-06/0.3436, allocations: 3.984 kB / 1.063 GB, free: 13.32 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.257e-05/0.3437, allocations: 15.98 kB / 1.063 GB, free: 13.31 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.023e-06/0.3437, allocations: 4 kB / 1.063 GB, free: 13.3 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.3437, allocations: 0 / 1.063 GB, free: 13.3 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001787/0.3455, allocations: 482.7 kB / 1.064 GB, free: 12.82 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00023/0.3457, allocations: 208.4 kB / 1.064 GB, free: 12.59 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.647e-05/0.3458, allocations: 15.92 kB / 1.064 GB, free: 12.58 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004867/0.3463, allocations: 31.97 kB / 1.064 GB, free: 12.55 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.116e-05/0.3463, allocations: 7.984 kB / 1.064 GB, free: 12.54 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.983e-05/0.3464, allocations: 51.98 kB / 1.064 GB, free: 12.49 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0002759/0.3467, allocations: 299.1 kB / 1.064 GB, free: 12.2 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.71e-07/0.3467, allocations: 0 / 1.064 GB, free: 12.2 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003472/0.3471, allocations: 71.98 kB / 1.064 GB, free: 12.13 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.002065/0.3491, allocations: 1.017 MB / 1.065 GB, free: 11.09 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001279/0.3504, allocations: 446.8 kB / 1.066 GB, free: 10.62 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.3504, allocations: 3.938 kB / 1.066 GB, free: 10.62 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0008105/0.3513, allocations: 124.2 kB / 1.066 GB, free: 10.5 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003639/0.3516, allocations: 26.95 kB / 1.066 GB, free: 10.47 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004006/0.3556, allocations: 2.777 MB / 1.069 GB, free: 7.566 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003369/0.356, allocations: 0.7669 MB / 1.069 GB, free: 6.773 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 6.419e-05/0.3561, allocations: 17.08 kB / 1.069 GB, free: 6.754 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.546e-05/0.3561, allocations: 27.42 kB / 1.069 GB, free: 6.73 MB / 0.8262 GB Notification: Performance of SimCode: time 2.3e-07/0.3561, allocations: 0 / 1.069 GB, free: 6.73 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02445/0.3806, allocations: 6.19 MB / 1.075 GB, free: 0.5039 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.205/7.586, allocations: 8.047 kB / 1.075 GB, free: 0.4961 MB / 0.8262 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Time_Examples_CalendarTime_fmu --startTime=0 --stopTime=1e+08 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Time_Examples_CalendarTime.fmu > Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.pipe 2>&1)