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.8339/0.8339, allocations: 141.8 MB / 149.3 MB, free: 9.191 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.001104/0.001104, allocations: 179.8 kB / 182.2 MB, free: 9.453 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.369/1.369, allocations: 221.5 MB / 436.4 MB, free: 13.3 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.00096/0.00096, allocations: 99.5 kB / 0.5074 GB, free: 10.14 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001794/0.001794, allocations: 280.4 kB / 0.5889 GB, free: 54.64 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 2.199e-05/2.209e-05, allocations: 4 kB / 0.6765 GB, free: 12.82 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3678/0.3678, allocations: 82.77 MB / 0.7574 GB, free: 32 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1263/0.4942, allocations: 109.8 MB / 0.8646 GB, free: 2.074 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002036/0.4945, allocations: 75.83 kB / 0.8646 GB, free: 2.004 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.01392/0.5084, allocations: 4.446 MB / 0.869 GB, free: 13.56 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.232e-06/0.5084, allocations: 0 / 0.869 GB, free: 13.56 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 1.444e-05/0.5085, allocations: 4 kB / 0.869 GB, free: 13.56 MB / 0.5417 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.0009274/0.5094, allocations: 0.5797 MB / 0.8696 GB, free: 12.91 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.739e-05/0.5094, allocations: 12.03 kB / 0.8696 GB, free: 12.9 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001125/0.5096, allocations: 35.61 kB / 0.8696 GB, free: 12.86 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003537/0.5099, allocations: 254.5 kB / 0.8698 GB, free: 12.57 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.653e-05/0.51, allocations: 11.95 kB / 0.8698 GB, free: 12.56 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.578e-05/0.51, allocations: 12 kB / 0.8699 GB, free: 12.55 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001166/0.5102, allocations: 39.98 kB / 0.8699 GB, free: 12.51 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000229/0.5104, allocations: 141.5 kB / 0.87 GB, free: 12.37 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.386e-06/0.5104, allocations: 3.984 kB / 0.87 GB, free: 12.36 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.484e-05/0.5104, allocations: 0 / 0.87 GB, free: 12.36 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.952e-06/0.5105, allocations: 7.938 kB / 0.87 GB, free: 12.36 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003687/0.5108, allocations: 305.8 kB / 0.8703 GB, free: 12.02 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002188/0.5111, allocations: 114.7 kB / 0.8704 GB, free: 11.9 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.995e-05/0.5112, allocations: 56.84 kB / 0.8705 GB, free: 11.84 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 2.415e-05/0.5112, allocations: 0 / 0.8705 GB, free: 11.84 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003825/0.5116, allocations: 212.1 kB / 0.8707 GB, free: 11.62 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=18): time 1.854e-06/0.5116, allocations: 0 / 0.8707 GB, free: 11.62 MB / 0.5417 GB Notification: Performance of matching and sorting (n=18): time 0.0004177/0.512, allocations: 211 kB / 0.8709 GB, free: 11.41 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.709e-05/0.5121, allocations: 63.39 kB / 0.871 GB, free: 11.33 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002454/0.5123, allocations: 238.3 kB / 0.8712 GB, free: 11.09 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 5.669e-05/0.5124, allocations: 33.7 kB / 0.8712 GB, free: 11.05 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 7.422e-05/0.5125, allocations: 93.44 kB / 0.8713 GB, free: 10.96 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 5.485e-05/0.5125, allocations: 47.44 kB / 0.8714 GB, free: 10.91 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.598e-05/0.5126, allocations: 4 kB / 0.8714 GB, free: 10.91 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001126/0.5127, allocations: 326.8 kB / 0.8717 GB, free: 10.58 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000195/0.5129, allocations: 80.22 kB / 0.8718 GB, free: 10.5 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002128/0.5131, allocations: 142.1 kB / 0.8719 GB, free: 10.34 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001745/0.5133, allocations: 72.7 kB / 0.872 GB, free: 10.27 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.5133, allocations: 0 / 0.872 GB, free: 10.27 MB / 0.5417 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006086/0.5139, allocations: 314.1 kB / 0.8723 GB, free: 9.957 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 6.808e-05/0.514, allocations: 75.39 kB / 0.8723 GB, free: 9.871 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.646e-06/0.514, allocations: 7.953 kB / 0.8723 GB, free: 9.863 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.569e-05/0.514, allocations: 4 kB / 0.8723 GB, free: 9.859 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000179/0.5142, allocations: 28.09 kB / 0.8724 GB, free: 9.832 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.555e-06/0.5143, allocations: 8 kB / 0.8724 GB, free: 9.824 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003949/0.5147, allocations: 43.81 kB / 0.8724 GB, free: 9.781 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.238e-05/0.5147, allocations: 51.98 kB / 0.8725 GB, free: 9.73 MB / 0.5417 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 () * 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.0001368/0.5149, allocations: 128 kB / 0.8726 GB, free: 9.598 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.051e-05/0.515, allocations: 27.7 kB / 0.8726 GB, free: 9.57 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.165e-05/0.515, allocations: 34.03 kB / 0.8726 GB, free: 9.535 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.118e-06/0.515, allocations: 3.953 kB / 0.8726 GB, free: 9.531 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.515, allocations: 0 / 0.8726 GB, free: 9.531 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.626e-06/0.5151, allocations: 0 / 0.8726 GB, free: 9.531 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007011/0.5158, allocations: 0.5159 MB / 0.8732 GB, free: 8.973 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.913e-06/0.5158, allocations: 0 / 0.8732 GB, free: 8.973 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.98e-05/0.5158, allocations: 15.98 kB / 0.8732 GB, free: 8.957 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.4e-06/0.5158, allocations: 3.953 kB / 0.8732 GB, free: 8.953 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.508e-05/0.5159, allocations: 15.98 kB / 0.8732 GB, free: 8.938 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.964e-06/0.5159, allocations: 0 / 0.8732 GB, free: 8.938 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.5159, allocations: 0 / 0.8732 GB, free: 8.938 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003646/0.5163, allocations: 299.1 kB / 0.8735 GB, free: 8.629 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001721/0.5164, allocations: 168.6 kB / 0.8736 GB, free: 8.445 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.859e-05/0.5165, allocations: 11.95 kB / 0.8736 GB, free: 8.434 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001936/0.5167, allocations: 11.98 kB / 0.8737 GB, free: 8.422 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.61e-05/0.5168, allocations: 19.91 kB / 0.8737 GB, free: 8.402 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.02e-05/0.5168, allocations: 31.98 kB / 0.8737 GB, free: 8.371 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0001639/0.517, allocations: 194 kB / 0.8739 GB, free: 8.18 MB / 0.5417 GB Notification: Performance of sort global known variables: time 2.1e-07/0.517, allocations: 0 / 0.8739 GB, free: 8.18 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0003456/0.5174, allocations: 48.36 kB / 0.8739 GB, free: 8.133 MB / 0.5417 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) * 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.000144/0.5175, allocations: 117 kB / 0.874 GB, free: 8.012 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0004744/0.518, allocations: 328.4 kB / 0.8744 GB, free: 7.668 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.518, allocations: 384 / 0.8744 GB, free: 7.668 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0001082/0.5181, allocations: 67.98 kB / 0.8744 GB, free: 7.602 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002543/0.5184, allocations: 21.47 kB / 0.8744 GB, free: 7.578 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005043/0.5189, allocations: 278.2 kB / 0.8747 GB, free: 7.289 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003444/0.5193, allocations: 0.7513 MB / 0.8754 GB, free: 6.508 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0001416/0.5194, allocations: 29.22 kB / 0.8755 GB, free: 6.48 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001206/0.5195, allocations: 39.41 kB / 0.8755 GB, free: 6.441 MB / 0.5417 GB Notification: Performance of SimCode: time 4.5e-07/0.5195, allocations: 0 / 0.8755 GB, free: 6.441 MB / 0.5417 GB Notification: Performance of Templates: time 0.007717/0.5273, allocations: 4.174 MB / 0.8796 GB, free: 2.27 MB / 0.5417 GB 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)