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.001303/0.001303, allocations: 106.2 kB / 16.41 MB, free: 6.457 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.001298/0.001298, allocations: 189.7 kB / 17.34 MB, free: 5.719 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.259/1.259, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002124/0.002124, allocations: 302.6 kB / 291.5 MB, free: 14.44 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8901/0.8901, allocations: 169.2 MB / 0.499 GB, free: 4.43 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001835/0.001835, allocations: 87.86 kB / 0.6821 GB, free: 6.988 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4089/0.4107, allocations: 86.98 MB / 0.767 GB, free: 3.902 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Time.Examples.CalendarTime): time 0.002439/0.4132, allocations: 1.48 MB / 0.7685 GB, free: 2.41 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0009043/0.4141, allocations: 441 kB / 0.7689 GB, free: 1.977 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.078e-05/0.4142, allocations: 0 / 0.7689 GB, free: 1.977 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 8.749e-05/0.4143, allocations: 7.875 kB / 0.7689 GB, free: 1.969 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0001003/0.4144, allocations: 24.22 kB / 0.7689 GB, free: 1.945 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007015/0.4151, allocations: 246.3 kB / 0.7691 GB, free: 1.707 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0003978/0.4155, allocations: 331.5 kB / 0.7695 GB, free: 1.383 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 4.7e-05/0.4156, allocations: 8 kB / 0.7695 GB, free: 1.375 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000297/0.4159, allocations: 199.6 kB / 0.7697 GB, free: 1.18 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002475/0.4161, allocations: 120.1 kB / 0.7698 GB, free: 1.062 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 7.64e-05/0.4162, allocations: 20 kB / 0.7698 GB, free: 1.043 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 6.631e-05/0.4163, allocations: 16 kB / 0.7698 GB, free: 1.027 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 9.777e-05/0.4164, allocations: 79.78 kB / 0.7699 GB, free: 0.9492 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0001373/0.4165, allocations: 127.3 kB / 0.77 GB, free: 0.8242 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0002919/0.4168, allocations: 289.4 kB / 0.7703 GB, free: 0.5469 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.848e-06/0.4168, allocations: 0 / 0.7703 GB, free: 0.5469 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.092e-06/0.4169, allocations: 0 / 0.7703 GB, free: 0.5469 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 6.803e-06/0.4169, allocations: 0 / 0.7703 GB, free: 0.5469 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.001065/0.4179, allocations: 0.75 MB / 0.771 GB, free: 15.71 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.301e-05/0.418, allocations: 8.031 kB / 0.771 GB, free: 15.7 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.134e-05/0.4181, allocations: 32.66 kB / 0.771 GB, free: 15.67 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002863/0.4184, allocations: 267.5 kB / 0.7713 GB, free: 15.37 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.609e-05/0.4184, allocations: 12.38 kB / 0.7713 GB, free: 15.36 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.399e-05/0.4185, allocations: 19.92 kB / 0.7713 GB, free: 15.34 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008799/0.4194, allocations: 201.5 kB / 0.7715 GB, free: 15.14 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.042e-05/0.4194, allocations: 3.984 kB / 0.7715 GB, free: 15.13 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.597e-05/0.4194, allocations: 4 kB / 0.7715 GB, free: 15.13 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.941e-06/0.4194, allocations: 4 kB / 0.7715 GB, free: 15.12 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006827/0.4201, allocations: 95.86 kB / 0.7716 GB, free: 15.03 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003164/0.4204, allocations: 317.3 kB / 0.7719 GB, free: 14.67 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009454/0.4214, allocations: 174.4 kB / 0.7721 GB, free: 14.49 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006663/0.4221, allocations: 112.8 kB / 0.7722 GB, free: 14.38 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.956e-05/0.4221, allocations: 7.984 kB / 0.7722 GB, free: 14.37 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008364/0.4229, allocations: 206.1 kB / 0.7724 GB, free: 14.16 MB / 0.545 GB Notification: Performance of pre-optimization done (n=16): time 1.913e-06/0.4229, allocations: 0 / 0.7724 GB, free: 14.16 MB / 0.545 GB Notification: Performance of matching and sorting (n=16): time 0.002274/0.4252, allocations: 449 kB / 0.7728 GB, free: 13.71 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.627e-05/0.4253, allocations: 63.41 kB / 0.7729 GB, free: 13.64 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002641/0.4255, allocations: 290.9 kB / 0.7732 GB, free: 13.35 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 4.335e-05/0.4256, allocations: 41.69 kB / 0.7732 GB, free: 13.3 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 5.76e-05/0.4257, allocations: 89.14 kB / 0.7733 GB, free: 13.21 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 5.107e-05/0.4257, allocations: 43.48 kB / 0.7733 GB, free: 13.17 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001412/0.4259, allocations: 97.47 kB / 0.7734 GB, free: 13.07 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001052/0.426, allocations: 318.8 kB / 0.7737 GB, free: 12.75 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001898/0.4262, allocations: 83.95 kB / 0.7738 GB, free: 12.67 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001999/0.4264, allocations: 136.9 kB / 0.774 GB, free: 12.52 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003061/0.4267, allocations: 235.3 kB / 0.7742 GB, free: 12.25 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.4267, allocations: 3.938 kB / 0.7742 GB, free: 12.25 MB / 0.545 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005962/0.4273, allocations: 392.6 kB / 0.7746 GB, free: 11.85 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 7.111e-05/0.4274, allocations: 73.89 kB / 0.7746 GB, free: 11.77 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.4274, allocations: 7.875 kB / 0.7746 GB, free: 11.76 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.584e-05/0.4274, allocations: 4.188 kB / 0.7746 GB, free: 11.75 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001559/0.4276, allocations: 27.98 kB / 0.7747 GB, free: 11.73 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.097e-05/0.4276, allocations: 3.984 kB / 0.7747 GB, free: 11.72 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004046/0.428, allocations: 63.75 kB / 0.7747 GB, free: 11.66 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.758e-05/0.4281, allocations: 35.98 kB / 0.7748 GB, free: 11.62 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.0001714/0.4283, allocations: 173.7 kB / 0.7749 GB, free: 11.45 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.289e-05/0.4283, allocations: 23.72 kB / 0.7749 GB, free: 11.43 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.734e-05/0.4284, allocations: 30.3 kB / 0.775 GB, free: 11.4 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.068e-06/0.4284, allocations: 4 kB / 0.775 GB, free: 11.39 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.399e-06/0.4284, allocations: 0 / 0.775 GB, free: 11.39 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.4284, allocations: 0 / 0.775 GB, free: 11.39 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001905/0.4303, allocations: 0.7013 MB / 0.7757 GB, free: 10.63 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.4303, allocations: 0 / 0.7757 GB, free: 10.63 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.214e-05/0.4303, allocations: 4 kB / 0.7757 GB, free: 10.63 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.735e-06/0.4304, allocations: 0 / 0.7757 GB, free: 10.63 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.463e-05/0.4304, allocations: 15.97 kB / 0.7757 GB, free: 10.61 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.4304, allocations: 3.938 kB / 0.7757 GB, free: 10.61 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.415e-06/0.4304, allocations: 4 kB / 0.7757 GB, free: 10.61 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001535/0.4319, allocations: 454.7 kB / 0.7761 GB, free: 10.15 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001746/0.4321, allocations: 160.6 kB / 0.7763 GB, free: 9.973 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.654e-05/0.4322, allocations: 8 kB / 0.7763 GB, free: 9.965 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004244/0.4326, allocations: 39.95 kB / 0.7763 GB, free: 9.926 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.13e-05/0.4327, allocations: 4 kB / 0.7763 GB, free: 9.922 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.375e-05/0.4327, allocations: 47.91 kB / 0.7764 GB, free: 9.875 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001753/0.4329, allocations: 209.9 kB / 0.7766 GB, free: 9.672 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4329, allocations: 0 / 0.7766 GB, free: 9.672 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003127/0.4332, allocations: 52 kB / 0.7766 GB, free: 9.621 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.0001206/0.4334, allocations: 112.9 kB / 0.7767 GB, free: 9.5 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.001046/0.4344, allocations: 378.5 kB / 0.7771 GB, free: 9.105 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 3.857e-06/0.4344, allocations: 4 kB / 0.7771 GB, free: 9.102 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0006877/0.4351, allocations: 115.9 kB / 0.7772 GB, free: 8.988 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000322/0.4354, allocations: 25 kB / 0.7772 GB, free: 8.965 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001189/0.4366, allocations: 463.1 kB / 0.7777 GB, free: 8.48 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002656/0.4369, allocations: 0.7439 MB / 0.7784 GB, free: 7.711 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.264e-05/0.437, allocations: 15.42 kB / 0.7784 GB, free: 7.695 MB / 0.545 GB Notification: Performance of SimCode: time 3.01e-07/0.437, allocations: 0 / 0.7784 GB, free: 7.695 MB / 0.545 GB Notification: Performance of Templates: time 0.004441/0.4414, allocations: 2.879 MB / 0.7812 GB, free: 4.824 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)