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/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 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001562/0.001562, allocations: 110.5 kB / 16.41 MB, free: 6.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001638/0.001638, allocations: 189.2 kB / 17.34 MB, free: 5.762 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.543/1.543, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002574/0.002574, allocations: 282.1 kB / 291.5 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.069/1.069, allocations: 169.3 MB / 0.499 GB, free: 4.422 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002802/0.002802, allocations: 95.86 kB / 0.6821 GB, free: 6.984 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4279/0.4307, allocations: 86.97 MB / 0.767 GB, free: 3.914 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Time.Examples.CalendarTime): time 0.002642/0.4333, allocations: 1.48 MB / 0.7685 GB, free: 2.422 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001024/0.4343, allocations: 435.9 kB / 0.7689 GB, free: 1.996 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.176e-05/0.4344, allocations: 0 / 0.7689 GB, free: 1.996 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 9.251e-05/0.4345, allocations: 7.875 kB / 0.7689 GB, free: 1.988 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0001063/0.4346, allocations: 20.23 kB / 0.7689 GB, free: 1.969 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007331/0.4353, allocations: 263.9 kB / 0.7692 GB, free: 1.715 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0004018/0.4357, allocations: 315.5 kB / 0.7695 GB, free: 1.406 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 4.619e-05/0.4358, allocations: 7.984 kB / 0.7695 GB, free: 1.398 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002905/0.436, allocations: 191.7 kB / 0.7696 GB, free: 1.211 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002415/0.4363, allocations: 116.8 kB / 0.7698 GB, free: 1.098 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 6.056e-05/0.4363, allocations: 23.94 kB / 0.7698 GB, free: 1.074 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 5.254e-05/0.4364, allocations: 16 kB / 0.7698 GB, free: 1.059 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0001124/0.4365, allocations: 87.7 kB / 0.7699 GB, free: 0.9727 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.000153/0.4367, allocations: 123.4 kB / 0.77 GB, free: 0.8516 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0003492/0.437, allocations: 296.5 kB / 0.7703 GB, free: 0.5703 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 7.384e-06/0.437, allocations: 4 kB / 0.7703 GB, free: 0.5664 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.774e-06/0.437, allocations: 0 / 0.7703 GB, free: 0.5664 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 7.665e-06/0.437, allocations: 0 / 0.7703 GB, free: 0.5664 MB / 0.5294 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.001262/0.4383, allocations: 0.7539 MB / 0.771 GB, free: 15.73 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.091e-05/0.4383, allocations: 8.031 kB / 0.771 GB, free: 15.72 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.863e-05/0.4384, allocations: 32.8 kB / 0.7711 GB, free: 15.69 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000375/0.4388, allocations: 263.8 kB / 0.7713 GB, free: 15.39 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.528e-05/0.4389, allocations: 24.38 kB / 0.7713 GB, free: 15.37 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.086e-05/0.4389, allocations: 15.94 kB / 0.7713 GB, free: 15.35 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001002/0.4399, allocations: 209.4 kB / 0.7715 GB, free: 15.14 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.616e-06/0.4399, allocations: 0 / 0.7715 GB, free: 15.14 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.501e-05/0.44, allocations: 0 / 0.7715 GB, free: 15.14 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.038e-06/0.44, allocations: 0 / 0.7715 GB, free: 15.14 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007717/0.4407, allocations: 95.92 kB / 0.7716 GB, free: 15.05 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003828/0.4411, allocations: 317.4 kB / 0.7719 GB, free: 14.69 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00105/0.4422, allocations: 162.4 kB / 0.7721 GB, free: 14.52 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007292/0.4429, allocations: 96.78 kB / 0.7722 GB, free: 14.42 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 2.616e-05/0.4429, allocations: 384 / 0.7722 GB, free: 14.42 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009281/0.4439, allocations: 219.1 kB / 0.7724 GB, free: 14.2 MB / 0.545 GB Notification: Performance of pre-optimization done (n=16): time 1.453e-06/0.4439, allocations: 0 / 0.7724 GB, free: 14.2 MB / 0.545 GB Notification: Performance of matching and sorting (n=16): time 0.002567/0.4464, allocations: 452.4 kB / 0.7728 GB, free: 13.75 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.684e-05/0.4465, allocations: 63.38 kB / 0.7729 GB, free: 13.68 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003114/0.4468, allocations: 287 kB / 0.7732 GB, free: 13.39 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 5.513e-05/0.4468, allocations: 41.7 kB / 0.7732 GB, free: 13.34 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 7.254e-05/0.4469, allocations: 89.12 kB / 0.7733 GB, free: 13.25 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 5.853e-05/0.447, allocations: 47.62 kB / 0.7733 GB, free: 13.21 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001584/0.4471, allocations: 97.58 kB / 0.7734 GB, free: 13.11 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001523/0.4473, allocations: 318.8 kB / 0.7737 GB, free: 12.79 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002056/0.4475, allocations: 83.95 kB / 0.7738 GB, free: 12.7 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002325/0.4477, allocations: 136.8 kB / 0.7739 GB, free: 12.55 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003577/0.4481, allocations: 236 kB / 0.7742 GB, free: 12.29 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.27e-06/0.4481, allocations: 3.938 kB / 0.7742 GB, free: 12.29 MB / 0.545 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006921/0.4488, allocations: 392.8 kB / 0.7745 GB, free: 11.88 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 8.729e-05/0.4489, allocations: 79.38 kB / 0.7746 GB, free: 11.79 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.686e-06/0.4489, allocations: 4 kB / 0.7746 GB, free: 11.79 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.498e-05/0.4489, allocations: 0 / 0.7746 GB, free: 11.79 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001658/0.4491, allocations: 23.92 kB / 0.7746 GB, free: 11.77 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.794e-06/0.4491, allocations: 7.938 kB / 0.7747 GB, free: 11.76 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004644/0.4495, allocations: 59.83 kB / 0.7747 GB, free: 11.7 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.516e-05/0.4496, allocations: 48.05 kB / 0.7748 GB, free: 11.65 MB / 0.545 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.0002298/0.4498, allocations: 173.7 kB / 0.7749 GB, free: 11.48 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.023e-05/0.4499, allocations: 23.86 kB / 0.7749 GB, free: 11.45 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.246e-05/0.4499, allocations: 30.28 kB / 0.775 GB, free: 11.43 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.202e-06/0.4499, allocations: 4 kB / 0.775 GB, free: 11.42 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.4499, allocations: 0 / 0.775 GB, free: 11.42 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.925e-06/0.4499, allocations: 3.938 kB / 0.775 GB, free: 11.42 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002189/0.4521, allocations: 0.6936 MB / 0.7757 GB, free: 10.66 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.168e-06/0.4521, allocations: 7.938 kB / 0.7757 GB, free: 10.66 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.813e-05/0.4522, allocations: 4 kB / 0.7757 GB, free: 10.65 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.334e-06/0.4522, allocations: 0 / 0.7757 GB, free: 10.65 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.413e-05/0.4522, allocations: 19.97 kB / 0.7757 GB, free: 10.63 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.4522, allocations: 4 kB / 0.7757 GB, free: 10.63 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/0.4522, allocations: 4 kB / 0.7757 GB, free: 10.62 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001745/0.454, allocations: 443.5 kB / 0.7761 GB, free: 10.18 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002232/0.4542, allocations: 164.8 kB / 0.7763 GB, free: 9.996 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.398e-05/0.4542, allocations: 16 kB / 0.7763 GB, free: 9.98 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004791/0.4547, allocations: 27.97 kB / 0.7763 GB, free: 9.953 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.676e-05/0.4548, allocations: 7.984 kB / 0.7763 GB, free: 9.945 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.425e-05/0.4548, allocations: 47.91 kB / 0.7764 GB, free: 9.898 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0002367/0.4551, allocations: 209.9 kB / 0.7766 GB, free: 9.695 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4551, allocations: 3.938 kB / 0.7766 GB, free: 9.691 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003415/0.4554, allocations: 48 kB / 0.7766 GB, free: 9.645 MB / 0.545 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.0001689/0.4556, allocations: 117 kB / 0.7767 GB, free: 9.52 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.001184/0.4568, allocations: 357.8 kB / 0.7771 GB, free: 9.148 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.4568, allocations: 0 / 0.7771 GB, free: 9.148 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0007579/0.4575, allocations: 104.3 kB / 0.7772 GB, free: 9.047 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003539/0.4579, allocations: 23.05 kB / 0.7772 GB, free: 9.027 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001327/0.4592, allocations: 439.2 kB / 0.7776 GB, free: 8.57 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004171/0.4596, allocations: 0.7396 MB / 0.7783 GB, free: 7.805 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 6.457e-05/0.4597, allocations: 17.08 kB / 0.7784 GB, free: 7.789 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.046e-05/0.4597, allocations: 11.44 kB / 0.7784 GB, free: 7.777 MB / 0.545 GB Notification: Performance of SimCode: time 4.4e-07/0.4597, allocations: 4 kB / 0.7784 GB, free: 7.773 MB / 0.545 GB Notification: Performance of Templates: time 0.007806/0.4675, allocations: 3.669 MB / 0.782 GB, free: 4.117 MB / 0.545 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 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime.pipe 2>&1)