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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001723/0.001723, allocations: 115.1 kB / 17.08 MB, free: 5.793 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001893/0.001894, allocations: 193.2 kB / 20.03 MB, free: 2.906 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.432/1.432, allocations: 222.9 MB / 245.7 MB, free: 4.203 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.026/3.026, allocations: 489.3 MB / 0.7687 GB, free: 3.77 MB / 0.6075 GB " [Timeout remaining time 176] 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=155429,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=155429,variableFilter="time|calendarTime2016.year|calendarTime2016.month|calendarTime2016.day|calendarTime2016.hour|calendarTime2016.minute",fileNamePrefix="Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001998/0.001998, allocations: 67.89 kB / 1.103 GB, free: 0.8125 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9193/0.9213, allocations: 163.8 MB / 1.263 GB, free: 7.98 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.002302/0.9237, allocations: 1.519 MB / 1.264 GB, free: 6.934 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001168/0.9249, allocations: 0.5457 MB / 1.265 GB, free: 6.578 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.095e-05/0.925, allocations: 0.8125 kB / 1.265 GB, free: 6.578 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 9.675e-05/0.9251, allocations: 12.31 kB / 1.265 GB, free: 6.57 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001027/0.9252, allocations: 26.81 kB / 1.265 GB, free: 6.559 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007815/0.926, allocations: 303.8 kB / 1.265 GB, free: 6.414 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0005992/0.9266, allocations: 0.507 MB / 1.265 GB, free: 6.211 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.289e-05/0.9266, allocations: 6.672 kB / 1.265 GB, free: 6.211 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003942/0.927, allocations: 275.7 kB / 1.266 GB, free: 6.129 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002884/0.9273, allocations: 144.3 kB / 1.266 GB, free: 6.078 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001033/0.9274, allocations: 26.16 kB / 1.266 GB, free: 6.078 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 9.84e-05/0.9275, allocations: 27.25 kB / 1.266 GB, free: 6.078 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001468/0.9277, allocations: 118.8 kB / 1.266 GB, free: 6.039 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001875/0.9279, allocations: 181.3 kB / 1.266 GB, free: 5.938 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0005115/0.9284, allocations: 427.3 kB / 1.267 GB, free: 5.781 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.9284, allocations: 0.7188 kB / 1.267 GB, free: 5.781 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.654e-06/0.9284, allocations: 3.938 kB / 1.267 GB, free: 5.777 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 7.143e-06/0.9284, allocations: 0 / 1.267 GB, free: 5.777 MB / 0.9981 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.001121/0.9295, allocations: 0.8767 MB / 1.267 GB, free: 5.027 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.375e-05/0.9296, allocations: 10.11 kB / 1.267 GB, free: 5.027 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001154/0.9297, allocations: 59.42 kB / 1.267 GB, free: 5 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003054/0.93, allocations: 320.4 kB / 1.268 GB, free: 4.719 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.39e-05/0.9301, allocations: 18.61 kB / 1.268 GB, free: 4.715 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.932e-05/0.9302, allocations: 28.58 kB / 1.268 GB, free: 4.711 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000951/0.9311, allocations: 217.2 kB / 1.268 GB, free: 4.648 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.748e-06/0.9311, allocations: 192 / 1.268 GB, free: 4.648 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.863e-05/0.9312, allocations: 9.594 kB / 1.268 GB, free: 4.641 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.699e-06/0.9312, allocations: 1.625 kB / 1.268 GB, free: 4.641 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007588/0.9319, allocations: 100.8 kB / 1.268 GB, free: 4.625 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004255/0.9324, allocations: 387.6 kB / 1.268 GB, free: 4.363 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001013/0.9334, allocations: 172.5 kB / 1.269 GB, free: 4.312 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007241/0.9341, allocations: 111.8 kB / 1.269 GB, free: 4.285 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.591e-05/0.9342, allocations: 2.859 kB / 1.269 GB, free: 4.285 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009037/0.9351, allocations: 224.1 kB / 1.269 GB, free: 4.203 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=16): time 1.803e-06/0.9351, allocations: 1.094 kB / 1.269 GB, free: 4.203 MB / 0.9981 GB Notification: Performance of matching and sorting (n=16): time 0.002564/0.9377, allocations: 493.1 kB / 1.269 GB, free: 4.086 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.495e-05/0.9377, allocations: 60.56 kB / 1.27 GB, free: 4.02 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004229/0.9381, allocations: 416.6 kB / 1.27 GB, free: 3.82 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 5.505e-05/0.9382, allocations: 38.8 kB / 1.27 GB, free: 3.785 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 6.127e-05/0.9383, allocations: 98.66 kB / 1.27 GB, free: 3.695 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 4.188e-05/0.9383, allocations: 41.47 kB / 1.27 GB, free: 3.664 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002135/0.9385, allocations: 127.1 kB / 1.27 GB, free: 3.609 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 5.218e-05/0.9386, allocations: 325.4 kB / 1.271 GB, free: 3.289 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002737/0.9389, allocations: 116.5 kB / 1.271 GB, free: 3.258 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002784/0.9392, allocations: 171.3 kB / 1.271 GB, free: 3.164 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000334/0.9395, allocations: 275.2 kB / 1.271 GB, free: 2.965 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.9395, allocations: 0.9062 kB / 1.271 GB, free: 2.965 MB / 0.9981 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000813/0.9403, allocations: 487.3 kB / 1.272 GB, free: 2.758 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 6.932e-05/0.9404, allocations: 91.28 kB / 1.272 GB, free: 2.68 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.532e-06/0.9404, allocations: 2 kB / 1.272 GB, free: 2.68 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.847e-05/0.9404, allocations: 3.062 kB / 1.272 GB, free: 2.68 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001619/0.9406, allocations: 28.86 kB / 1.272 GB, free: 2.672 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.414e-06/0.9406, allocations: 2.875 kB / 1.272 GB, free: 2.672 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004772/0.9411, allocations: 59.23 kB / 1.272 GB, free: 2.66 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001026/0.9412, allocations: 61.16 kB / 1.272 GB, free: 2.656 MB / 0.9981 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.0002098/0.9414, allocations: 192.3 kB / 1.272 GB, free: 2.516 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.238e-05/0.9415, allocations: 46.73 kB / 1.272 GB, free: 2.488 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.639e-05/0.9416, allocations: 40.5 kB / 1.272 GB, free: 2.469 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-06/0.9416, allocations: 6.938 kB / 1.272 GB, free: 2.465 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.9416, allocations: 0 / 1.272 GB, free: 2.465 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.9416, allocations: 3.797 kB / 1.272 GB, free: 2.465 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002061/0.9437, allocations: 0.7512 MB / 1.273 GB, free: 2.051 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.374e-06/0.9437, allocations: 3.984 kB / 1.273 GB, free: 2.047 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.371e-05/0.9437, allocations: 4.281 kB / 1.273 GB, free: 2.047 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.126e-06/0.9437, allocations: 0.9688 kB / 1.273 GB, free: 2.047 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.714e-05/0.9438, allocations: 21.7 kB / 1.273 GB, free: 2.043 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.735e-06/0.9438, allocations: 2.172 kB / 1.273 GB, free: 2.043 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.9438, allocations: 3.938 kB / 1.273 GB, free: 2.039 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001663/0.9454, allocations: 481.1 kB / 1.273 GB, free: 1.832 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002075/0.9457, allocations: 201.3 kB / 1.273 GB, free: 1.695 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.88e-05/0.9457, allocations: 9.438 kB / 1.273 GB, free: 1.691 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004481/0.9462, allocations: 36.3 kB / 1.273 GB, free: 1.688 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.603e-05/0.9462, allocations: 10.72 kB / 1.273 GB, free: 1.684 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.744e-05/0.9463, allocations: 56.3 kB / 1.274 GB, free: 1.684 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0002564/0.9466, allocations: 296 kB / 1.274 GB, free: 1.551 MB / 0.9981 GB Notification: Performance of sort global known variables: time 2.01e-07/0.9466, allocations: 0 / 1.274 GB, free: 1.551 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0003783/0.947, allocations: 64.17 kB / 1.274 GB, free: 1.547 MB / 0.9981 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.0001104/0.9471, allocations: 119.4 kB / 1.274 GB, free: 1.441 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.001201/0.9483, allocations: 444.1 kB / 1.274 GB, free: 1.23 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.9483, allocations: 0 / 1.274 GB, free: 1.23 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0007364/0.949, allocations: 122.6 kB / 1.275 GB, free: 1.207 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003482/0.9494, allocations: 39.83 kB / 1.275 GB, free: 1.18 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001389/0.9508, allocations: 0.5974 MB / 1.275 GB, free: 0.832 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000216/0.951, allocations: 0.7703 MB / 1.276 GB, free: 132 kB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.501e-05/0.9511, allocations: 17.14 kB / 1.276 GB, free: 124 kB / 0.9981 GB Notification: Performance of SimCode: time 3.01e-07/0.9511, allocations: 0 / 1.276 GB, free: 124 kB / 0.9981 GB Notification: Performance of Templates: time 0.006414/0.9575, allocations: 3.724 MB / 1.28 GB, free: 15.57 MB / 1.014 GB " [Timeout remaining time 299] make -j1 -f Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.makefile [Timeout 300] (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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.pipe 2>&1) [Timeout 800] 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_2/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 12.754175978945568]