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.001243/0.001248, 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.001339/0.001339, allocations: 197 kB / 16.64 MB, free: 6.582 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.337/1.337, allocations: 205.1 MB / 222.5 MB, free: 4.562 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.639/1.639, 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.001575/0.001575, allocations: 69.34 kB / 0.6718 GB, free: 26.09 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2101/0.2117, allocations: 114.5 MB / 0.7836 GB, free: 13.25 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.003206/0.215, allocations: 1.494 MB / 0.7851 GB, free: 11.74 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001161/0.2162, allocations: 420.3 kB / 0.7855 GB, free: 11.33 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.643e-05/0.2163, allocations: 0 / 0.7855 GB, free: 11.33 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001292/0.2164, allocations: 7.875 kB / 0.7855 GB, free: 11.32 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001198/0.2166, allocations: 28.22 kB / 0.7855 GB, free: 11.29 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008284/0.2174, allocations: 254.2 kB / 0.7858 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0004583/0.2179, allocations: 331.5 kB / 0.7861 GB, free: 10.72 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 5.524e-05/0.218, allocations: 8 kB / 0.7861 GB, free: 10.71 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003599/0.2183, allocations: 195.7 kB / 0.7863 GB, free: 10.52 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003119/0.2187, allocations: 116.1 kB / 0.7864 GB, free: 10.41 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 7.382e-05/0.2187, allocations: 19.94 kB / 0.7864 GB, free: 10.39 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 5.541e-05/0.2188, allocations: 23.94 kB / 0.7864 GB, free: 10.37 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001157/0.2189, allocations: 87.7 kB / 0.7865 GB, free: 10.28 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001417/0.2191, allocations: 119.4 kB / 0.7866 GB, free: 10.16 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0003359/0.2194, allocations: 295.4 kB / 0.7869 GB, free: 9.875 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.2194, allocations: 0 / 0.7869 GB, free: 9.875 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.804e-06/0.2194, allocations: 0 / 0.7869 GB, free: 9.875 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 9.318e-06/0.2195, allocations: 0 / 0.7869 GB, free: 9.875 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.001265/0.2207, allocations: 0.7422 MB / 0.7876 GB, free: 9.047 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 5.161e-05/0.2208, allocations: 8.031 kB / 0.7876 GB, free: 9.039 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.953e-05/0.2209, allocations: 42.73 kB / 0.7877 GB, free: 8.988 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001122/0.221, allocations: 28.66 kB / 0.7877 GB, free: 8.961 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003731/0.2214, allocations: 267.6 kB / 0.788 GB, free: 8.664 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.671e-05/0.2214, allocations: 16.12 kB / 0.788 GB, free: 8.648 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.468e-05/0.2215, allocations: 27.92 kB / 0.788 GB, free: 8.621 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008763/0.2224, allocations: 193.5 kB / 0.7882 GB, free: 8.426 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.618e-06/0.2224, allocations: 0 / 0.7882 GB, free: 8.426 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.61e-05/0.2224, allocations: 4 kB / 0.7882 GB, free: 8.422 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.899e-06/0.2224, allocations: 0 / 0.7882 GB, free: 8.422 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006547/0.2231, allocations: 103.9 kB / 0.7883 GB, free: 8.32 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003614/0.2235, allocations: 313.3 kB / 0.7886 GB, free: 7.965 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009038/0.2244, allocations: 178.4 kB / 0.7888 GB, free: 7.781 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006466/0.225, allocations: 108.7 kB / 0.7889 GB, free: 7.672 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 3e-05/0.2251, allocations: 4 kB / 0.7889 GB, free: 7.668 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008731/0.2259, allocations: 215.2 kB / 0.7891 GB, free: 7.445 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=16): time 2.335e-06/0.226, allocations: 0 / 0.7891 GB, free: 7.445 MB / 0.6075 GB Notification: Performance of matching and sorting (n=16): time 0.00225/0.2282, allocations: 445 kB / 0.7895 GB, free: 7.004 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.512e-05/0.2283, allocations: 59.41 kB / 0.7896 GB, free: 6.934 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003028/0.2286, allocations: 302.8 kB / 0.7898 GB, free: 6.621 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 6.197e-05/0.2287, allocations: 33.7 kB / 0.7899 GB, free: 6.582 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.346e-05/0.2287, allocations: 85.14 kB / 0.79 GB, free: 6.492 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 5.433e-05/0.2288, allocations: 47.47 kB / 0.79 GB, free: 6.445 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001463/0.229, allocations: 101.4 kB / 0.7901 GB, free: 6.34 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001179/0.2291, allocations: 326.8 kB / 0.7904 GB, free: 6.012 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001853/0.2293, allocations: 75.95 kB / 0.7905 GB, free: 5.938 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002075/0.2295, allocations: 138.6 kB / 0.7906 GB, free: 5.781 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003116/0.2298, allocations: 244 kB / 0.7908 GB, free: 5.512 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.2298, allocations: 0 / 0.7908 GB, free: 5.512 MB / 0.6075 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006198/0.2304, allocations: 384.7 kB / 0.7912 GB, free: 5.117 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 6.77e-05/0.2305, allocations: 75.39 kB / 0.7913 GB, free: 5.031 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.007e-06/0.2305, allocations: 4 kB / 0.7913 GB, free: 5.027 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.84e-05/0.2306, allocations: 4 kB / 0.7913 GB, free: 5.023 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001646/0.2307, allocations: 27.84 kB / 0.7913 GB, free: 4.996 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.409e-05/0.2308, allocations: 7.984 kB / 0.7913 GB, free: 4.988 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004223/0.2312, allocations: 59.98 kB / 0.7914 GB, free: 4.93 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.216e-05/0.2313, allocations: 43.98 kB / 0.7914 GB, free: 4.887 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.0001917/0.2315, allocations: 169.7 kB / 0.7916 GB, free: 4.711 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.04e-05/0.2315, allocations: 23.72 kB / 0.7916 GB, free: 4.688 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.593e-05/0.2316, allocations: 30.23 kB / 0.7916 GB, free: 4.66 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.19e-06/0.2316, allocations: 4 kB / 0.7916 GB, free: 4.656 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.66e-06/0.2316, allocations: 0 / 0.7916 GB, free: 4.656 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.16e-06/0.2316, allocations: 3.984 kB / 0.7916 GB, free: 4.652 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001935/0.2335, allocations: 0.6924 MB / 0.7923 GB, free: 3.902 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.2336, allocations: 0 / 0.7923 GB, free: 3.902 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.933e-05/0.2336, allocations: 4 kB / 0.7923 GB, free: 3.898 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.218e-06/0.2336, allocations: 0 / 0.7923 GB, free: 3.898 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.857e-05/0.2337, allocations: 27.97 kB / 0.7924 GB, free: 3.871 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.385e-06/0.2337, allocations: 0 / 0.7924 GB, free: 3.871 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.2337, allocations: 0 / 0.7924 GB, free: 3.871 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001525/0.2352, allocations: 447.4 kB / 0.7928 GB, free: 3.418 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002043/0.2354, allocations: 164.6 kB / 0.7929 GB, free: 3.238 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.519e-05/0.2355, allocations: 19.98 kB / 0.793 GB, free: 3.219 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004178/0.2359, allocations: 27.97 kB / 0.793 GB, free: 3.191 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.594e-05/0.236, allocations: 11.92 kB / 0.793 GB, free: 3.18 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.307e-05/0.236, allocations: 39.98 kB / 0.793 GB, free: 3.141 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0002091/0.2363, allocations: 209.9 kB / 0.7932 GB, free: 2.938 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2363, allocations: 0 / 0.7932 GB, free: 2.938 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003741/0.2366, allocations: 55.98 kB / 0.7933 GB, free: 2.883 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.001795/0.2384, allocations: 0.9931 MB / 0.7943 GB, free: 1.863 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001187/0.2396, allocations: 370.6 kB / 0.7946 GB, free: 1.477 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.2397, allocations: 0 / 0.7946 GB, free: 1.477 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0006762/0.2403, allocations: 116.2 kB / 0.7947 GB, free: 1.363 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004075/0.2408, allocations: 41.28 kB / 0.7948 GB, free: 1.328 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003508/0.2443, allocations: 2.386 MB / 0.7971 GB, free: 14.82 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003342/0.2446, allocations: 0.7434 MB / 0.7978 GB, free: 14.05 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 7.356e-05/0.2447, allocations: 9.094 kB / 0.7978 GB, free: 14.04 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.721e-05/0.2448, allocations: 31.36 kB / 0.7979 GB, free: 14.01 MB / 0.6231 GB Notification: Performance of SimCode: time 1.072e-06/0.2448, allocations: 0 / 0.7979 GB, free: 14.01 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02164/0.2664, allocations: 4.79 MB / 0.8025 GB, free: 9.309 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.316/7.583, allocations: 11.28 kB / 0.8025 GB, free: 9.305 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)