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.001318/0.001318, allocations: 108.4 kB / 16.41 MB, free: 6.008 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.001327/0.001327, allocations: 184.1 kB / 17.34 MB, free: 5.629 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.266/1.266, allocations: 222.9 MB / 241 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002086/0.002086, allocations: 290.3 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 0.9215/0.9215, allocations: 169.3 MB / 0.499 GB, free: 4.441 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001909/0.001909, allocations: 91.84 kB / 0.6821 GB, free: 7.012 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4005/0.4024, allocations: 86.99 MB / 0.767 GB, free: 3.945 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Time.Examples.CalendarTime): time 0.002249/0.4047, allocations: 1.476 MB / 0.7685 GB, free: 2.457 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0008452/0.4056, allocations: 433 kB / 0.7689 GB, free: 2.031 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.728e-05/0.4056, allocations: 0 / 0.7689 GB, free: 2.031 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 8.467e-05/0.4057, allocations: 11.86 kB / 0.7689 GB, free: 2.02 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 9.41e-05/0.4058, allocations: 24.22 kB / 0.7689 GB, free: 1.996 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005846/0.4064, allocations: 250.8 kB / 0.7691 GB, free: 1.754 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0003313/0.4068, allocations: 331.5 kB / 0.7695 GB, free: 1.43 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 4.538e-05/0.4068, allocations: 8 kB / 0.7695 GB, free: 1.422 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002442/0.4071, allocations: 195.7 kB / 0.7697 GB, free: 1.23 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002188/0.4073, allocations: 112.1 kB / 0.7698 GB, free: 1.121 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 7.252e-05/0.4074, allocations: 16 kB / 0.7698 GB, free: 1.105 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 7.309e-05/0.4074, allocations: 24 kB / 0.7698 GB, free: 1.082 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 9.598e-05/0.4075, allocations: 83.77 kB / 0.7699 GB, free: 1 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0001151/0.4077, allocations: 127.3 kB / 0.77 GB, free: 0.875 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0002763/0.4079, allocations: 293.3 kB / 0.7703 GB, free: 0.5938 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.93e-06/0.408, allocations: 4 kB / 0.7703 GB, free: 0.5898 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.433e-06/0.408, allocations: 0 / 0.7703 GB, free: 0.5898 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 6.102e-06/0.408, allocations: 3.938 kB / 0.7703 GB, free: 0.5859 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.409, allocations: 0.7422 MB / 0.771 GB, free: 15.76 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.271e-05/0.409, allocations: 8.031 kB / 0.771 GB, free: 15.75 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.298e-05/0.4091, allocations: 36.66 kB / 0.7711 GB, free: 15.71 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002741/0.4094, allocations: 255.6 kB / 0.7713 GB, free: 15.43 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.298e-05/0.4095, allocations: 20.36 kB / 0.7713 GB, free: 15.41 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.602e-05/0.4095, allocations: 19.94 kB / 0.7713 GB, free: 15.39 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009477/0.4105, allocations: 201.4 kB / 0.7715 GB, free: 15.18 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.863e-06/0.4105, allocations: 0 / 0.7715 GB, free: 15.18 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.624e-05/0.4105, allocations: 3.984 kB / 0.7715 GB, free: 15.18 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.058e-06/0.4105, allocations: 4 kB / 0.7715 GB, free: 15.18 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007347/0.4113, allocations: 95.91 kB / 0.7716 GB, free: 15.08 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003175/0.4116, allocations: 317.3 kB / 0.7719 GB, free: 14.72 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009944/0.4126, allocations: 178.4 kB / 0.7721 GB, free: 14.54 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007121/0.4133, allocations: 108.2 kB / 0.7722 GB, free: 14.43 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 2.336e-05/0.4134, allocations: 3.984 kB / 0.7722 GB, free: 14.43 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008824/0.4142, allocations: 230 kB / 0.7724 GB, free: 14.2 MB / 0.545 GB Notification: Performance of pre-optimization done (n=16): time 1.452e-06/0.4143, allocations: 0 / 0.7724 GB, free: 14.2 MB / 0.545 GB Notification: Performance of matching and sorting (n=16): time 0.002435/0.4167, allocations: 441.1 kB / 0.7728 GB, free: 13.76 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.423e-05/0.4167, allocations: 55.41 kB / 0.7729 GB, free: 13.69 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002656/0.417, allocations: 294.9 kB / 0.7732 GB, free: 13.4 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 4.919e-05/0.4171, allocations: 41.7 kB / 0.7732 GB, free: 13.35 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 5.797e-05/0.4171, allocations: 89.14 kB / 0.7733 GB, free: 13.26 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 4.083e-05/0.4172, allocations: 39.48 kB / 0.7733 GB, free: 13.22 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001311/0.4173, allocations: 97.48 kB / 0.7734 GB, free: 13.12 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001007/0.4174, allocations: 318.8 kB / 0.7737 GB, free: 12.8 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002141/0.4177, allocations: 87.94 kB / 0.7738 GB, free: 12.71 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002049/0.4179, allocations: 140.8 kB / 0.774 GB, free: 12.56 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000292/0.4182, allocations: 235.9 kB / 0.7742 GB, free: 12.3 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/0.4182, 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.0005649/0.4188, allocations: 392.5 kB / 0.7746 GB, free: 11.89 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 6.521e-05/0.4188, allocations: 75.39 kB / 0.7746 GB, free: 11.8 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.4188, allocations: 0 / 0.7746 GB, free: 11.8 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.833e-05/0.4189, allocations: 7.984 kB / 0.7746 GB, free: 11.8 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001636/0.419, allocations: 23.92 kB / 0.7747 GB, free: 11.77 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.013e-06/0.419, allocations: 0 / 0.7747 GB, free: 11.77 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000436/0.4195, allocations: 59.98 kB / 0.7747 GB, free: 11.71 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.764e-05/0.4196, allocations: 43.98 kB / 0.7748 GB, free: 11.67 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.0001641/0.4197, allocations: 169.7 kB / 0.7749 GB, free: 11.5 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.963e-05/0.4198, allocations: 23.72 kB / 0.775 GB, free: 11.48 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.814e-05/0.4198, allocations: 30.3 kB / 0.775 GB, free: 11.45 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.005e-06/0.4198, allocations: 0 / 0.775 GB, free: 11.45 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.502e-06/0.4198, allocations: 7.938 kB / 0.775 GB, free: 11.44 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.024e-06/0.4199, allocations: 7.984 kB / 0.775 GB, free: 11.43 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002019/0.4219, allocations: 0.6896 MB / 0.7757 GB, free: 10.68 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-06/0.4219, allocations: 0 / 0.7757 GB, free: 10.68 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.905e-05/0.4219, allocations: 7.984 kB / 0.7757 GB, free: 10.68 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.422, allocations: 4 kB / 0.7757 GB, free: 10.67 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.754e-05/0.422, allocations: 15.98 kB / 0.7757 GB, free: 10.66 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.422, allocations: 0 / 0.7757 GB, free: 10.66 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.422, allocations: 0 / 0.7757 GB, free: 10.66 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001639/0.4236, allocations: 454.8 kB / 0.7761 GB, free: 10.2 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001516/0.4238, allocations: 156.6 kB / 0.7763 GB, free: 10.03 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.647e-05/0.4239, allocations: 19.98 kB / 0.7763 GB, free: 10.01 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004596/0.4243, allocations: 27.97 kB / 0.7763 GB, free: 9.98 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.945e-05/0.4244, allocations: 11.97 kB / 0.7763 GB, free: 9.969 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.97e-05/0.4244, allocations: 51.91 kB / 0.7764 GB, free: 9.918 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.000168/0.4246, allocations: 213.9 kB / 0.7766 GB, free: 9.711 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4246, allocations: 0 / 0.7766 GB, free: 9.711 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002937/0.4249, allocations: 47.98 kB / 0.7766 GB, free: 9.664 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.0001213/0.425, allocations: 117 kB / 0.7767 GB, free: 9.539 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.001111/0.4262, allocations: 378.7 kB / 0.7771 GB, free: 9.145 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.4262, allocations: 4.125 kB / 0.7771 GB, free: 9.141 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0007452/0.4269, allocations: 111.9 kB / 0.7772 GB, free: 9.031 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003171/0.4272, allocations: 20.64 kB / 0.7772 GB, free: 9.012 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001211/0.4285, allocations: 469.4 kB / 0.7777 GB, free: 8.52 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002552/0.4287, allocations: 0.7322 MB / 0.7784 GB, free: 7.762 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.296e-05/0.4288, allocations: 23.42 kB / 0.7784 GB, free: 7.738 MB / 0.545 GB Notification: Performance of SimCode: time 2.4e-07/0.4288, allocations: 4 kB / 0.7784 GB, free: 7.734 MB / 0.545 GB Notification: Performance of Templates: time 0.003947/0.4327, allocations: 2.858 MB / 0.7812 GB, free: 4.887 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)