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.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_latest_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_latest_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.008852/0.008852, allocations: 98.02 kB / 15.73 MB, free: 6.055 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.002186/0.002187, allocations: 193.5 kB / 16.68 MB, free: 5.969 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.407/1.407, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.603/2.603, allocations: 472.7 MB / 0.7453 GB, free: 0.5195 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001281/0.001281, allocations: 56.09 kB / 1.069 GB, free: 9.637 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9216/0.9229, allocations: 159.9 MB / 1.226 GB, free: 13.55 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.002408/0.9254, allocations: 1.518 MB / 1.227 GB, free: 12.03 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.001185/0.9266, allocations: 0.5584 MB / 1.228 GB, free: 11.48 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.241e-05/0.9266, allocations: 0 / 1.228 GB, free: 11.48 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 8.692e-05/0.9267, allocations: 7.875 kB / 1.228 GB, free: 11.47 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0001035/0.9269, allocations: 23.86 kB / 1.228 GB, free: 11.45 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007699/0.9276, allocations: 314 kB / 1.228 GB, free: 11.14 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0005939/0.9282, allocations: 0.4994 MB / 1.228 GB, free: 10.64 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 6.542e-05/0.9283, allocations: 8 kB / 1.228 GB, free: 10.63 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003875/0.9287, allocations: 279.6 kB / 1.229 GB, free: 10.36 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003049/0.929, allocations: 139.6 kB / 1.229 GB, free: 10.22 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 0.0001117/0.9291, allocations: 24 kB / 1.229 GB, free: 10.2 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 9.575e-05/0.9292, allocations: 28 kB / 1.229 GB, free: 10.17 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0001465/0.9294, allocations: 115.7 kB / 1.229 GB, free: 10.06 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.000208/0.9296, allocations: 195 kB / 1.229 GB, free: 9.867 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0004599/0.9301, allocations: 423 kB / 1.23 GB, free: 9.457 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.9301, allocations: 0 / 1.23 GB, free: 9.457 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.843e-06/0.9301, allocations: 0 / 1.23 GB, free: 9.457 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 1.35e-05/0.9301, allocations: 0 / 1.23 GB, free: 9.457 MB / 0.9512 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.001368/0.9315, allocations: 0.8704 MB / 1.23 GB, free: 8.496 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.126e-05/0.9315, allocations: 12.03 kB / 1.23 GB, free: 8.484 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001238/0.9317, allocations: 52.7 kB / 1.23 GB, free: 8.434 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003174/0.932, allocations: 322.5 kB / 1.231 GB, free: 8.078 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.597e-05/0.932, allocations: 16.36 kB / 1.231 GB, free: 8.062 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.587e-05/0.9321, allocations: 28.36 kB / 1.231 GB, free: 8.035 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009243/0.9331, allocations: 217.1 kB / 1.231 GB, free: 7.82 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.667e-06/0.9331, allocations: 192 / 1.231 GB, free: 7.82 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.564e-05/0.9331, allocations: 3.938 kB / 1.231 GB, free: 7.816 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.601e-06/0.9331, allocations: 4 kB / 1.231 GB, free: 7.812 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007539/0.9339, allocations: 107.9 kB / 1.231 GB, free: 7.707 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000507/0.9344, allocations: 393.2 kB / 1.232 GB, free: 7.273 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001049/0.9355, allocations: 174.5 kB / 1.232 GB, free: 7.094 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007383/0.9362, allocations: 112.7 kB / 1.232 GB, free: 6.98 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.767e-05/0.9362, allocations: 0 / 1.232 GB, free: 6.98 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00097/0.9372, allocations: 231.1 kB / 1.232 GB, free: 6.742 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=16): time 1.653e-06/0.9372, allocations: 0 / 1.232 GB, free: 6.742 MB / 0.9512 GB Notification: Performance of matching and sorting (n=16): time 0.002514/0.9398, allocations: 493 kB / 1.232 GB, free: 6.254 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.937e-05/0.9398, allocations: 59.41 kB / 1.233 GB, free: 6.184 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004083/0.9402, allocations: 409.9 kB / 1.233 GB, free: 5.77 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 5.639e-05/0.9403, allocations: 41.69 kB / 1.233 GB, free: 5.723 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 7.952e-05/0.9404, allocations: 93.44 kB / 1.233 GB, free: 5.629 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 4.787e-05/0.9404, allocations: 43.73 kB / 1.233 GB, free: 5.586 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001971/0.9406, allocations: 129.5 kB / 1.233 GB, free: 5.453 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001352/0.9408, allocations: 322.8 kB / 1.234 GB, free: 5.129 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002596/0.941, allocations: 111.9 kB / 1.234 GB, free: 5.02 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003048/0.9414, allocations: 169.9 kB / 1.234 GB, free: 4.832 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003784/0.9417, allocations: 281.2 kB / 1.234 GB, free: 4.523 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-06/0.9418, allocations: 4 kB / 1.234 GB, free: 4.52 MB / 0.9512 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008216/0.9426, allocations: 489.9 kB / 1.235 GB, free: 4.023 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 7.684e-05/0.9427, allocations: 91.31 kB / 1.235 GB, free: 3.922 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.205e-06/0.9427, allocations: 4 kB / 1.235 GB, free: 3.918 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.388e-05/0.9427, allocations: 0 / 1.235 GB, free: 3.918 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001653/0.9429, allocations: 27.92 kB / 1.235 GB, free: 3.891 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.544e-06/0.9429, allocations: 4 kB / 1.235 GB, free: 3.887 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004814/0.9434, allocations: 67.95 kB / 1.235 GB, free: 3.82 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.143e-05/0.9435, allocations: 59.98 kB / 1.235 GB, free: 3.762 MB / 0.9512 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.0002373/0.9437, allocations: 194.2 kB / 1.235 GB, free: 3.566 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.412e-05/0.9438, allocations: 39.7 kB / 1.235 GB, free: 3.527 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.277e-05/0.9438, allocations: 47.72 kB / 1.235 GB, free: 3.484 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.769e-06/0.9438, allocations: 4 kB / 1.235 GB, free: 3.48 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.9439, allocations: 0 / 1.235 GB, free: 3.48 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.9439, allocations: 0 / 1.235 GB, free: 3.48 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002163/0.946, allocations: 0.7413 MB / 1.236 GB, free: 2.68 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.946, allocations: 0 / 1.236 GB, free: 2.68 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.621e-05/0.9461, allocations: 11.98 kB / 1.236 GB, free: 2.668 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.699e-06/0.9461, allocations: 4 kB / 1.236 GB, free: 2.664 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.869e-05/0.9462, allocations: 19.97 kB / 1.236 GB, free: 2.645 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.9462, allocations: 7.938 kB / 1.236 GB, free: 2.637 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.9462, allocations: 0 / 1.236 GB, free: 2.637 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001702/0.9479, allocations: 476.5 kB / 1.236 GB, free: 2.156 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002634/0.9482, allocations: 208.7 kB / 1.236 GB, free: 1.934 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.107e-05/0.9482, allocations: 12 kB / 1.237 GB, free: 1.922 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004706/0.9487, allocations: 23.97 kB / 1.237 GB, free: 1.898 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.547e-05/0.9488, allocations: 15.98 kB / 1.237 GB, free: 1.883 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.365e-05/0.9488, allocations: 55.97 kB / 1.237 GB, free: 1.828 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0002918/0.9491, allocations: 295.1 kB / 1.237 GB, free: 1.539 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9491, allocations: 3.938 kB / 1.237 GB, free: 1.535 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0003433/0.9495, allocations: 64 kB / 1.237 GB, free: 1.473 MB / 0.9512 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.0001401/0.9496, allocations: 124.9 kB / 1.237 GB, free: 1.336 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.001253/0.9509, allocations: 441.1 kB / 1.237 GB, free: 0.8828 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.9509, allocations: 384 / 1.237 GB, free: 0.8828 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0007753/0.9517, allocations: 123.9 kB / 1.238 GB, free: 0.7617 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003576/0.952, allocations: 33.48 kB / 1.238 GB, free: 0.7305 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001482/0.9535, allocations: 0.551 MB / 1.238 GB, free: 156 kB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004083/0.954, allocations: 0.7824 MB / 1.239 GB, free: 15.34 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 6.34e-05/0.954, allocations: 13.09 kB / 1.239 GB, free: 15.32 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.266e-05/0.9541, allocations: 19.42 kB / 1.239 GB, free: 15.31 MB / 0.9669 GB Notification: Performance of SimCode: time 5.51e-07/0.9541, allocations: 0 / 1.239 GB, free: 15.31 MB / 0.9669 GB Notification: Performance of Templates: time 0.008446/0.9625, allocations: 5.019 MB / 1.244 GB, free: 10.19 MB / 0.9669 GB make -j1 -f Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.makefile (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=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Time_Examples_CalendarTime.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches