Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Utilities.Time.Examples.CalendarTime,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime") translateModel(BuildingSystems.Utilities.Time.Examples.CalendarTime,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8729/0.8729, allocations: 143.4 MB / 159.2 MB, free: 4.949 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001109/0.001109, allocations: 176.5 kB / 191.9 MB, free: 5.723 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.406/1.406, allocations: 222.9 MB / 447.3 MB, free: 5.852 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001027/0.001027, allocations: 103.8 kB / 0.517 GB, free: 3.699 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002147/0.002147, allocations: 287.8 kB / 0.5973 GB, free: 49.36 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001663/0.001664, allocations: 75.89 kB / 0.6885 GB, free: 3.84 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4317/0.4334, allocations: 81.29 MB / 0.7679 GB, free: 27.66 MB / 458.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Time.Examples.CalendarTime): time 0.004176/0.4377, allocations: 1.544 MB / 0.7694 GB, free: 26.11 MB / 458.7 MB Notification: Performance of NFInst.instExpressions: time 0.001274/0.439, allocations: 439.4 kB / 0.7699 GB, free: 25.68 MB / 458.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.698e-05/0.4391, allocations: 0 / 0.7699 GB, free: 25.68 MB / 458.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001316/0.4392, allocations: 11.92 kB / 0.7699 GB, free: 25.66 MB / 458.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001116/0.4394, allocations: 24.23 kB / 0.7699 GB, free: 25.64 MB / 458.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006103/0.44, allocations: 218.8 kB / 0.7701 GB, free: 25.43 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002688/0.4403, allocations: 283.9 kB / 0.7704 GB, free: 25.15 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 6.059e-05/0.4404, allocations: 15.91 kB / 0.7704 GB, free: 25.14 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002411/0.4406, allocations: 210.4 kB / 0.7706 GB, free: 24.93 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001823/0.4408, allocations: 123.6 kB / 0.7707 GB, free: 24.81 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 6.148e-05/0.4409, allocations: 12 kB / 0.7707 GB, free: 24.8 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.692e-05/0.4409, allocations: 8 kB / 0.7707 GB, free: 24.79 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001089/0.441, allocations: 79.72 kB / 0.7708 GB, free: 24.71 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001521/0.4412, allocations: 119.4 kB / 0.7709 GB, free: 24.6 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003428/0.4415, allocations: 285.7 kB / 0.7712 GB, free: 24.32 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.249e-06/0.4416, allocations: 0 / 0.7712 GB, free: 24.32 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.724e-06/0.4416, allocations: 0 / 0.7712 GB, free: 24.32 MB / 458.7 MB Notification: Performance of Transformations before backend: time 6.301e-06/0.4416, allocations: 0 / 0.7712 GB, free: 24.32 MB / 458.7 MB 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.001125/0.4427, allocations: 0.6998 MB / 0.7719 GB, free: 23.55 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.098e-05/0.4428, allocations: 12.03 kB / 0.7719 GB, free: 23.54 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.939e-05/0.4429, allocations: 27.72 kB / 0.7719 GB, free: 23.51 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000312/0.4432, allocations: 266.1 kB / 0.7722 GB, free: 23.21 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.104e-05/0.4432, allocations: 12 kB / 0.7722 GB, free: 23.2 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.539e-05/0.4433, allocations: 23.98 kB / 0.7722 GB, free: 23.18 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002688/0.4435, allocations: 137.5 kB / 0.7723 GB, free: 23.04 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.088e-05/0.4436, allocations: 11.92 kB / 0.7723 GB, free: 23.02 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.451e-05/0.4436, allocations: 4 kB / 0.7723 GB, free: 23.02 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.139e-06/0.4436, allocations: 4 kB / 0.7723 GB, free: 23.02 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001198/0.4437, allocations: 43.97 kB / 0.7724 GB, free: 22.97 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000312/0.4441, allocations: 305.4 kB / 0.7727 GB, free: 22.62 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002561/0.4443, allocations: 126.7 kB / 0.7728 GB, free: 22.49 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001118/0.4444, allocations: 60.83 kB / 0.7729 GB, free: 22.43 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.689e-05/0.4445, allocations: 4 kB / 0.7729 GB, free: 22.43 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004932/0.445, allocations: 229.2 kB / 0.7731 GB, free: 22.19 MB / 458.7 MB Notification: Performance of pre-optimization done (n=18): time 1.422e-06/0.445, allocations: 0 / 0.7731 GB, free: 22.19 MB / 458.7 MB Notification: Performance of matching and sorting (n=18): time 0.0005527/0.4455, allocations: 271.7 kB / 0.7733 GB, free: 21.92 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.112e-05/0.4456, allocations: 63.39 kB / 0.7734 GB, free: 21.85 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002402/0.4458, allocations: 294.8 kB / 0.7737 GB, free: 21.55 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 3.925e-05/0.4459, allocations: 37.7 kB / 0.7737 GB, free: 21.51 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.874e-05/0.446, allocations: 93.12 kB / 0.7738 GB, free: 21.41 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.313e-05/0.446, allocations: 47.44 kB / 0.7738 GB, free: 21.37 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001343/0.4461, allocations: 101.7 kB / 0.7739 GB, free: 21.26 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 6.103e-05/0.4462, allocations: 326.8 kB / 0.7743 GB, free: 20.93 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001845/0.4464, allocations: 100.1 kB / 0.7744 GB, free: 20.83 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000206/0.4466, allocations: 150.9 kB / 0.7745 GB, free: 20.66 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000268/0.4469, allocations: 247.1 kB / 0.7747 GB, free: 20.39 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.4469, allocations: 0 / 0.7747 GB, free: 20.39 MB / 458.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005841/0.4475, allocations: 421.6 kB / 0.7751 GB, free: 19.96 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.656e-05/0.4476, allocations: 75.39 kB / 0.7752 GB, free: 19.88 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.006e-05/0.4476, allocations: 4.188 kB / 0.7752 GB, free: 19.87 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.406e-05/0.4476, allocations: 7.938 kB / 0.7752 GB, free: 19.86 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001911/0.4478, allocations: 27.91 kB / 0.7752 GB, free: 19.84 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.107e-05/0.4478, allocations: 4 kB / 0.7752 GB, free: 19.83 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004687/0.4483, allocations: 63.73 kB / 0.7753 GB, free: 19.77 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.963e-05/0.4484, allocations: 51.98 kB / 0.7754 GB, free: 19.72 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 26 (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,$whenCondition3,$whenCondition4) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001871/0.4486, allocations: 181.7 kB / 0.7755 GB, free: 19.53 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.981e-05/0.4486, allocations: 23.72 kB / 0.7756 GB, free: 19.51 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.14e-05/0.4487, allocations: 26.25 kB / 0.7756 GB, free: 19.48 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.63e-06/0.4487, allocations: 7.938 kB / 0.7756 GB, free: 19.48 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/0.4487, allocations: 0 / 0.7756 GB, free: 19.48 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.16e-06/0.4487, allocations: 0 / 0.7756 GB, free: 19.48 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000794/0.4495, allocations: 0.5567 MB / 0.7761 GB, free: 18.86 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.955e-06/0.4496, allocations: 7.984 kB / 0.7761 GB, free: 18.86 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.857e-05/0.4496, allocations: 8 kB / 0.7761 GB, free: 18.85 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.4496, allocations: 0 / 0.7761 GB, free: 18.85 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.564e-05/0.4496, allocations: 15.98 kB / 0.7762 GB, free: 18.83 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.953e-06/0.4496, allocations: 0 / 0.7762 GB, free: 18.83 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.4496, allocations: 0 / 0.7762 GB, free: 18.83 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000625/0.4503, allocations: 0.9395 MB / 0.7771 GB, free: 17.84 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000157/0.4504, allocations: 156.7 kB / 0.7772 GB, free: 17.66 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.84e-05/0.4505, allocations: 15.98 kB / 0.7772 GB, free: 17.65 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001843/0.4507, allocations: 11.98 kB / 0.7773 GB, free: 17.64 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.298e-05/0.4508, allocations: 15.98 kB / 0.7773 GB, free: 17.62 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.009e-05/0.4508, allocations: 27.98 kB / 0.7773 GB, free: 17.59 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0001512/0.451, allocations: 213.9 kB / 0.7775 GB, free: 17.39 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.451, allocations: 0 / 0.7775 GB, free: 17.39 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0003907/0.4514, allocations: 52 kB / 0.7775 GB, free: 17.34 MB / 458.7 MB 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 (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.0001375/0.4515, allocations: 120.9 kB / 0.7777 GB, free: 17.21 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0004909/0.452, allocations: 343.6 kB / 0.778 GB, free: 16.85 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.452, allocations: 0 / 0.778 GB, free: 16.85 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001371/0.4522, allocations: 72.84 kB / 0.7781 GB, free: 16.78 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003463/0.4525, allocations: 20.88 kB / 0.7781 GB, free: 16.76 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007404/0.4533, allocations: 0.606 MB / 0.7787 GB, free: 16.11 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002092/0.4535, allocations: 0.7538 MB / 0.7794 GB, free: 15.34 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0001243/0.4536, allocations: 33.42 kB / 0.7794 GB, free: 15.3 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001099/0.4538, allocations: 47.36 kB / 0.7795 GB, free: 15.25 MB / 458.7 MB Notification: Performance of SimCode: time 5.41e-07/0.4538, allocations: 3.938 kB / 0.7795 GB, free: 15.25 MB / 458.7 MB Notification: Performance of Templates: time 0.0064/0.4602, allocations: 4.153 MB / 0.7835 GB, free: 11.1 MB / 458.7 MB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime.sim & ./BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime.pipe 2>&1)