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.008689/0.008689, 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.00202/0.00202, allocations: 194.5 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.374/1.374, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002383/0.002383, allocations: 292.8 kB / 290.8 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.01/1.01, allocations: 169.2 MB / 0.4983 GB, free: 4.453 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001813/0.001813, allocations: 91.86 kB / 0.6814 GB, free: 7.027 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4594/0.4612, allocations: 86.99 MB / 0.7664 GB, free: 3.953 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Time.Examples.CalendarTime): time 0.002619/0.4639, allocations: 1.472 MB / 0.7678 GB, free: 2.469 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001021/0.4649, allocations: 437 kB / 0.7682 GB, free: 2.039 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.343e-05/0.465, allocations: 0 / 0.7682 GB, free: 2.039 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0001021/0.4651, allocations: 7.875 kB / 0.7682 GB, free: 2.031 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0001254/0.4653, allocations: 24.22 kB / 0.7682 GB, free: 2.008 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008241/0.4661, allocations: 256.1 kB / 0.7685 GB, free: 1.762 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0004293/0.4666, allocations: 335.4 kB / 0.7688 GB, free: 1.434 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 4.128e-05/0.4666, allocations: 4 kB / 0.7688 GB, free: 1.43 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003042/0.4669, allocations: 199.7 kB / 0.769 GB, free: 1.234 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002537/0.4672, allocations: 112.1 kB / 0.7691 GB, free: 1.125 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 6.558e-05/0.4673, allocations: 20 kB / 0.7691 GB, free: 1.105 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 5.036e-05/0.4673, allocations: 20 kB / 0.7691 GB, free: 1.086 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0001001/0.4674, allocations: 75.78 kB / 0.7692 GB, free: 1.012 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0001424/0.4676, allocations: 135.3 kB / 0.7693 GB, free: 0.8789 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0003054/0.4679, allocations: 285.4 kB / 0.7696 GB, free: 0.6055 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.4679, allocations: 3.938 kB / 0.7696 GB, free: 0.6016 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.142e-06/0.4679, allocations: 0 / 0.7696 GB, free: 0.6016 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 6.933e-06/0.4679, allocations: 4 kB / 0.7696 GB, free: 0.5977 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.001139/0.4691, allocations: 0.7461 MB / 0.7704 GB, free: 15.77 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.78e-05/0.4691, allocations: 12.03 kB / 0.7704 GB, free: 15.75 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001053/0.4692, allocations: 28.66 kB / 0.7704 GB, free: 15.73 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000332/0.4696, allocations: 259.6 kB / 0.7706 GB, free: 15.43 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.182e-05/0.4696, allocations: 12.38 kB / 0.7707 GB, free: 15.42 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.258e-05/0.4697, allocations: 27.92 kB / 0.7707 GB, free: 15.39 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009165/0.4706, allocations: 197.5 kB / 0.7709 GB, free: 15.2 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.195e-06/0.4706, allocations: 0 / 0.7709 GB, free: 15.2 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.57e-05/0.4706, allocations: 7.984 kB / 0.7709 GB, free: 15.19 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.208e-06/0.4707, allocations: 3.938 kB / 0.7709 GB, free: 15.18 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00069/0.4714, allocations: 91.92 kB / 0.771 GB, free: 15.09 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003313/0.4717, allocations: 325.3 kB / 0.7713 GB, free: 14.73 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009234/0.4726, allocations: 170.4 kB / 0.7714 GB, free: 14.55 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006759/0.4733, allocations: 112.8 kB / 0.7715 GB, free: 14.44 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 2.216e-05/0.4733, allocations: 3.984 kB / 0.7715 GB, free: 14.43 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008223/0.4742, allocations: 218 kB / 0.7718 GB, free: 14.21 MB / 0.545 GB Notification: Performance of pre-optimization done (n=16): time 1.653e-06/0.4742, allocations: 4 kB / 0.7718 GB, free: 14.21 MB / 0.545 GB Notification: Performance of matching and sorting (n=16): time 0.002295/0.4765, allocations: 445.1 kB / 0.7722 GB, free: 13.77 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.794e-05/0.4765, allocations: 59.41 kB / 0.7722 GB, free: 13.7 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002738/0.4768, allocations: 290.9 kB / 0.7725 GB, free: 13.41 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 4.125e-05/0.4769, allocations: 37.69 kB / 0.7726 GB, free: 13.36 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 6.568e-05/0.4769, allocations: 97.08 kB / 0.7726 GB, free: 13.27 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 4.215e-05/0.477, allocations: 39.48 kB / 0.7727 GB, free: 13.23 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001413/0.4771, allocations: 93.48 kB / 0.7728 GB, free: 13.13 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001226/0.4773, allocations: 322.8 kB / 0.7731 GB, free: 12.8 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000192/0.4775, allocations: 83.95 kB / 0.7732 GB, free: 12.72 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002169/0.4777, allocations: 140.8 kB / 0.7733 GB, free: 12.57 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003101/0.478, allocations: 235.5 kB / 0.7735 GB, free: 12.3 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.428e-06/0.478, allocations: 3.938 kB / 0.7735 GB, free: 12.3 MB / 0.545 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006551/0.4787, allocations: 396.5 kB / 0.7739 GB, free: 11.89 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 6.416e-05/0.4788, allocations: 75.39 kB / 0.774 GB, free: 11.81 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.4788, allocations: 4.188 kB / 0.774 GB, free: 11.8 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.598e-05/0.4788, allocations: 4 kB / 0.774 GB, free: 11.8 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001621/0.479, allocations: 15.98 kB / 0.774 GB, free: 11.79 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.321e-05/0.479, allocations: 11.92 kB / 0.774 GB, free: 11.77 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004316/0.4794, allocations: 51.81 kB / 0.7741 GB, free: 11.72 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.21e-05/0.4795, allocations: 43.98 kB / 0.7741 GB, free: 11.68 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.000169/0.4797, allocations: 177.7 kB / 0.7743 GB, free: 11.5 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.445e-05/0.4797, allocations: 23.72 kB / 0.7743 GB, free: 11.48 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.675e-05/0.4798, allocations: 30.3 kB / 0.7743 GB, free: 11.45 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.385e-06/0.4798, allocations: 0 / 0.7743 GB, free: 11.45 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.4798, allocations: 0 / 0.7743 GB, free: 11.45 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.4798, allocations: 0 / 0.7743 GB, free: 11.45 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001987/0.4818, allocations: 0.6935 MB / 0.775 GB, free: 10.7 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.255e-06/0.4818, allocations: 0 / 0.775 GB, free: 10.7 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.788e-05/0.4819, allocations: 7.938 kB / 0.775 GB, free: 10.69 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.559e-06/0.4819, allocations: 4 kB / 0.775 GB, free: 10.68 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.813e-05/0.4819, allocations: 19.97 kB / 0.775 GB, free: 10.66 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.694e-06/0.4819, allocations: 0 / 0.775 GB, free: 10.66 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.4819, allocations: 0 / 0.775 GB, free: 10.66 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001617/0.4835, allocations: 454.8 kB / 0.7755 GB, free: 10.21 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001808/0.4837, allocations: 160.6 kB / 0.7756 GB, free: 10.03 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.27e-05/0.4838, allocations: 16 kB / 0.7756 GB, free: 10.02 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004373/0.4843, allocations: 35.95 kB / 0.7757 GB, free: 9.98 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.735e-05/0.4843, allocations: 4 kB / 0.7757 GB, free: 9.977 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.819e-05/0.4844, allocations: 51.91 kB / 0.7757 GB, free: 9.926 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001945/0.4846, allocations: 209.9 kB / 0.7759 GB, free: 9.723 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.51e-07/0.4846, allocations: 0 / 0.7759 GB, free: 9.723 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003182/0.4849, allocations: 44 kB / 0.776 GB, free: 9.68 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.0001404/0.485, allocations: 120.9 kB / 0.7761 GB, free: 9.551 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.001089/0.4861, allocations: 378.5 kB / 0.7764 GB, free: 9.156 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.4861, allocations: 3.938 kB / 0.7764 GB, free: 9.152 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0007338/0.4869, allocations: 112.3 kB / 0.7765 GB, free: 9.043 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003444/0.4872, allocations: 32.56 kB / 0.7766 GB, free: 9.012 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001248/0.4885, allocations: 427.8 kB / 0.777 GB, free: 8.566 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003124/0.4888, allocations: 0.7322 MB / 0.7777 GB, free: 7.809 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 5.732e-05/0.4889, allocations: 13.08 kB / 0.7777 GB, free: 7.797 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.255e-05/0.4889, allocations: 23.38 kB / 0.7777 GB, free: 7.773 MB / 0.545 GB Notification: Performance of SimCode: time 2.8e-07/0.4889, allocations: 4 kB / 0.7777 GB, free: 7.77 MB / 0.545 GB Notification: Performance of Templates: time 0.00721/0.4962, allocations: 3.666 MB / 0.7813 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 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime.pipe 2>&1)