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.001361/0.001361, 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.001364/0.001364, allocations: 193.8 kB / 16.14 MB, free: 6.676 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.487/1.487, allocations: 222.9 MB / 239.8 MB, free: 4.633 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.812/2.812, allocations: 437 MB / 0.71 GB, free: 5.395 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001969/0.00197, allocations: 63.89 kB / 0.8686 GB, free: 5.223 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5954/0.5974, 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.002824/0.6003, allocations: 1.584 MB / 1.018 GB, free: 1.219 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001326/0.6016, allocations: 0.5814 MB / 1.019 GB, free: 0.6367 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.149e-05/0.6017, allocations: 4 kB / 1.019 GB, free: 0.6328 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 9.335e-05/0.6018, allocations: 11.92 kB / 1.019 GB, free: 0.6211 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.0001204/0.6019, allocations: 31.84 kB / 1.019 GB, free: 0.5898 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007084/0.6026, allocations: 280.6 kB / 1.019 GB, free: 324 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0004456/0.6031, allocations: 451.4 kB / 1.019 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 4.47e-05/0.6031, allocations: 4 kB / 1.019 GB, free: 15.87 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004121/0.6036, allocations: 303 kB / 1.02 GB, free: 15.57 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000257/0.6038, allocations: 163.2 kB / 1.02 GB, free: 15.41 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 9.506e-05/0.6039, allocations: 16 kB / 1.02 GB, free: 15.4 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 9.441e-05/0.604, allocations: 16 kB / 1.02 GB, free: 15.38 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001601/0.6042, allocations: 115.6 kB / 1.02 GB, free: 15.27 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0002369/0.6044, allocations: 182.8 kB / 1.02 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0004646/0.6049, allocations: 420.4 kB / 1.021 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.6049, allocations: 0 / 1.021 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.863e-06/0.6049, allocations: 0 / 1.021 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.255e-05/0.605, allocations: 0 / 1.021 GB, free: 14.68 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.00136/0.6063, allocations: 0.8743 MB / 1.021 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.237e-05/0.6064, allocations: 12.03 kB / 1.022 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001263/0.6065, allocations: 48.47 kB / 1.022 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003967/0.6069, allocations: 314.1 kB / 1.022 GB, free: 13.31 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.772e-05/0.607, allocations: 24.36 kB / 1.022 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.703e-05/0.6071, allocations: 24.38 kB / 1.022 GB, free: 13.26 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001104/0.6082, allocations: 210 kB / 1.022 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.826e-06/0.6082, allocations: 4.188 kB / 1.022 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.296e-05/0.6082, allocations: 7.938 kB / 1.022 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/0.6082, allocations: 0 / 1.022 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000892/0.6091, allocations: 95.92 kB / 1.022 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004815/0.6096, allocations: 393.2 kB / 1.023 GB, free: 12.51 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001217/0.6108, allocations: 178.4 kB / 1.023 GB, free: 12.33 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008846/0.6117, allocations: 113.9 kB / 1.023 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.587e-05/0.6118, allocations: 7.938 kB / 1.023 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001079/0.6129, allocations: 219.2 kB / 1.023 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=16): time 1.733e-06/0.6129, allocations: 0 / 1.023 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of matching and sorting (n=16): time 0.002912/0.6158, allocations: 490.3 kB / 1.024 GB, free: 11.5 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.638e-05/0.6159, allocations: 63.39 kB / 1.024 GB, free: 11.42 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004513/0.6163, allocations: 409.8 kB / 1.024 GB, free: 11.02 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 7.182e-05/0.6164, allocations: 45.69 kB / 1.024 GB, free: 10.97 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 9.655e-05/0.6165, allocations: 97.44 kB / 1.024 GB, free: 10.87 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 4.939e-05/0.6166, allocations: 35.55 kB / 1.024 GB, free: 10.83 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002219/0.6168, allocations: 133.3 kB / 1.024 GB, free: 10.7 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001428/0.6169, allocations: 322.8 kB / 1.025 GB, free: 10.37 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002895/0.6172, allocations: 123.9 kB / 1.025 GB, free: 10.25 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003198/0.6176, allocations: 169.9 kB / 1.025 GB, free: 10.06 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004293/0.618, allocations: 279.1 kB / 1.025 GB, free: 9.758 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.618, allocations: 4 kB / 1.025 GB, free: 9.754 MB / 0.7794 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009068/0.6189, allocations: 488.6 kB / 1.026 GB, free: 9.258 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 9.215e-05/0.619, allocations: 91.31 kB / 1.026 GB, free: 9.156 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/0.619, allocations: 0 / 1.026 GB, free: 9.156 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.548e-05/0.6191, allocations: 4 kB / 1.026 GB, free: 9.152 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001854/0.6193, allocations: 31.89 kB / 1.026 GB, free: 9.121 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.241e-05/0.6193, allocations: 4 kB / 1.026 GB, free: 9.117 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005639/0.6199, allocations: 67.92 kB / 1.026 GB, free: 9.051 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.661e-05/0.62, allocations: 55.98 kB / 1.026 GB, free: 8.996 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.0002595/0.6202, allocations: 197.7 kB / 1.026 GB, free: 8.793 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.814e-05/0.6203, allocations: 43.47 kB / 1.026 GB, free: 8.75 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.839e-05/0.6204, allocations: 35.75 kB / 1.026 GB, free: 8.707 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.136e-06/0.6204, allocations: 4 kB / 1.026 GB, free: 8.703 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.6204, allocations: 0 / 1.026 GB, free: 8.703 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.6204, allocations: 0 / 1.026 GB, free: 8.703 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002476/0.6229, allocations: 0.748 MB / 1.027 GB, free: 7.898 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.147e-06/0.6229, allocations: 4 kB / 1.027 GB, free: 7.895 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.281e-05/0.623, allocations: 4 kB / 1.027 GB, free: 7.891 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.308e-06/0.623, allocations: 0 / 1.027 GB, free: 7.891 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.534e-05/0.623, allocations: 23.97 kB / 1.027 GB, free: 7.867 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.505e-06/0.623, allocations: 0 / 1.027 GB, free: 7.867 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.623, allocations: 4 kB / 1.027 GB, free: 7.863 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001997/0.625, allocations: 479.6 kB / 1.027 GB, free: 7.379 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002955/0.6253, allocations: 196.5 kB / 1.028 GB, free: 7.168 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.825e-05/0.6254, allocations: 15.94 kB / 1.028 GB, free: 7.152 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005547/0.626, allocations: 31.95 kB / 1.028 GB, free: 7.121 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.614e-05/0.6261, allocations: 8 kB / 1.028 GB, free: 7.113 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.931e-05/0.6262, allocations: 63.97 kB / 1.028 GB, free: 7.051 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0003385/0.6265, allocations: 291.1 kB / 1.028 GB, free: 6.77 MB / 0.7794 GB Notification: Performance of sort global known variables: time 3.216e-06/0.6265, allocations: 0 / 1.028 GB, free: 6.77 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0004149/0.6269, allocations: 71.92 kB / 1.028 GB, free: 6.699 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.0001666/0.6271, allocations: 121.5 kB / 1.028 GB, free: 6.574 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.00141/0.6285, allocations: 447.6 kB / 1.029 GB, free: 6.113 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.6285, allocations: 0 / 1.029 GB, free: 6.113 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.000885/0.6294, allocations: 119.8 kB / 1.029 GB, free: 5.996 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003855/0.6298, allocations: 34.5 kB / 1.029 GB, free: 5.965 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001698/0.6315, allocations: 0.6667 MB / 1.029 GB, free: 5.27 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004173/0.632, allocations: 0.7711 MB / 1.03 GB, free: 4.469 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 7.032e-05/0.632, allocations: 17.06 kB / 1.03 GB, free: 4.453 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.309e-05/0.6321, allocations: 15.44 kB / 1.03 GB, free: 4.438 MB / 0.7794 GB Notification: Performance of SimCode: time 3.61e-07/0.6321, allocations: 4 kB / 1.03 GB, free: 4.434 MB / 0.7794 GB Notification: Performance of Templates: time 0.009595/0.6417, allocations: 5.037 MB / 1.035 GB, free: 15.3 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=400 -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