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.001052/0.001052, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001113/0.001113, allocations: 190.7 kB / 16.25 MB, free: 6.617 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.382/1.382, allocations: 205.1 MB / 222.1 MB, free: 4.707 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.679/1.679, allocations: 292.3 MB / 0.5485 GB, free: 13.64 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.001391/0.001392, allocations: 68.11 kB / 0.6711 GB, free: 26.16 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2211/0.2225, allocations: 114.6 MB / 0.783 GB, free: 13.86 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.002599/0.2251, allocations: 1.545 MB / 0.7845 GB, free: 12.3 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0009021/0.226, allocations: 431.5 kB / 0.7849 GB, free: 11.88 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.958e-05/0.2261, allocations: 8 kB / 0.7849 GB, free: 11.87 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001008/0.2262, allocations: 7.922 kB / 0.7849 GB, free: 11.86 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001042/0.2263, allocations: 24.28 kB / 0.7849 GB, free: 11.84 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006126/0.2269, allocations: 223.6 kB / 0.7851 GB, free: 11.62 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0003321/0.2273, allocations: 331.8 kB / 0.7854 GB, free: 11.29 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 4.51e-05/0.2273, allocations: 8 kB / 0.7855 GB, free: 11.29 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002978/0.2276, allocations: 234.3 kB / 0.7857 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002013/0.2279, allocations: 131.6 kB / 0.7858 GB, free: 10.93 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 5.312e-05/0.2279, allocations: 24 kB / 0.7858 GB, free: 10.91 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 4.853e-05/0.228, allocations: 19.94 kB / 0.7858 GB, free: 10.89 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001075/0.2281, allocations: 83.77 kB / 0.7859 GB, free: 10.8 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001331/0.2282, allocations: 131.3 kB / 0.7861 GB, free: 10.68 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002991/0.2285, allocations: 299.3 kB / 0.7863 GB, free: 10.38 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.2285, allocations: 0 / 0.7863 GB, free: 10.38 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.202e-06/0.2285, allocations: 0 / 0.7863 GB, free: 10.38 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.811e-06/0.2286, allocations: 0 / 0.7863 GB, free: 10.38 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.001033/0.2296, allocations: 0.7538 MB / 0.7871 GB, free: 9.543 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.993e-05/0.2296, allocations: 8.031 kB / 0.7871 GB, free: 9.535 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.537e-05/0.2297, allocations: 34.56 kB / 0.7871 GB, free: 9.492 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.178e-05/0.2298, allocations: 31.7 kB / 0.7871 GB, free: 9.461 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002653/0.2301, allocations: 262.2 kB / 0.7874 GB, free: 9.168 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.179e-05/0.2301, allocations: 15.98 kB / 0.7874 GB, free: 9.152 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.617e-05/0.2302, allocations: 16 kB / 0.7874 GB, free: 9.137 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000909/0.2311, allocations: 212.2 kB / 0.7876 GB, free: 8.926 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.617e-06/0.2311, allocations: 0 / 0.7876 GB, free: 8.926 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.787e-05/0.2311, allocations: 4 kB / 0.7876 GB, free: 8.922 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.16e-06/0.2311, allocations: 0 / 0.7876 GB, free: 8.922 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007105/0.2319, allocations: 99.84 kB / 0.7877 GB, free: 8.824 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003475/0.2322, allocations: 329.2 kB / 0.788 GB, free: 8.453 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009777/0.2332, allocations: 170.5 kB / 0.7882 GB, free: 8.277 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006891/0.2339, allocations: 104.8 kB / 0.7883 GB, free: 8.172 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 3.09e-05/0.2339, allocations: 7.984 kB / 0.7883 GB, free: 8.164 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009038/0.2349, allocations: 207.1 kB / 0.7885 GB, free: 7.949 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=16): time 1.813e-06/0.2349, allocations: 0 / 0.7885 GB, free: 7.949 MB / 0.6075 GB Notification: Performance of matching and sorting (n=16): time 0.002336/0.2372, allocations: 451.8 kB / 0.7889 GB, free: 7.504 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.413e-05/0.2373, allocations: 67.39 kB / 0.789 GB, free: 7.426 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002738/0.2375, allocations: 294.9 kB / 0.7893 GB, free: 7.125 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 4.741e-05/0.2376, allocations: 33.7 kB / 0.7893 GB, free: 7.086 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 7.151e-05/0.2377, allocations: 97.12 kB / 0.7894 GB, free: 6.984 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 5.404e-05/0.2377, allocations: 43.47 kB / 0.7895 GB, free: 6.941 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001504/0.2379, allocations: 101.4 kB / 0.7895 GB, free: 6.836 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.964e-05/0.238, allocations: 318.8 kB / 0.7899 GB, free: 6.516 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001844/0.2382, allocations: 87.94 kB / 0.7899 GB, free: 6.43 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002014/0.2384, allocations: 134.6 kB / 0.7901 GB, free: 6.277 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002867/0.2387, allocations: 240 kB / 0.7903 GB, free: 6.012 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.2387, allocations: 4 kB / 0.7903 GB, free: 6.008 MB / 0.6075 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005903/0.2393, allocations: 392.6 kB / 0.7907 GB, free: 5.605 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 7.507e-05/0.2394, allocations: 71.39 kB / 0.7907 GB, free: 5.523 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.701e-06/0.2394, allocations: 0 / 0.7907 GB, free: 5.523 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.77e-05/0.2394, allocations: 4 kB / 0.7907 GB, free: 5.52 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001649/0.2396, allocations: 27.91 kB / 0.7908 GB, free: 5.492 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.664e-06/0.2396, allocations: 8.125 kB / 0.7908 GB, free: 5.484 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000435/0.24, allocations: 55.8 kB / 0.7908 GB, free: 5.43 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.437e-05/0.2401, allocations: 43.98 kB / 0.7909 GB, free: 5.387 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.0001662/0.2403, allocations: 165.8 kB / 0.791 GB, free: 5.215 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.285e-05/0.2403, allocations: 27.66 kB / 0.7911 GB, free: 5.188 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.134e-05/0.2404, allocations: 34.3 kB / 0.7911 GB, free: 5.156 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-06/0.2404, allocations: 0 / 0.7911 GB, free: 5.156 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.073e-06/0.2404, allocations: 8 kB / 0.7911 GB, free: 5.148 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.811e-06/0.2404, allocations: 3.984 kB / 0.7911 GB, free: 5.145 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001964/0.2424, allocations: 0.6933 MB / 0.7918 GB, free: 4.395 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.2424, allocations: 0 / 0.7918 GB, free: 4.395 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.287e-05/0.2425, allocations: 4 kB / 0.7918 GB, free: 4.391 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.947e-06/0.2425, allocations: 3.984 kB / 0.7918 GB, free: 4.387 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.077e-05/0.2425, allocations: 15.98 kB / 0.7918 GB, free: 4.371 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.665e-06/0.2425, allocations: 0 / 0.7918 GB, free: 4.371 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.2425, allocations: 7.938 kB / 0.7918 GB, free: 4.363 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001505/0.244, allocations: 449.2 kB / 0.7922 GB, free: 3.91 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001592/0.2442, allocations: 160.6 kB / 0.7924 GB, free: 3.734 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.343e-05/0.2443, allocations: 11.98 kB / 0.7924 GB, free: 3.723 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004335/0.2447, allocations: 31.97 kB / 0.7924 GB, free: 3.691 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.905e-05/0.2447, allocations: 11.98 kB / 0.7924 GB, free: 3.68 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.214e-05/0.2448, allocations: 47.95 kB / 0.7925 GB, free: 3.633 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001681/0.245, allocations: 205.9 kB / 0.7927 GB, free: 3.434 MB / 0.6075 GB Notification: Performance of sort global known variables: time 2.2e-07/0.245, allocations: 0 / 0.7927 GB, free: 3.434 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003016/0.2453, allocations: 47.98 kB / 0.7927 GB, free: 3.387 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.001791/0.2471, allocations: 0.9909 MB / 0.7937 GB, free: 2.367 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001047/0.2481, allocations: 386.5 kB / 0.7941 GB, free: 1.965 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.2482, allocations: 0 / 0.7941 GB, free: 1.965 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0006867/0.2489, allocations: 118.9 kB / 0.7942 GB, free: 1.852 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003474/0.2492, allocations: 20.64 kB / 0.7942 GB, free: 1.832 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00325/0.2525, allocations: 2.454 MB / 0.7966 GB, free: 15.25 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002769/0.2528, allocations: 0.7357 MB / 0.7973 GB, free: 14.49 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 6.495e-05/0.2528, allocations: 17.08 kB / 0.7973 GB, free: 14.47 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.838e-05/0.2529, allocations: 27.38 kB / 0.7974 GB, free: 14.44 MB / 0.6231 GB Notification: Performance of SimCode: time 1.834e-06/0.2529, allocations: 0 / 0.7974 GB, free: 14.44 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01648/0.2694, allocations: 4.799 MB / 0.802 GB, free: 9.758 MB / 0.6231 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001742/0.2696, allocations: 197.6 kB / 0.8022 GB, free: 9.5 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.75/2.02, allocations: 0 / 0.8022 GB, free: 9.5 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Utilities_Time_Examples_CalendarTime_fmu --startTime=0 --stopTime=1e+08 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Utilities_Time_Examples_CalendarTime.fmu > Buildings_8_Buildings.Utilities.Time.Examples.CalendarTime.pipe 2>&1)