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.001174/0.001174, allocations: 108 kB / 15.6 MB, free: 132 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.001115/0.001115, allocations: 192.2 kB / 16.53 MB, free: 6.391 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.525/1.525, allocations: 205.1 MB / 222.4 MB, free: 4.453 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.642/1.642, allocations: 292.3 MB / 0.5489 GB, free: 12.83 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.001387/0.001387, allocations: 70.23 kB / 0.6716 GB, free: 26.08 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2369/0.2383, allocations: 114.6 MB / 0.7835 GB, free: 13.41 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.002488/0.2408, allocations: 1.484 MB / 0.7849 GB, free: 11.91 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0009543/0.2418, allocations: 423.3 kB / 0.7853 GB, free: 11.49 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.318e-05/0.2419, allocations: 4 kB / 0.7853 GB, free: 11.48 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 9.566e-05/0.242, allocations: 11.86 kB / 0.7853 GB, free: 11.47 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 9.307e-05/0.2421, allocations: 24.23 kB / 0.7854 GB, free: 11.45 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.000622/0.2427, allocations: 254.3 kB / 0.7856 GB, free: 11.2 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0003115/0.243, allocations: 319.5 kB / 0.7859 GB, free: 10.89 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 5.278e-05/0.2431, allocations: 7.984 kB / 0.7859 GB, free: 10.88 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000243/0.2433, allocations: 191.7 kB / 0.7861 GB, free: 10.7 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001954/0.2435, allocations: 112 kB / 0.7862 GB, free: 10.59 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 8.151e-05/0.2436, allocations: 20 kB / 0.7862 GB, free: 10.57 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 7.128e-05/0.2437, allocations: 27.94 kB / 0.7863 GB, free: 10.54 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001104/0.2438, allocations: 79.78 kB / 0.7863 GB, free: 10.46 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001513/0.244, allocations: 127.4 kB / 0.7864 GB, free: 10.34 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0003121/0.2443, allocations: 295.3 kB / 0.7867 GB, free: 10.05 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.2443, allocations: 0 / 0.7867 GB, free: 10.05 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.233e-06/0.2443, allocations: 0 / 0.7867 GB, free: 10.05 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.048e-05/0.2443, allocations: 0 / 0.7867 GB, free: 10.05 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.001025/0.2454, allocations: 0.7422 MB / 0.7875 GB, free: 9.219 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.211e-05/0.2454, allocations: 12.03 kB / 0.7875 GB, free: 9.207 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.697e-05/0.2455, allocations: 42.73 kB / 0.7875 GB, free: 9.156 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.837e-05/0.2456, allocations: 28.66 kB / 0.7875 GB, free: 9.129 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003311/0.2459, allocations: 271.6 kB / 0.7878 GB, free: 8.828 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.119e-05/0.246, allocations: 20.12 kB / 0.7878 GB, free: 8.809 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.842e-05/0.246, allocations: 16 kB / 0.7878 GB, free: 8.793 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009159/0.2469, allocations: 197.4 kB / 0.788 GB, free: 8.594 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.047e-06/0.247, allocations: 4 kB / 0.788 GB, free: 8.59 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.157e-05/0.247, allocations: 8 kB / 0.788 GB, free: 8.582 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.212e-06/0.247, allocations: 0 / 0.788 GB, free: 8.582 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000736/0.2478, allocations: 103 kB / 0.7881 GB, free: 8.484 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003235/0.2481, allocations: 317.3 kB / 0.7884 GB, free: 8.125 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009734/0.2491, allocations: 182.4 kB / 0.7886 GB, free: 7.938 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000677/0.2498, allocations: 108.8 kB / 0.7887 GB, free: 7.828 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.55e-05/0.2498, allocations: 0 / 0.7887 GB, free: 7.828 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008736/0.2507, allocations: 207.2 kB / 0.7889 GB, free: 7.613 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=16): time 1.472e-06/0.2507, allocations: 0 / 0.7889 GB, free: 7.613 MB / 0.6075 GB Notification: Performance of matching and sorting (n=16): time 0.002267/0.253, allocations: 449 kB / 0.7893 GB, free: 7.168 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.955e-05/0.253, allocations: 63.41 kB / 0.7894 GB, free: 7.094 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002684/0.2533, allocations: 290.9 kB / 0.7897 GB, free: 6.793 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 4.356e-05/0.2534, allocations: 41.69 kB / 0.7897 GB, free: 6.746 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.62e-05/0.2534, allocations: 93.14 kB / 0.7898 GB, free: 6.648 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 4.953e-05/0.2535, allocations: 39.53 kB / 0.7898 GB, free: 6.609 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001452/0.2536, allocations: 101.4 kB / 0.7899 GB, free: 6.504 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001179/0.2538, allocations: 318.8 kB / 0.7902 GB, free: 6.184 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001902/0.254, allocations: 87.94 kB / 0.7903 GB, free: 6.098 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002105/0.2542, allocations: 138 kB / 0.7905 GB, free: 5.941 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002963/0.2545, allocations: 237.2 kB / 0.7907 GB, free: 5.676 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.426e-06/0.2545, allocations: 4 kB / 0.7907 GB, free: 5.672 MB / 0.6075 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006061/0.2551, allocations: 398.6 kB / 0.7911 GB, free: 5.27 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 6.587e-05/0.2552, allocations: 75.39 kB / 0.7911 GB, free: 5.184 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.414e-06/0.2552, allocations: 3.984 kB / 0.7911 GB, free: 5.18 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.29e-05/0.2552, allocations: 4 kB / 0.7911 GB, free: 5.176 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001688/0.2554, allocations: 27.91 kB / 0.7912 GB, free: 5.148 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.785e-06/0.2554, allocations: 3.938 kB / 0.7912 GB, free: 5.145 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004492/0.2559, allocations: 59.98 kB / 0.7912 GB, free: 5.086 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.956e-05/0.2559, allocations: 43.98 kB / 0.7913 GB, free: 5.043 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.0001879/0.2561, allocations: 176.5 kB / 0.7914 GB, free: 4.863 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.574e-05/0.2562, allocations: 23.7 kB / 0.7915 GB, free: 4.84 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.937e-05/0.2562, allocations: 26.31 kB / 0.7915 GB, free: 4.816 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.181e-06/0.2563, allocations: 7.984 kB / 0.7915 GB, free: 4.809 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.2563, allocations: 4 kB / 0.7915 GB, free: 4.805 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.2563, allocations: 0 / 0.7915 GB, free: 4.805 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002007/0.2583, allocations: 0.6894 MB / 0.7922 GB, free: 4.059 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.2583, allocations: 4 kB / 0.7922 GB, free: 4.055 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.433e-05/0.2584, allocations: 7.984 kB / 0.7922 GB, free: 4.047 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.285e-06/0.2584, allocations: 0 / 0.7922 GB, free: 4.047 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.04e-05/0.2584, allocations: 15.98 kB / 0.7922 GB, free: 4.031 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/0.2584, allocations: 0 / 0.7922 GB, free: 4.031 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.474e-06/0.2584, allocations: 7.938 kB / 0.7922 GB, free: 4.023 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001573/0.26, allocations: 446.9 kB / 0.7926 GB, free: 3.57 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001786/0.2602, allocations: 164.6 kB / 0.7928 GB, free: 3.391 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.581e-05/0.2603, allocations: 12 kB / 0.7928 GB, free: 3.379 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004363/0.2607, allocations: 27.97 kB / 0.7928 GB, free: 3.352 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.023e-05/0.2607, allocations: 15.92 kB / 0.7928 GB, free: 3.336 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.315e-05/0.2608, allocations: 47.97 kB / 0.7929 GB, free: 3.289 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.000183/0.261, allocations: 205.9 kB / 0.7931 GB, free: 3.09 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.41e-07/0.261, allocations: 0 / 0.7931 GB, free: 3.09 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003212/0.2613, allocations: 51.98 kB / 0.7931 GB, free: 3.039 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.001987/0.2633, allocations: 0.9901 MB / 0.7941 GB, free: 2.023 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001167/0.2645, allocations: 394.9 kB / 0.7945 GB, free: 1.613 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.2645, allocations: 0 / 0.7945 GB, free: 1.613 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.000716/0.2652, allocations: 115.8 kB / 0.7946 GB, free: 1.5 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003466/0.2656, allocations: 24.58 kB / 0.7946 GB, free: 1.477 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003316/0.2689, allocations: 2.377 MB / 0.7969 GB, free: 14.97 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000295/0.2692, allocations: 0.7357 MB / 0.7977 GB, free: 14.21 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 6.084e-05/0.2693, allocations: 13.08 kB / 0.7977 GB, free: 14.19 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.551e-05/0.2694, allocations: 35.36 kB / 0.7977 GB, free: 14.16 MB / 0.6231 GB Notification: Performance of SimCode: time 9.52e-07/0.2694, allocations: 0 / 0.7977 GB, free: 14.16 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02148/0.2908, allocations: 4.784 MB / 0.8024 GB, free: 9.449 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.136/7.427, allocations: 7.688 kB / 0.8024 GB, free: 9.441 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)