Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.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/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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(Buildings.Utilities.Time.Examples.CalendarTime,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|calendarTime2016.year|calendarTime2016.month|calendarTime2016.day|calendarTime2016.hour|calendarTime2016.minute",fileNamePrefix="Buildings_10_Buildings.Utilities.Time.Examples.CalendarTime") translateModel(Buildings.Utilities.Time.Examples.CalendarTime,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|calendarTime2016.year|calendarTime2016.month|calendarTime2016.day|calendarTime2016.hour|calendarTime2016.minute",fileNamePrefix="Buildings_10_Buildings.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.001207/0.001207, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001988/0.001988, allocations: 194.2 kB / 16.25 MB, free: 6.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.367/1.367, allocations: 222.9 MB / 239.9 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.555/2.555, allocations: 437 MB / 0.71 GB, free: 5.254 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001216/0.001216, allocations: 67.89 kB / 0.8687 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6112/0.6124, allocations: 151.6 MB / 1.017 GB, free: 2.836 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.002408/0.6149, allocations: 1.58 MB / 1.018 GB, free: 1.246 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001123/0.616, allocations: 0.5306 MB / 1.019 GB, free: 0.7148 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.491e-05/0.6161, allocations: 4 kB / 1.019 GB, free: 0.7109 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 8.442e-05/0.6162, allocations: 7.938 kB / 1.019 GB, free: 0.7031 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 9.153e-05/0.6163, allocations: 19.86 kB / 1.019 GB, free: 0.6836 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006434/0.6169, allocations: 287.2 kB / 1.019 GB, free: 416 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0004735/0.6174, allocations: 0.5072 MB / 1.02 GB, free: 15.9 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 3.997e-05/0.6175, allocations: 4 kB / 1.02 GB, free: 15.89 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003949/0.6179, allocations: 339 kB / 1.02 GB, free: 15.56 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002407/0.6181, allocations: 171.2 kB / 1.02 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 7.153e-05/0.6182, allocations: 32 kB / 1.02 GB, free: 15.36 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 6.995e-05/0.6183, allocations: 28 kB / 1.02 GB, free: 15.34 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001207/0.6184, allocations: 115.6 kB / 1.02 GB, free: 15.22 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001952/0.6186, allocations: 194.8 kB / 1.02 GB, free: 15.03 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0003679/0.619, allocations: 432.5 kB / 1.021 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.619, allocations: 0 / 1.021 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.442e-06/0.619, allocations: 0 / 1.021 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 9.428e-06/0.619, allocations: 3.984 kB / 1.021 GB, free: 14.61 MB / 0.7794 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.001104/0.6201, allocations: 0.8548 MB / 1.022 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.44e-05/0.6202, allocations: 23.95 kB / 1.022 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001175/0.6203, allocations: 48.47 kB / 1.022 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003143/0.6206, allocations: 318.1 kB / 1.022 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.41e-05/0.6207, allocations: 16.38 kB / 1.022 GB, free: 13.22 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.938e-05/0.6207, allocations: 24.36 kB / 1.022 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009702/0.6217, allocations: 218 kB / 1.022 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.713e-06/0.6217, allocations: 4.188 kB / 1.022 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.325e-05/0.6218, allocations: 7.938 kB / 1.022 GB, free: 12.97 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.064e-06/0.6218, allocations: 7.984 kB / 1.022 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007923/0.6226, allocations: 95.92 kB / 1.022 GB, free: 12.87 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00041/0.623, allocations: 389.2 kB / 1.023 GB, free: 12.44 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001095/0.6241, allocations: 182.4 kB / 1.023 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008062/0.6249, allocations: 108.8 kB / 1.023 GB, free: 12.14 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.211e-05/0.625, allocations: 3.938 kB / 1.023 GB, free: 12.14 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009792/0.626, allocations: 227.2 kB / 1.023 GB, free: 11.9 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=16): time 1.823e-06/0.626, allocations: 0 / 1.023 GB, free: 11.9 MB / 0.7794 GB Notification: Performance of matching and sorting (n=16): time 0.002725/0.6287, allocations: 488.7 kB / 1.024 GB, free: 11.42 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.606e-05/0.6288, allocations: 59.39 kB / 1.024 GB, free: 11.35 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003748/0.6291, allocations: 413.8 kB / 1.024 GB, free: 10.94 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 6.672e-05/0.6292, allocations: 45.69 kB / 1.024 GB, free: 10.89 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.724e-05/0.6293, allocations: 93.45 kB / 1.024 GB, free: 10.79 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 4.363e-05/0.6293, allocations: 39.53 kB / 1.024 GB, free: 10.75 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002008/0.6296, allocations: 129.3 kB / 1.025 GB, free: 10.62 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.521e-05/0.6297, allocations: 322.8 kB / 1.025 GB, free: 10.3 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002689/0.6299, allocations: 127.9 kB / 1.025 GB, free: 10.17 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000285/0.6302, allocations: 165.9 kB / 1.025 GB, free: 9.988 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003917/0.6306, allocations: 275.1 kB / 1.025 GB, free: 9.688 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.6306, allocations: 4 kB / 1.025 GB, free: 9.684 MB / 0.7794 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008349/0.6315, allocations: 492.6 kB / 1.026 GB, free: 9.184 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 7.871e-05/0.6316, allocations: 91.31 kB / 1.026 GB, free: 9.082 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.214e-06/0.6316, allocations: 4 kB / 1.026 GB, free: 9.078 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.395e-05/0.6316, allocations: 4 kB / 1.026 GB, free: 9.074 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001777/0.6318, allocations: 19.92 kB / 1.026 GB, free: 9.055 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.408e-06/0.6318, allocations: 7.984 kB / 1.026 GB, free: 9.047 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005326/0.6323, allocations: 63.92 kB / 1.026 GB, free: 8.984 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.461e-05/0.6324, allocations: 63.98 kB / 1.026 GB, free: 8.922 MB / 0.7794 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.0002287/0.6327, allocations: 190.2 kB / 1.026 GB, free: 8.727 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.845e-05/0.6327, allocations: 43.45 kB / 1.026 GB, free: 8.684 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.555e-05/0.6328, allocations: 43.75 kB / 1.026 GB, free: 8.633 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.966e-06/0.6328, allocations: 0 / 1.026 GB, free: 8.633 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.579e-06/0.6328, allocations: 4 kB / 1.026 GB, free: 8.629 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.696e-06/0.6328, allocations: 3.938 kB / 1.026 GB, free: 8.625 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002307/0.6351, allocations: 0.7459 MB / 1.027 GB, free: 7.824 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.008e-06/0.6352, allocations: 8 kB / 1.027 GB, free: 7.816 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.728e-05/0.6352, allocations: 4 kB / 1.027 GB, free: 7.812 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.434e-06/0.6352, allocations: 0 / 1.027 GB, free: 7.812 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.176e-05/0.6353, allocations: 19.97 kB / 1.027 GB, free: 7.793 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.255e-06/0.6353, allocations: 0 / 1.027 GB, free: 7.793 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.6353, allocations: 0 / 1.027 GB, free: 7.793 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001841/0.6371, allocations: 483.9 kB / 1.028 GB, free: 7.305 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002319/0.6374, allocations: 200.5 kB / 1.028 GB, free: 7.09 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.555e-05/0.6374, allocations: 8 kB / 1.028 GB, free: 7.082 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005115/0.638, allocations: 31.97 kB / 1.028 GB, free: 7.051 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.42e-05/0.638, allocations: 15.97 kB / 1.028 GB, free: 7.035 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.903e-05/0.6381, allocations: 55.97 kB / 1.028 GB, free: 6.98 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0002672/0.6384, allocations: 299.1 kB / 1.028 GB, free: 6.691 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.483e-06/0.6384, allocations: 0 / 1.028 GB, free: 6.691 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003711/0.6387, allocations: 71.92 kB / 1.028 GB, free: 6.621 MB / 0.7794 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.0001405/0.6389, allocations: 113 kB / 1.028 GB, free: 6.504 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.001331/0.6402, allocations: 458.8 kB / 1.029 GB, free: 6.031 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.6402, allocations: 0 / 1.029 GB, free: 6.031 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0008164/0.6411, allocations: 116.6 kB / 1.029 GB, free: 5.918 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003816/0.6415, allocations: 38.92 kB / 1.029 GB, free: 5.879 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001563/0.643, allocations: 0.6612 MB / 1.03 GB, free: 5.191 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003153/0.6434, allocations: 0.7708 MB / 1.03 GB, free: 4.395 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 6.663e-05/0.6434, allocations: 17.06 kB / 1.03 GB, free: 4.379 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.498e-05/0.6435, allocations: 19.44 kB / 1.03 GB, free: 4.359 MB / 0.7794 GB Notification: Performance of SimCode: time 2.81e-07/0.6435, allocations: 4 kB / 1.03 GB, free: 4.355 MB / 0.7794 GB Notification: Performance of Templates: time 0.009384/0.6529, allocations: 5.19 MB / 1.035 GB, free: 15.07 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Utilities.Time.Examples.CalendarTime.makefile (rm -f Buildings_10_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; mkfifo Buildings_10_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Time.Examples.CalendarTime.pipe >> ../files/Buildings_10_Buildings.Utilities.Time.Examples.CalendarTime.sim & ./Buildings_10_Buildings.Utilities.Time.Examples.CalendarTime -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Time.Examples.CalendarTime.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Time.Examples.CalendarTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Time_Examples_CalendarTime.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Time.Examples.CalendarTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches