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.00165/0.00165, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002008/0.002008, allocations: 195 kB / 16.53 MB, free: 6.391 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.455/1.455, allocations: 222.9 MB / 240.2 MB, free: 4.391 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.624/2.624, allocations: 437 MB / 0.7103 GB, free: 5.004 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001405/0.001405, allocations: 71.88 kB / 0.8692 GB, free: 4.668 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7148/0.7162, allocations: 151.6 MB / 1.017 GB, free: 2.523 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.003417/0.7196, allocations: 1.521 MB / 1.019 GB, free: 0.9922 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001453/0.7211, allocations: 0.5383 MB / 1.019 GB, free: 464 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.337e-05/0.7212, allocations: 0 / 1.019 GB, free: 464 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.0001067/0.7214, allocations: 3.938 kB / 1.019 GB, free: 460 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.0001189/0.7215, allocations: 31.78 kB / 1.019 GB, free: 428 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009094/0.7224, allocations: 315.3 kB / 1.02 GB, free: 112 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0006724/0.7231, allocations: 0.5033 MB / 1.02 GB, free: 15.61 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 7.186e-05/0.7232, allocations: 12 kB / 1.02 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005119/0.7237, allocations: 267.6 kB / 1.02 GB, free: 15.33 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000325/0.7241, allocations: 139.6 kB / 1.02 GB, free: 15.2 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 0.0001218/0.7242, allocations: 28 kB / 1.021 GB, free: 15.17 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001036/0.7243, allocations: 28 kB / 1.021 GB, free: 15.14 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001578/0.7245, allocations: 115.7 kB / 1.021 GB, free: 15.03 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0002319/0.7247, allocations: 187 kB / 1.021 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0005468/0.7253, allocations: 420.8 kB / 1.021 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.7253, allocations: 0 / 1.021 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.294e-06/0.7253, allocations: 0 / 1.021 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.312e-05/0.7253, allocations: 0 / 1.021 GB, free: 14.43 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.001487/0.7268, allocations: 0.8703 MB / 1.022 GB, free: 13.47 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.166e-05/0.7268, allocations: 8.031 kB / 1.022 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001512/0.727, allocations: 52.47 kB / 1.022 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004189/0.7274, allocations: 314.2 kB / 1.022 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.726e-05/0.7275, allocations: 20.36 kB / 1.022 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.007e-05/0.7276, allocations: 28.36 kB / 1.022 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001041/0.7286, allocations: 209.9 kB / 1.023 GB, free: 12.81 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.527e-06/0.7286, allocations: 192 / 1.023 GB, free: 12.81 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.214e-05/0.7287, allocations: 7.938 kB / 1.023 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.844e-06/0.7287, allocations: 7.984 kB / 1.023 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008257/0.7295, allocations: 95.92 kB / 1.023 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004509/0.73, allocations: 389.2 kB / 1.023 GB, free: 12.27 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001114/0.7311, allocations: 174.5 kB / 1.023 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007998/0.7319, allocations: 114 kB / 1.023 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 3.171e-05/0.732, allocations: 7.922 kB / 1.023 GB, free: 11.97 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001011/0.733, allocations: 229.6 kB / 1.024 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=16): time 2.605e-06/0.733, allocations: 0 / 1.024 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of matching and sorting (n=16): time 0.002734/0.7357, allocations: 488.8 kB / 1.024 GB, free: 11.25 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.554e-05/0.7358, allocations: 55.41 kB / 1.024 GB, free: 11.18 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004129/0.7362, allocations: 417.8 kB / 1.025 GB, free: 10.77 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 6.118e-05/0.7363, allocations: 37.7 kB / 1.025 GB, free: 10.73 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 9.983e-05/0.7364, allocations: 93.44 kB / 1.025 GB, free: 10.63 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 4.952e-05/0.7364, allocations: 47.42 kB / 1.025 GB, free: 10.59 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002052/0.7367, allocations: 129.3 kB / 1.025 GB, free: 10.45 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001072/0.7368, allocations: 322.8 kB / 1.025 GB, free: 10.13 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002802/0.7371, allocations: 131.9 kB / 1.025 GB, free: 10 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002926/0.7374, allocations: 169.9 kB / 1.025 GB, free: 9.812 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003823/0.7378, allocations: 280.2 kB / 1.026 GB, free: 9.508 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.7378, allocations: 3.938 kB / 1.026 GB, free: 9.504 MB / 0.7794 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008291/0.7386, allocations: 492.7 kB / 1.026 GB, free: 9.004 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001008/0.7387, allocations: 96.55 kB / 1.026 GB, free: 8.898 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.616e-06/0.7387, allocations: 4 kB / 1.026 GB, free: 8.895 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.793e-05/0.7387, allocations: 3.984 kB / 1.026 GB, free: 8.891 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001757/0.7389, allocations: 23.92 kB / 1.026 GB, free: 8.867 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.057e-05/0.7389, allocations: 7.984 kB / 1.026 GB, free: 8.859 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005227/0.7395, allocations: 55.8 kB / 1.026 GB, free: 8.805 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.241e-05/0.7396, allocations: 68.03 kB / 1.026 GB, free: 8.738 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.0002173/0.7398, allocations: 193.7 kB / 1.027 GB, free: 8.543 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.596e-05/0.7399, allocations: 39.47 kB / 1.027 GB, free: 8.504 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.966e-05/0.74, allocations: 47.67 kB / 1.027 GB, free: 8.449 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.127e-06/0.74, allocations: 4 kB / 1.027 GB, free: 8.445 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.74, allocations: 0 / 1.027 GB, free: 8.445 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.057e-06/0.74, allocations: 0 / 1.027 GB, free: 8.445 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002249/0.7422, allocations: 0.7457 MB / 1.027 GB, free: 7.645 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.013e-06/0.7423, allocations: 0 / 1.027 GB, free: 7.645 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.964e-05/0.7423, allocations: 7.984 kB / 1.027 GB, free: 7.637 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/0.7423, allocations: 0 / 1.027 GB, free: 7.637 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.405e-05/0.7423, allocations: 15.98 kB / 1.027 GB, free: 7.621 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.7424, allocations: 4 kB / 1.027 GB, free: 7.617 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.7424, allocations: 0 / 1.027 GB, free: 7.617 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001795/0.7442, allocations: 478.7 kB / 1.028 GB, free: 7.133 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002337/0.7444, allocations: 200.5 kB / 1.028 GB, free: 6.918 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.713e-05/0.7445, allocations: 15.98 kB / 1.028 GB, free: 6.902 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000485/0.745, allocations: 35.91 kB / 1.028 GB, free: 6.867 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.649e-05/0.745, allocations: 7.984 kB / 1.028 GB, free: 6.859 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.09e-05/0.7451, allocations: 51.98 kB / 1.028 GB, free: 6.809 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0002762/0.7454, allocations: 295.1 kB / 1.029 GB, free: 6.523 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7454, allocations: 0 / 1.029 GB, free: 6.523 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003497/0.7457, allocations: 71.98 kB / 1.029 GB, free: 6.453 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.0001372/0.7459, allocations: 113 kB / 1.029 GB, free: 6.336 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.001307/0.7472, allocations: 455.2 kB / 1.029 GB, free: 5.867 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.7472, allocations: 384 / 1.029 GB, free: 5.867 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0007904/0.748, allocations: 120.7 kB / 1.029 GB, free: 5.75 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003724/0.7484, allocations: 29.48 kB / 1.029 GB, free: 5.719 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001469/0.7499, allocations: 0.5475 MB / 1.03 GB, free: 5.145 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003411/0.7502, allocations: 0.7708 MB / 1.031 GB, free: 4.348 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 6.359e-05/0.7503, allocations: 21.06 kB / 1.031 GB, free: 4.328 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.12e-05/0.7504, allocations: 27.36 kB / 1.031 GB, free: 4.301 MB / 0.7794 GB Notification: Performance of SimCode: time 3.51e-07/0.7504, allocations: 0 / 1.031 GB, free: 4.301 MB / 0.7794 GB Notification: Performance of Templates: time 0.008952/0.7593, allocations: 5.033 MB / 1.036 GB, free: 15.16 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