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.001468/0.001468, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001689/0.00169, allocations: 196.1 kB / 16.14 MB, free: 6.691 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.51/1.51, allocations: 222.9 MB / 239.8 MB, free: 4.617 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.607/2.607, allocations: 437 MB / 0.7099 GB, free: 5.383 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001222/0.001222, allocations: 63.91 kB / 0.8685 GB, free: 5.223 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7011/0.7023, allocations: 151.6 MB / 1.017 GB, free: 2.812 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.002993/0.7054, allocations: 1.576 MB / 1.018 GB, free: 1.227 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001397/0.7068, allocations: 0.591 MB / 1.019 GB, free: 0.6367 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.411e-05/0.7069, allocations: 3.938 kB / 1.019 GB, free: 0.6328 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 8.742e-05/0.707, allocations: 0 / 1.019 GB, free: 0.6328 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.0001065/0.7071, allocations: 27.84 kB / 1.019 GB, free: 0.6055 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008225/0.7079, allocations: 287.4 kB / 1.019 GB, free: 336 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0005418/0.7085, allocations: 447.4 kB / 1.019 GB, free: 15.89 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 5.497e-05/0.7085, allocations: 8 kB / 1.019 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005162/0.7091, allocations: 303 kB / 1.02 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002894/0.7094, allocations: 163.2 kB / 1.02 GB, free: 15.43 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 9.631e-05/0.7095, allocations: 16 kB / 1.02 GB, free: 15.41 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 9.204e-05/0.7096, allocations: 12 kB / 1.02 GB, free: 15.4 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001576/0.7097, allocations: 115.6 kB / 1.02 GB, free: 15.29 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0002312/0.71, allocations: 186.8 kB / 1.02 GB, free: 15.1 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0004783/0.7105, allocations: 416.5 kB / 1.021 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.7105, allocations: 4 kB / 1.021 GB, free: 14.69 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.283e-06/0.7105, allocations: 0 / 1.021 GB, free: 14.69 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 7.054e-06/0.7105, allocations: 0 / 1.021 GB, free: 14.69 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.001328/0.7118, allocations: 0.8704 MB / 1.021 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.093e-05/0.7119, allocations: 8.031 kB / 1.021 GB, free: 13.72 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001236/0.712, allocations: 52.47 kB / 1.022 GB, free: 13.67 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003559/0.7124, allocations: 314.1 kB / 1.022 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.38e-05/0.7124, allocations: 16.36 kB / 1.022 GB, free: 13.31 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.787e-05/0.7125, allocations: 32.36 kB / 1.022 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009972/0.7135, allocations: 210 kB / 1.022 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.397e-06/0.7135, allocations: 4.172 kB / 1.022 GB, free: 13.06 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.145e-05/0.7136, allocations: 7.922 kB / 1.022 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.598e-06/0.7136, allocations: 0 / 1.022 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007943/0.7144, allocations: 103.9 kB / 1.022 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004282/0.7148, allocations: 389.2 kB / 1.023 GB, free: 12.52 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001042/0.7159, allocations: 178.4 kB / 1.023 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007682/0.7167, allocations: 108.8 kB / 1.023 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.734e-05/0.7167, allocations: 4 kB / 1.023 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001038/0.7177, allocations: 223.1 kB / 1.023 GB, free: 12 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=16): time 1.563e-06/0.7178, allocations: 0 / 1.023 GB, free: 12 MB / 0.7794 GB Notification: Performance of matching and sorting (n=16): time 0.002804/0.7206, allocations: 494.8 kB / 1.024 GB, free: 11.51 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.319e-05/0.7206, allocations: 59.39 kB / 1.024 GB, free: 11.44 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003643/0.721, allocations: 417.8 kB / 1.024 GB, free: 11.03 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 5.557e-05/0.721, allocations: 37.7 kB / 1.024 GB, free: 10.98 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 8.818e-05/0.7211, allocations: 97.44 kB / 1.024 GB, free: 10.88 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 4.166e-05/0.7212, allocations: 35.55 kB / 1.024 GB, free: 10.85 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001939/0.7214, allocations: 125.3 kB / 1.024 GB, free: 10.72 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.000112/0.7215, allocations: 326.8 kB / 1.025 GB, free: 10.39 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002742/0.7218, allocations: 127.9 kB / 1.025 GB, free: 10.27 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000295/0.7221, allocations: 169.9 kB / 1.025 GB, free: 10.08 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003633/0.7225, allocations: 279 kB / 1.025 GB, free: 9.773 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.786e-06/0.7225, allocations: 0 / 1.025 GB, free: 9.773 MB / 0.7794 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000815/0.7233, allocations: 496.7 kB / 1.026 GB, free: 9.27 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 8.058e-05/0.7234, allocations: 96.91 kB / 1.026 GB, free: 9.164 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.7234, allocations: 0 / 1.026 GB, free: 9.164 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.431e-05/0.7234, allocations: 4 kB / 1.026 GB, free: 9.16 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001698/0.7236, allocations: 23.92 kB / 1.026 GB, free: 9.137 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.023e-06/0.7236, allocations: 0 / 1.026 GB, free: 9.137 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005304/0.7241, allocations: 67.72 kB / 1.026 GB, free: 9.07 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.867e-05/0.7243, allocations: 63.92 kB / 1.026 GB, free: 9.008 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.0002367/0.7245, allocations: 202.2 kB / 1.026 GB, free: 8.801 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.762e-05/0.7246, allocations: 39.47 kB / 1.026 GB, free: 8.762 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.653e-05/0.7246, allocations: 43.73 kB / 1.026 GB, free: 8.711 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.395e-06/0.7246, allocations: 0 / 1.026 GB, free: 8.711 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.7247, allocations: 4 kB / 1.026 GB, free: 8.707 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.7247, allocations: 0 / 1.026 GB, free: 8.707 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002259/0.7269, allocations: 0.7363 MB / 1.027 GB, free: 7.914 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.7269, allocations: 0 / 1.027 GB, free: 7.914 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.851e-05/0.727, allocations: 11.98 kB / 1.027 GB, free: 7.902 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.257e-05/0.727, allocations: 4 kB / 1.027 GB, free: 7.898 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.605e-05/0.727, allocations: 15.97 kB / 1.027 GB, free: 7.883 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.963e-06/0.7271, allocations: 4 kB / 1.027 GB, free: 7.879 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.7271, allocations: 4 kB / 1.027 GB, free: 7.875 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001828/0.7289, allocations: 476.2 kB / 1.027 GB, free: 7.395 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002367/0.7291, allocations: 208.5 kB / 1.028 GB, free: 7.172 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.57e-05/0.7292, allocations: 8 kB / 1.028 GB, free: 7.164 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005016/0.7297, allocations: 27.97 kB / 1.028 GB, free: 7.137 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.999e-05/0.7298, allocations: 11.98 kB / 1.028 GB, free: 7.125 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.426e-05/0.7298, allocations: 59.97 kB / 1.028 GB, free: 7.066 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0002868/0.7301, allocations: 295.1 kB / 1.028 GB, free: 6.781 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7301, allocations: 0 / 1.028 GB, free: 6.781 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003589/0.7305, allocations: 60 kB / 1.028 GB, free: 6.723 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.0001467/0.7307, allocations: 136.7 kB / 1.028 GB, free: 6.586 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.001379/0.7321, allocations: 442.4 kB / 1.029 GB, free: 6.129 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.035e-06/0.7321, allocations: 0 / 1.029 GB, free: 6.129 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0008279/0.7329, allocations: 124.2 kB / 1.029 GB, free: 6.008 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003682/0.7333, allocations: 30.89 kB / 1.029 GB, free: 5.977 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001557/0.7348, allocations: 0.6585 MB / 1.029 GB, free: 5.289 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003847/0.7352, allocations: 0.775 MB / 1.03 GB, free: 4.488 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 6.357e-05/0.7353, allocations: 17.08 kB / 1.03 GB, free: 4.473 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.56e-05/0.7354, allocations: 19.42 kB / 1.03 GB, free: 4.453 MB / 0.7794 GB Notification: Performance of SimCode: time 4.21e-07/0.7354, allocations: 0 / 1.03 GB, free: 4.453 MB / 0.7794 GB Notification: Performance of Templates: time 0.009656/0.745, allocations: 5.036 MB / 1.035 GB, free: 15.32 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