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.001614/0.001614, allocations: 103.4 kB / 16.39 MB, free: 6.379 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.001866/0.001866, allocations: 192.5 kB / 17.33 MB, free: 5.848 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.522/1.522, allocations: 222.9 MB / 241 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.803/2.803, allocations: 474.5 MB / 0.7477 GB, free: 14.04 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.002001/0.002001, allocations: 68.03 kB / 1.073 GB, free: 7.273 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8173/0.8193, allocations: 160.3 MB / 1.229 GB, free: 10.98 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.002732/0.8221, allocations: 1.51 MB / 1.231 GB, free: 9.457 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.0013/0.8234, allocations: 0.548 MB / 1.231 GB, free: 8.91 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.235e-05/0.8235, allocations: 4 kB / 1.231 GB, free: 8.906 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 9.296e-05/0.8236, allocations: 7.875 kB / 1.231 GB, free: 8.898 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0001045/0.8237, allocations: 23.86 kB / 1.231 GB, free: 8.875 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007758/0.8245, allocations: 311.1 kB / 1.231 GB, free: 8.574 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0005954/0.8251, allocations: 0.5033 MB / 1.232 GB, free: 8.07 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 4.726e-05/0.8251, allocations: 12 kB / 1.232 GB, free: 8.059 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003846/0.8255, allocations: 279.6 kB / 1.232 GB, free: 7.785 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002894/0.8258, allocations: 146.6 kB / 1.232 GB, free: 7.645 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 7.858e-05/0.8259, allocations: 28 kB / 1.232 GB, free: 7.617 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 7.082e-05/0.826, allocations: 24 kB / 1.232 GB, free: 7.594 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0001524/0.8261, allocations: 115.7 kB / 1.233 GB, free: 7.48 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0002137/0.8264, allocations: 187 kB / 1.233 GB, free: 7.297 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0004663/0.8268, allocations: 423 kB / 1.233 GB, free: 6.887 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 6.382e-06/0.8268, allocations: 4 kB / 1.233 GB, free: 6.883 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.783e-06/0.8269, allocations: 0 / 1.233 GB, free: 6.883 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 6.772e-06/0.8269, allocations: 0 / 1.233 GB, free: 6.883 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.001375/0.8282, allocations: 0.8781 MB / 1.234 GB, free: 5.914 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.156e-05/0.8283, allocations: 8.031 kB / 1.234 GB, free: 5.906 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001205/0.8284, allocations: 52.7 kB / 1.234 GB, free: 5.855 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004015/0.8288, allocations: 314.5 kB / 1.234 GB, free: 5.508 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.389e-05/0.8289, allocations: 20.36 kB / 1.234 GB, free: 5.488 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.173e-05/0.829, allocations: 24.36 kB / 1.234 GB, free: 5.465 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009565/0.8299, allocations: 210 kB / 1.235 GB, free: 5.254 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.758e-06/0.8299, allocations: 192 / 1.235 GB, free: 5.254 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.244e-05/0.83, allocations: 11.94 kB / 1.235 GB, free: 5.242 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.038e-06/0.83, allocations: 0 / 1.235 GB, free: 5.242 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007638/0.8308, allocations: 107.8 kB / 1.235 GB, free: 5.137 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004841/0.8313, allocations: 393.2 kB / 1.235 GB, free: 4.703 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001043/0.8323, allocations: 170.5 kB / 1.235 GB, free: 4.527 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007403/0.8331, allocations: 112.8 kB / 1.235 GB, free: 4.414 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 3.089e-05/0.8331, allocations: 4 kB / 1.235 GB, free: 4.41 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000935/0.8341, allocations: 223.1 kB / 1.236 GB, free: 4.18 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=16): time 3.627e-06/0.8341, allocations: 3.938 kB / 1.236 GB, free: 4.176 MB / 0.9512 GB Notification: Performance of matching and sorting (n=16): time 0.002539/0.8366, allocations: 496.1 kB / 1.236 GB, free: 3.688 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.758e-05/0.8367, allocations: 59.34 kB / 1.236 GB, free: 3.617 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004631/0.8372, allocations: 417.9 kB / 1.236 GB, free: 3.195 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 6.676e-05/0.8372, allocations: 41.69 kB / 1.236 GB, free: 3.148 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 8.901e-05/0.8373, allocations: 97.44 kB / 1.237 GB, free: 3.051 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 5.671e-05/0.8374, allocations: 39.73 kB / 1.237 GB, free: 3.012 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002174/0.8376, allocations: 125.5 kB / 1.237 GB, free: 2.883 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001574/0.8378, allocations: 326.8 kB / 1.237 GB, free: 2.555 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002838/0.8381, allocations: 119.9 kB / 1.237 GB, free: 2.438 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003089/0.8384, allocations: 177.4 kB / 1.237 GB, free: 2.246 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004247/0.8388, allocations: 278.8 kB / 1.238 GB, free: 1.941 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.985e-06/0.8388, allocations: 0 / 1.238 GB, free: 1.941 MB / 0.9512 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009022/0.8397, allocations: 490.4 kB / 1.238 GB, free: 1.445 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 9.458e-05/0.8398, allocations: 91.31 kB / 1.238 GB, free: 1.344 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.941e-06/0.8398, allocations: 4 kB / 1.238 GB, free: 1.34 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.757e-05/0.8399, allocations: 4 kB / 1.238 GB, free: 1.336 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001617/0.84, allocations: 16.17 kB / 1.238 GB, free: 1.32 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.427e-05/0.8401, allocations: 15.92 kB / 1.238 GB, free: 1.305 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000464/0.8405, allocations: 59.78 kB / 1.238 GB, free: 1.246 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.534e-05/0.8406, allocations: 67.97 kB / 1.238 GB, free: 1.18 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.0002287/0.8409, allocations: 185.8 kB / 1.239 GB, free: 0.9922 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.049e-05/0.8409, allocations: 39.7 kB / 1.239 GB, free: 0.9531 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.938e-05/0.841, allocations: 47.73 kB / 1.239 GB, free: 0.9102 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.12e-06/0.841, allocations: 4 kB / 1.239 GB, free: 0.9062 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.993e-06/0.841, allocations: 7.938 kB / 1.239 GB, free: 0.8984 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.416e-06/0.8411, allocations: 0 / 1.239 GB, free: 0.8984 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002246/0.8433, allocations: 0.7444 MB / 1.239 GB, free: 96 kB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.295e-06/0.8433, allocations: 0 / 1.239 GB, free: 96 kB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.033e-05/0.8434, allocations: 7.938 kB / 1.239 GB, free: 88 kB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.176e-06/0.8434, allocations: 0 / 1.239 GB, free: 88 kB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.311e-05/0.8434, allocations: 23.97 kB / 1.239 GB, free: 64 kB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.8434, allocations: 0 / 1.239 GB, free: 64 kB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.8434, allocations: 0 / 1.239 GB, free: 64 kB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001796/0.8452, allocations: 475.4 kB / 1.24 GB, free: 15.58 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002774/0.8455, allocations: 208.7 kB / 1.24 GB, free: 15.36 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.31e-05/0.8456, allocations: 8 kB / 1.24 GB, free: 15.35 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004674/0.8461, allocations: 27.97 kB / 1.24 GB, free: 15.32 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.998e-05/0.8461, allocations: 15.98 kB / 1.24 GB, free: 15.31 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.479e-05/0.8462, allocations: 55.97 kB / 1.24 GB, free: 15.25 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0003376/0.8466, allocations: 295.1 kB / 1.24 GB, free: 14.96 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8466, allocations: 0 / 1.24 GB, free: 14.96 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0003635/0.8469, allocations: 71.92 kB / 1.24 GB, free: 14.89 MB / 0.9669 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.0001768/0.8471, allocations: 116.9 kB / 1.241 GB, free: 14.77 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.001328/0.8485, allocations: 449 kB / 1.241 GB, free: 14.31 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 4.369e-06/0.8485, allocations: 0 / 1.241 GB, free: 14.31 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0007562/0.8492, allocations: 119.8 kB / 1.241 GB, free: 14.19 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003706/0.8496, allocations: 33.42 kB / 1.241 GB, free: 14.16 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001574/0.8512, allocations: 0.5645 MB / 1.242 GB, free: 13.57 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004564/0.8517, allocations: 0.7784 MB / 1.242 GB, free: 12.77 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 6.998e-05/0.8517, allocations: 9.094 kB / 1.242 GB, free: 12.75 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.343e-05/0.8518, allocations: 19.42 kB / 1.242 GB, free: 12.73 MB / 0.9669 GB Notification: Performance of SimCode: time 3.01e-07/0.8518, allocations: 0 / 1.242 GB, free: 12.73 MB / 0.9669 GB Notification: Performance of Templates: time 0.009713/0.8615, allocations: 5.02 MB / 1.247 GB, free: 7.621 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches