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.007828/0.007828, allocations: 102.3 kB / 15.73 MB, free: 5.578 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.001583/0.001584, allocations: 195.6 kB / 16.67 MB, free: 5.52 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.333/1.333, allocations: 222.9 MB / 240.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002118/0.002118, allocations: 289.3 kB / 290.8 MB, free: 14.48 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9805/0.9805, allocations: 169.2 MB / 0.4983 GB, free: 4.457 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001624/0.001624, allocations: 91.84 kB / 0.6814 GB, free: 7.008 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4464/0.448, allocations: 86.98 MB / 0.7663 GB, free: 3.926 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Time.Examples.CalendarTime): time 0.002302/0.4503, allocations: 1.476 MB / 0.7678 GB, free: 2.438 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0008592/0.4512, allocations: 433.1 kB / 0.7682 GB, free: 2.012 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.912e-05/0.4513, allocations: 4 kB / 0.7682 GB, free: 2.008 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 8.653e-05/0.4514, allocations: 11.86 kB / 0.7682 GB, free: 1.996 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 9.008e-05/0.4515, allocations: 20.23 kB / 0.7682 GB, free: 1.977 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006369/0.4521, allocations: 253.4 kB / 0.7685 GB, free: 1.73 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0003616/0.4525, allocations: 327.5 kB / 0.7688 GB, free: 1.41 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 5.67e-05/0.4526, allocations: 11.98 kB / 0.7688 GB, free: 1.398 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002669/0.4528, allocations: 203.7 kB / 0.769 GB, free: 1.199 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002417/0.4531, allocations: 116 kB / 0.7691 GB, free: 1.086 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 7.231e-05/0.4532, allocations: 20 kB / 0.7691 GB, free: 1.066 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 6.906e-05/0.4532, allocations: 20 kB / 0.7691 GB, free: 1.047 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 9.867e-05/0.4533, allocations: 79.78 kB / 0.7692 GB, free: 0.9688 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0001286/0.4535, allocations: 131.3 kB / 0.7693 GB, free: 0.8398 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0002792/0.4538, allocations: 281.4 kB / 0.7696 GB, free: 0.5703 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.437e-06/0.4538, allocations: 0 / 0.7696 GB, free: 0.5703 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.232e-06/0.4538, allocations: 0 / 0.7696 GB, free: 0.5703 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 5.32e-06/0.4538, allocations: 4 kB / 0.7696 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.001011/0.4548, allocations: 0.7422 MB / 0.7703 GB, free: 15.74 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.21e-05/0.4548, allocations: 12.03 kB / 0.7704 GB, free: 15.73 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.179e-05/0.4549, allocations: 28.66 kB / 0.7704 GB, free: 15.7 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002778/0.4552, allocations: 267.6 kB / 0.7706 GB, free: 15.4 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.839e-05/0.4553, allocations: 12.38 kB / 0.7706 GB, free: 15.39 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.872e-05/0.4553, allocations: 27.86 kB / 0.7707 GB, free: 15.36 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009514/0.4563, allocations: 204.3 kB / 0.7709 GB, free: 15.16 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.734e-06/0.4563, allocations: 4 kB / 0.7709 GB, free: 15.15 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.544e-05/0.4563, allocations: 0 / 0.7709 GB, free: 15.15 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.057e-06/0.4563, allocations: 0 / 0.7709 GB, free: 15.15 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007535/0.4571, allocations: 95.91 kB / 0.771 GB, free: 15.06 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003179/0.4574, allocations: 321.3 kB / 0.7713 GB, free: 14.7 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001092/0.4585, allocations: 174.4 kB / 0.7714 GB, free: 14.52 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007385/0.4593, allocations: 116.7 kB / 0.7715 GB, free: 14.4 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 2.143e-05/0.4593, allocations: 0 / 0.7715 GB, free: 14.4 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008717/0.4602, allocations: 210.4 kB / 0.7718 GB, free: 14.18 MB / 0.545 GB Notification: Performance of pre-optimization done (n=16): time 1.473e-06/0.4602, allocations: 4 kB / 0.7718 GB, free: 14.18 MB / 0.545 GB Notification: Performance of matching and sorting (n=16): time 0.002449/0.4627, allocations: 445.1 kB / 0.7722 GB, free: 13.74 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.587e-05/0.4627, allocations: 59.41 kB / 0.7722 GB, free: 13.67 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002589/0.463, allocations: 294.8 kB / 0.7725 GB, free: 13.38 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 4.305e-05/0.463, allocations: 37.69 kB / 0.7726 GB, free: 13.33 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 6.858e-05/0.4631, allocations: 97.12 kB / 0.7726 GB, free: 13.23 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 4.194e-05/0.4632, allocations: 39.48 kB / 0.7727 GB, free: 13.2 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001381/0.4633, allocations: 93.48 kB / 0.7728 GB, free: 13.1 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001302/0.4634, allocations: 322.8 kB / 0.7731 GB, free: 12.77 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001765/0.4636, allocations: 83.95 kB / 0.7732 GB, free: 12.69 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002056/0.4638, allocations: 136.8 kB / 0.7733 GB, free: 12.54 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002891/0.4641, allocations: 235.3 kB / 0.7735 GB, free: 12.28 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.967e-06/0.4641, allocations: 3.938 kB / 0.7735 GB, free: 12.27 MB / 0.545 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005843/0.4647, allocations: 392.6 kB / 0.7739 GB, free: 11.87 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 6.741e-05/0.4648, allocations: 75.39 kB / 0.774 GB, free: 11.79 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.949e-06/0.4648, allocations: 192 / 0.774 GB, free: 11.79 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.448e-05/0.4648, allocations: 8 kB / 0.774 GB, free: 11.78 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001543/0.465, allocations: 23.91 kB / 0.774 GB, free: 11.75 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.454e-06/0.465, allocations: 4 kB / 0.774 GB, free: 11.75 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000432/0.4655, allocations: 55.8 kB / 0.7741 GB, free: 11.7 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.534e-05/0.4655, allocations: 36 kB / 0.7741 GB, free: 11.66 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.0001815/0.4657, allocations: 177.7 kB / 0.7743 GB, free: 11.48 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.207e-05/0.4658, allocations: 27.72 kB / 0.7743 GB, free: 11.45 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.24e-05/0.4658, allocations: 38.3 kB / 0.7743 GB, free: 11.42 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/0.4658, allocations: 0 / 0.7743 GB, free: 11.42 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.4658, allocations: 0 / 0.7743 GB, free: 11.42 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.138e-06/0.4658, allocations: 0 / 0.7743 GB, free: 11.42 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002049/0.4679, allocations: 0.6974 MB / 0.775 GB, free: 10.66 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.4679, allocations: 4 kB / 0.775 GB, free: 10.66 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.252e-05/0.4679, allocations: 0 / 0.775 GB, free: 10.66 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.943e-06/0.468, allocations: 4 kB / 0.775 GB, free: 10.65 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.983e-05/0.468, allocations: 15.97 kB / 0.775 GB, free: 10.64 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.468, allocations: 0 / 0.775 GB, free: 10.64 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.468, allocations: 0 / 0.775 GB, free: 10.64 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001696/0.4697, allocations: 458.8 kB / 0.7755 GB, free: 10.18 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001716/0.4699, allocations: 160.6 kB / 0.7756 GB, free: 10 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.147e-05/0.47, allocations: 11.98 kB / 0.7756 GB, free: 9.988 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004679/0.4704, allocations: 35.97 kB / 0.7757 GB, free: 9.953 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.24e-05/0.4705, allocations: 7.984 kB / 0.7757 GB, free: 9.945 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.21e-05/0.4705, allocations: 51.86 kB / 0.7757 GB, free: 9.895 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001825/0.4707, allocations: 209.9 kB / 0.7759 GB, free: 9.691 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4707, allocations: 0 / 0.7759 GB, free: 9.691 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003037/0.471, allocations: 44 kB / 0.776 GB, free: 9.648 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.0001459/0.4712, allocations: 117 kB / 0.7761 GB, free: 9.523 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.001157/0.4724, allocations: 382.5 kB / 0.7764 GB, free: 9.125 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.4724, allocations: 0 / 0.7764 GB, free: 9.125 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0007424/0.4731, allocations: 124.2 kB / 0.7766 GB, free: 9.004 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003321/0.4735, allocations: 24.64 kB / 0.7766 GB, free: 8.98 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001329/0.4748, allocations: 419.8 kB / 0.777 GB, free: 8.543 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002847/0.4751, allocations: 0.7416 MB / 0.7777 GB, free: 7.777 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 5.714e-05/0.4752, allocations: 13.08 kB / 0.7777 GB, free: 7.766 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.139e-05/0.4752, allocations: 19.42 kB / 0.7777 GB, free: 7.746 MB / 0.545 GB Notification: Performance of SimCode: time 4.91e-07/0.4752, allocations: 4 kB / 0.7777 GB, free: 7.742 MB / 0.545 GB Notification: Performance of Templates: time 0.006699/0.4819, allocations: 3.665 MB / 0.7813 GB, free: 4.09 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 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime.pipe 2>&1)