Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001103/0.001103, allocations: 92.2 kB / 20.19 MB, free: 4.363 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009839/0.0009839, allocations: 173 kB / 23.49 MB, free: 1.062 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9229/0.9229, allocations: 177.1 MB / 203.8 MB, free: 5.648 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.136/2.136, allocations: 429.5 MB / 0.6736 GB, free: 4.004 MB / 0.6355 GB " [Timeout remaining time 177] Using package Buildings with version 14.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Utilities.Time.Examples.CalendarTime,tolerance=1e-06,outputFormat="mat",numberOfIntervals=155429,variableFilter="time|calendarTime2016.year|calendarTime2016.month|calendarTime2016.day|calendarTime2016.hour|calendarTime2016.minute",fileNamePrefix="Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime") translateModel(Buildings.Utilities.Time.Examples.CalendarTime,tolerance=1e-06,outputFormat="mat",numberOfIntervals=155429,variableFilter="time|calendarTime2016.year|calendarTime2016.month|calendarTime2016.day|calendarTime2016.hour|calendarTime2016.minute",fileNamePrefix="Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.463e-06/1.463e-06, allocations: 0 / 0.8781 GB, free: 6.684 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.506e-05/2.652e-05, allocations: 4.844 kB / 0.8781 GB, free: 6.68 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.002082/0.002108, allocations: 1.56 MB / 0.8797 GB, free: 5.125 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.0009571/0.003065, allocations: 0.5379 MB / 0.8802 GB, free: 4.59 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.815e-05/0.003124, allocations: 0 / 0.8802 GB, free: 4.59 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 9.838e-05/0.003222, allocations: 18.12 kB / 0.8802 GB, free: 4.574 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 0.000112/0.003334, allocations: 23.36 kB / 0.8802 GB, free: 4.555 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005959/0.00393, allocations: 323.1 kB / 0.8805 GB, free: 4.242 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0003622/0.004292, allocations: 487.4 kB / 0.881 GB, free: 3.766 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 4.24e-05/0.004334, allocations: 4 kB / 0.881 GB, free: 3.762 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003397/0.004674, allocations: 347.6 kB / 0.8813 GB, free: 3.422 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002053/0.004879, allocations: 127.7 kB / 0.8815 GB, free: 3.297 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 4.885e-05/0.004928, allocations: 28 kB / 0.8815 GB, free: 3.27 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 4.821e-05/0.004976, allocations: 28 kB / 0.8815 GB, free: 3.242 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 0.0001072/0.005084, allocations: 123.6 kB / 0.8816 GB, free: 3.121 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 0.0001117/0.005195, allocations: 136.6 kB / 0.8818 GB, free: 2.988 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0003045/0.0055, allocations: 370.9 kB / 0.8821 GB, free: 2.625 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.005503, allocations: 1.031 kB / 0.8821 GB, free: 2.625 MB / 0.8386 GB Notification: Performance of FrontEnd: time 8.92e-07/0.005504, allocations: 0 / 0.8821 GB, free: 2.625 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 5.69e-06/0.00551, allocations: 0 / 0.8821 GB, free: 2.625 MB / 0.8386 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.000886/0.006396, allocations: 0.9155 MB / 0.883 GB, free: 1.633 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.448e-05/0.00643, allocations: 8.031 kB / 0.883 GB, free: 1.625 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001065/0.006537, allocations: 57.33 kB / 0.8831 GB, free: 1.57 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002563/0.006793, allocations: 254.8 kB / 0.8833 GB, free: 1.297 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.988e-05/0.006833, allocations: 25.39 kB / 0.8833 GB, free: 1.273 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.77e-05/0.00688, allocations: 28.36 kB / 0.8834 GB, free: 1.246 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000372/0.007252, allocations: 206.3 kB / 0.8836 GB, free: 1.043 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.865e-06/0.00726, allocations: 192 / 0.8836 GB, free: 1.043 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.137e-05/0.007282, allocations: 12.38 kB / 0.8836 GB, free: 1.031 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.615e-06/0.007289, allocations: 384 / 0.8836 GB, free: 1.031 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001034/0.007393, allocations: 55.91 kB / 0.8836 GB, free: 0.9766 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002858/0.007679, allocations: 316.3 kB / 0.8839 GB, free: 0.6328 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002051/0.007884, allocations: 127 kB / 0.884 GB, free: 0.4961 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001024/0.007986, allocations: 63.66 kB / 0.8841 GB, free: 440 kB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.143e-05/0.008007, allocations: 4 kB / 0.8841 GB, free: 436 kB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002015/0.008209, allocations: 184.9 kB / 0.8843 GB, free: 236 kB / 0.8386 GB Notification: Performance of pre-optimization done (n=16): time 1.332e-06/0.00821, allocations: 0 / 0.8843 GB, free: 236 kB / 0.8386 GB Notification: Performance of matching and sorting (n=16): time 0.0005456/0.008756, allocations: 372.8 kB / 0.8846 GB, free: 15.86 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.004e-05/0.008796, allocations: 71.33 kB / 0.8847 GB, free: 15.78 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000265/0.009061, allocations: 422.6 kB / 0.8851 GB, free: 15.35 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 3.653e-05/0.009097, allocations: 41.69 kB / 0.8852 GB, free: 15.3 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 5.951e-05/0.009157, allocations: 136.2 kB / 0.8853 GB, free: 15.17 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 3.701e-05/0.009194, allocations: 51.62 kB / 0.8853 GB, free: 15.12 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001199/0.009314, allocations: 131.1 kB / 0.8855 GB, free: 14.98 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0002426/0.009556, allocations: 0.4923 MB / 0.8859 GB, free: 14.48 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002016/0.009758, allocations: 175.3 kB / 0.8861 GB, free: 14.29 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002121/0.00997, allocations: 245.9 kB / 0.8863 GB, free: 14.01 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002297/0.0102, allocations: 279.8 kB / 0.8866 GB, free: 13.7 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.776e-06/0.0102, allocations: 0 / 0.8866 GB, free: 13.7 MB / 0.8542 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005378/0.01074, allocations: 0.5586 MB / 0.8872 GB, free: 13.11 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 5.548e-05/0.0108, allocations: 79.38 kB / 0.8872 GB, free: 13.02 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.08e-06/0.0108, allocations: 7.938 kB / 0.8872 GB, free: 13.01 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.51e-05/0.01082, allocations: 4 kB / 0.8872 GB, free: 13.01 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001416/0.01096, allocations: 31.97 kB / 0.8873 GB, free: 12.98 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.895e-06/0.01097, allocations: 7.922 kB / 0.8873 GB, free: 12.97 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001864/0.01115, allocations: 55.98 kB / 0.8873 GB, free: 12.91 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.482e-05/0.01121, allocations: 63.98 kB / 0.8874 GB, free: 12.85 MB / 0.8542 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.0001201/0.01133, allocations: 180.5 kB / 0.8876 GB, free: 12.67 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.331e-05/0.01138, allocations: 51.72 kB / 0.8876 GB, free: 12.62 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.388e-05/0.01142, allocations: 35.67 kB / 0.8876 GB, free: 12.58 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.01143, allocations: 4 kB / 0.8877 GB, free: 12.58 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.01143, allocations: 0 / 0.8877 GB, free: 12.58 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.91e-06/0.01144, allocations: 3.938 kB / 0.8877 GB, free: 12.57 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006895/0.01213, allocations: 0.677 MB / 0.8883 GB, free: 11.85 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.394e-06/0.01213, allocations: 0 / 0.8883 GB, free: 11.85 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.098e-05/0.01216, allocations: 4 kB / 0.8883 GB, free: 11.85 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.716e-06/0.01216, allocations: 0 / 0.8883 GB, free: 11.85 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.65e-05/0.01219, allocations: 31.84 kB / 0.8883 GB, free: 11.82 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.01219, allocations: 0 / 0.8883 GB, free: 11.82 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/0.01219, allocations: 4 kB / 0.8884 GB, free: 11.81 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003786/0.01257, allocations: 456 kB / 0.8888 GB, free: 11.35 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001414/0.01271, allocations: 121.5 kB / 0.8889 GB, free: 11.23 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.081e-05/0.01276, allocations: 19.94 kB / 0.8889 GB, free: 11.21 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001649/0.01293, allocations: 26.97 kB / 0.8889 GB, free: 11.18 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.898e-05/0.01296, allocations: 7.984 kB / 0.889 GB, free: 11.18 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.448e-05/0.013, allocations: 55.98 kB / 0.889 GB, free: 11.12 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.0001499/0.01315, allocations: 275.1 kB / 0.8893 GB, free: 10.85 MB / 0.8542 GB Notification: Performance of sort global known variables: time 1.5e-07/0.01315, allocations: 0 / 0.8893 GB, free: 10.85 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0002219/0.01337, allocations: 67.98 kB / 0.8893 GB, free: 10.78 MB / 0.8542 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.0001172/0.01349, allocations: 117.2 kB / 0.8894 GB, free: 10.66 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0004523/0.01394, allocations: 428.8 kB / 0.8899 GB, free: 10.2 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.01395, allocations: 0 / 0.8899 GB, free: 10.2 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0001158/0.01406, allocations: 87.89 kB / 0.8899 GB, free: 10.11 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002845/0.01435, allocations: 51.45 kB / 0.89 GB, free: 10.07 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007551/0.0151, allocations: 479 kB / 0.8904 GB, free: 9.566 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.085e-05/0.01515, allocations: 91.81 kB / 0.8905 GB, free: 9.457 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 3.617e-05/0.01519, allocations: 9.141 kB / 0.8905 GB, free: 9.449 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.619e-05/0.01522, allocations: 20.48 kB / 0.8906 GB, free: 9.43 MB / 0.8542 GB Notification: Performance of SimCode: time 9.31e-07/0.01523, allocations: 0 / 0.8906 GB, free: 9.43 MB / 0.8542 GB Notification: Performance of Templates: time 0.00689/0.02212, allocations: 5.994 MB / 0.8964 GB, free: 3.371 MB / 0.8542 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.pipe >> ../files/Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.sim & ./Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Time_Examples_CalendarTime.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 6.0074871049728245]