Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Utilities.Time.Examples.CalendarTime.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Time.Examples.CalendarTime,fileNamePrefix="Buildings_8_0_0_Buildings_Utilities_Time_Examples_CalendarTime",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Time.Examples.CalendarTime,fileNamePrefix="Buildings_8_0_0_Buildings_Utilities_Time_Examples_CalendarTime",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 3.016/3.016, allocations: 287.5 MB / 302.4 MB, free: 8.293 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001285/0.001285, allocations: 177 kB / 371 MB, free: 10.84 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.173/2.173, allocations: 205.4 MB / 0.6297 GB, free: 10.56 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001423/0.001422, allocations: 97.38 kB / 0.743 GB, free: 6.559 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0006641/0.0006645, allocations: 10.78 kB / 0.8659 GB, free: 140.9 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2736/0.2744, allocations: 115.3 MB / 0.9784 GB, free: 28.24 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.001715/0.2761, allocations: 1.183 MB / 0.9796 GB, free: 27.05 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001083/0.2773, allocations: 415.9 kB / 0.98 GB, free: 26.64 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.84e-05/0.2774, allocations: 0 / 0.98 GB, free: 26.64 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.000102/0.2775, allocations: 3.938 kB / 0.98 GB, free: 26.64 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0001144/0.2776, allocations: 23.91 kB / 0.98 GB, free: 26.61 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009469/0.2786, allocations: 209.8 kB / 0.9802 GB, free: 26.41 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.000314/0.2789, allocations: 239.5 kB / 0.9804 GB, free: 26.18 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 6.22e-05/0.279, allocations: 15.98 kB / 0.9805 GB, free: 26.16 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004578/0.2795, allocations: 215.6 kB / 0.9807 GB, free: 25.95 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002833/0.2798, allocations: 131.7 kB / 0.9808 GB, free: 25.82 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 0.0001172/0.2799, allocations: 12 kB / 0.9808 GB, free: 25.81 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001176/0.28, allocations: 8 kB / 0.9808 GB, free: 25.8 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 0.0001206/0.2802, allocations: 79.77 kB / 0.9809 GB, free: 25.72 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 9.063e-05/0.2803, allocations: 69.58 kB / 0.981 GB, free: 25.65 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0002604/0.2805, allocations: 199.9 kB / 0.9811 GB, free: 25.45 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 6.753e-06/0.2806, allocations: 4 kB / 0.9811 GB, free: 25.45 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.255e-06/0.2806, allocations: 3.938 kB / 0.9812 GB, free: 25.45 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 5.431e-06/0.2806, allocations: 0 / 0.9812 GB, free: 25.45 MB / 0.6198 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.001325/0.2819, allocations: 0.6103 MB / 0.9817 GB, free: 24.76 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.743e-05/0.282, allocations: 12.02 kB / 0.9818 GB, free: 24.75 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.557e-05/0.2821, allocations: 42.55 kB / 0.9818 GB, free: 24.7 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001098/0.2822, allocations: 39.67 kB / 0.9818 GB, free: 24.66 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003301/0.2825, allocations: 250.5 kB / 0.9821 GB, free: 24.38 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.673e-05/0.2826, allocations: 11.98 kB / 0.9821 GB, free: 24.36 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.322e-05/0.2827, allocations: 20 kB / 0.9821 GB, free: 24.34 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003979/0.2831, allocations: 149.5 kB / 0.9823 GB, free: 24.19 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.022e-05/0.2831, allocations: 0 / 0.9823 GB, free: 24.19 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.834e-05/0.2832, allocations: 7.984 kB / 0.9823 GB, free: 24.18 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.183e-06/0.2832, allocations: 4 kB / 0.9823 GB, free: 24.18 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001956/0.2834, allocations: 43.97 kB / 0.9823 GB, free: 24.14 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004/0.2838, allocations: 317.3 kB / 0.9826 GB, free: 23.78 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003929/0.2842, allocations: 127.8 kB / 0.9827 GB, free: 23.64 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001912/0.2844, allocations: 60.77 kB / 0.9828 GB, free: 23.58 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 3.279e-05/0.2845, allocations: 4 kB / 0.9828 GB, free: 23.58 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005995/0.2851, allocations: 217.5 kB / 0.983 GB, free: 23.36 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=18): time 2.465e-06/0.2851, allocations: 3.938 kB / 0.983 GB, free: 23.35 MB / 0.6198 GB Notification: Performance of matching and sorting (n=18): time 0.0008233/0.2859, allocations: 267.7 kB / 0.9833 GB, free: 23.09 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.228e-05/0.286, allocations: 63.39 kB / 0.9833 GB, free: 23.01 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003595/0.2864, allocations: 294.9 kB / 0.9836 GB, free: 22.72 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 6.353e-05/0.2864, allocations: 33.7 kB / 0.9836 GB, free: 22.68 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 6.843e-05/0.2865, allocations: 101.1 kB / 0.9837 GB, free: 22.58 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 5.841e-05/0.2866, allocations: 39.5 kB / 0.9838 GB, free: 22.54 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.763e-05/0.2866, allocations: 8 kB / 0.9838 GB, free: 22.53 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 6.899e-05/0.2867, allocations: 326.8 kB / 0.9841 GB, free: 22.2 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003362/0.2871, allocations: 96.17 kB / 0.9842 GB, free: 22.11 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003654/0.2874, allocations: 146.4 kB / 0.9843 GB, free: 21.94 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003236/0.2878, allocations: 148.1 kB / 0.9845 GB, free: 21.78 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.989e-06/0.2878, allocations: 3.984 kB / 0.9845 GB, free: 21.78 MB / 0.6198 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.001015/0.2888, allocations: 408.7 kB / 0.9849 GB, free: 21.36 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 7.992e-05/0.2889, allocations: 79.38 kB / 0.9849 GB, free: 21.27 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.107e-06/0.2889, allocations: 4 kB / 0.9849 GB, free: 21.27 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.966e-05/0.289, allocations: 0 / 0.9849 GB, free: 21.27 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002722/0.2892, allocations: 27.92 kB / 0.985 GB, free: 21.24 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.748e-06/0.2893, allocations: 0 / 0.985 GB, free: 21.24 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009327/0.2902, allocations: 79.97 kB / 0.985 GB, free: 21.16 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001033/0.2903, allocations: 51.98 kB / 0.9851 GB, free: 21.11 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 26 ($PRE.calendarTime2016.firstHourSampling,calendarTime2016.firstHourSampling,$PRE.calendarTime2016.firstDaySampling,calendarTime2016.firstDaySampling,$whenCondition1,calendarTime2016.daySampleTrigger,$whenCondition2,calendarTime2016.hourSampleTrigger,$whenCondition4,$whenCondition3,$PRE.calendarTime2016.year,calendarTime2016.year,$PRE.calendarTime2016.month,calendarTime2016.month,$PRE.calendarTime2016.day,calendarTime2016.day,$PRE.calendarTime2016.hour,calendarTime2016.hour,$PRE.calendarTime2016.weekDay,calendarTime2016.weekDay,$PRE.calendarTime2016.daysSinceEpoch,calendarTime2016.daysSinceEpoch,$PRE.calendarTime2016.yearIndex,calendarTime2016.yearIndex,$PRE.calendarTime2016.epochLastMonth,calendarTime2016.epochLastMonth) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002628/0.2906, allocations: 179 kB / 0.9853 GB, free: 20.93 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.066e-05/0.2907, allocations: 27.62 kB / 0.9853 GB, free: 20.9 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.319e-05/0.2908, allocations: 26.25 kB / 0.9853 GB, free: 20.88 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.253e-06/0.2908, allocations: 4 kB / 0.9853 GB, free: 20.87 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.873e-06/0.2908, allocations: 7.938 kB / 0.9853 GB, free: 20.86 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.643e-06/0.2908, allocations: 3.984 kB / 0.9853 GB, free: 20.86 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001041/0.2919, allocations: 0.5684 MB / 0.9859 GB, free: 20.23 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.067e-06/0.2919, allocations: 0 / 0.9859 GB, free: 20.23 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.702e-05/0.292, allocations: 8 kB / 0.9859 GB, free: 20.23 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.811e-06/0.292, allocations: 0 / 0.9859 GB, free: 20.23 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.678e-05/0.292, allocations: 15.97 kB / 0.9859 GB, free: 20.21 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.83e-06/0.2921, allocations: 7.938 kB / 0.9859 GB, free: 20.2 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.2921, allocations: 0 / 0.9859 GB, free: 20.2 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005557/0.2926, allocations: 321.4 kB / 0.9862 GB, free: 19.88 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002121/0.2929, allocations: 156.7 kB / 0.9864 GB, free: 19.7 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.865e-05/0.2929, allocations: 8 kB / 0.9864 GB, free: 19.7 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003462/0.2933, allocations: 11.98 kB / 0.9864 GB, free: 19.68 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.185e-05/0.2934, allocations: 23.91 kB / 0.9864 GB, free: 19.66 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.749e-05/0.2935, allocations: 27.98 kB / 0.9864 GB, free: 19.63 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0002343/0.2937, allocations: 209.9 kB / 0.9866 GB, free: 19.43 MB / 0.6198 GB Notification: Performance of sort global known variables: time 4e-07/0.2937, allocations: 0 / 0.9866 GB, free: 19.43 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0005387/0.2943, allocations: 51.95 kB / 0.9867 GB, free: 19.38 MB / 0.6198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 16 (calendarTime2016.hourSampleTrigger,calendarTime2016.daySampleTrigger,$whenCondition4,$whenCondition3,$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.firstHourSampling,calendarTime2016.hour,calendarTime2016.yearIndex,calendarTime2016.epochLastMonth,calendarTime2016.month,calendarTime2016.year) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 10 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008642/0.2951, allocations: 0.8621 MB / 0.9875 GB, free: 18.48 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0008052/0.296, allocations: 352 kB / 0.9879 GB, free: 18.12 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.296, allocations: 0 / 0.9879 GB, free: 18.12 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0002148/0.2962, allocations: 71.91 kB / 0.9879 GB, free: 18.05 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004594/0.2967, allocations: 20.88 kB / 0.9879 GB, free: 18.02 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002591/0.2993, allocations: 1.178 MB / 0.9891 GB, free: 16.78 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002249/0.2996, allocations: 0.7468 MB / 0.9898 GB, free: 16.01 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0002182/0.2998, allocations: 33.44 kB / 0.9899 GB, free: 15.97 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000203/0.3, allocations: 47.41 kB / 0.9899 GB, free: 15.93 MB / 0.6198 GB Notification: Performance of SimCode: time 1.052e-06/0.3, allocations: 0 / 0.9899 GB, free: 15.93 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02901/0.329, allocations: 5.006 MB / 0.9948 GB, free: 11.06 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002307/0.3293, allocations: 180 kB / 0.995 GB, free: 10.82 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.726/3.056, allocations: 0 / 0.995 GB, free: 10.82 MB / 0.6198 GB (rm -f Buildings_8.0.0_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; mkfifo Buildings_8.0.0_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Utilities.Time.Examples.CalendarTime.pipe >> ../files/Buildings_8.0.0_Buildings.Utilities.Time.Examples.CalendarTime.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Utilities_Time_Examples_CalendarTime_fmu --startTime=0 --stopTime=1e+08 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Utilities_Time_Examples_CalendarTime.fmu > Buildings_8.0.0_Buildings.Utilities.Time.Examples.CalendarTime.pipe 2>&1)