Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.00148/0.00148, allocations: 106.3 kB / 16.41 MB, free: 6.5 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.001762/0.001762, allocations: 185.5 kB / 17.34 MB, free: 5.766 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.468/1.468, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.289/2.289, allocations: 390.3 MB / 0.6655 GB, free: 0.6172 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001276/0.001277, allocations: 64.05 kB / 0.9515 GB, free: 7.672 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.127/1.128, allocations: 140.4 MB / 1.089 GB, free: 5.512 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.002793/1.131, allocations: 1.511 MB / 1.09 GB, free: 4.457 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001335/1.132, allocations: 0.5487 MB / 1.091 GB, free: 4.105 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.462e-05/1.132, allocations: 1.094 kB / 1.091 GB, free: 4.105 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001128/1.132, allocations: 9.281 kB / 1.091 GB, free: 4.098 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001232/1.133, allocations: 30.64 kB / 1.091 GB, free: 4.082 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.000927/1.134, allocations: 308.9 kB / 1.091 GB, free: 3.93 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0006456/1.134, allocations: 0.4995 MB / 1.091 GB, free: 3.734 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 4.905e-05/1.134, allocations: 8.797 kB / 1.091 GB, free: 3.73 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004521/1.135, allocations: 273.7 kB / 1.092 GB, free: 3.652 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003242/1.135, allocations: 141.3 kB / 1.092 GB, free: 3.605 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0001104/1.135, allocations: 27.34 kB / 1.092 GB, free: 3.605 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001062/1.135, allocations: 30.47 kB / 1.092 GB, free: 3.602 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001713/1.135, allocations: 114.5 kB / 1.092 GB, free: 3.566 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0002114/1.136, allocations: 189.3 kB / 1.092 GB, free: 3.457 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0005418/1.136, allocations: 426.8 kB / 1.093 GB, free: 3.301 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.67e-06/1.136, allocations: 0.5625 kB / 1.093 GB, free: 3.301 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.623e-06/1.136, allocations: 3.938 kB / 1.093 GB, free: 3.297 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.815e-06/1.136, allocations: 0.75 kB / 1.093 GB, free: 3.297 MB / 0.8575 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.001258/1.138, allocations: 0.8657 MB / 1.093 GB, free: 2.559 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.877e-05/1.138, allocations: 13.59 kB / 1.093 GB, free: 2.555 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001366/1.138, allocations: 47.33 kB / 1.093 GB, free: 2.539 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003532/1.138, allocations: 304.2 kB / 1.094 GB, free: 2.273 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.984e-05/1.138, allocations: 22.2 kB / 1.094 GB, free: 2.266 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.52e-05/1.138, allocations: 29.08 kB / 1.094 GB, free: 2.262 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001072/1.139, allocations: 215.3 kB / 1.094 GB, free: 2.203 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.024e-05/1.139, allocations: 0.9375 kB / 1.094 GB, free: 2.203 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.306e-05/1.139, allocations: 14.2 kB / 1.094 GB, free: 2.191 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.056e-06/1.139, allocations: 1.625 kB / 1.094 GB, free: 2.191 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008165/1.14, allocations: 100.1 kB / 1.094 GB, free: 2.176 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005769/1.141, allocations: 391.8 kB / 1.094 GB, free: 1.91 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00112/1.142, allocations: 175.7 kB / 1.095 GB, free: 1.855 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007923/1.143, allocations: 108.2 kB / 1.095 GB, free: 1.832 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.141e-05/1.143, allocations: 1.938 kB / 1.095 GB, free: 1.832 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001102/1.144, allocations: 232.5 kB / 1.095 GB, free: 1.742 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=16): time 2.194e-06/1.144, allocations: 0 / 1.095 GB, free: 1.742 MB / 0.8575 GB Notification: Performance of matching and sorting (n=16): time 0.002898/1.147, allocations: 485.4 kB / 1.095 GB, free: 1.629 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.339e-05/1.147, allocations: 62.33 kB / 1.096 GB, free: 1.562 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005706/1.147, allocations: 407.8 kB / 1.096 GB, free: 1.371 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 9.587e-05/1.148, allocations: 39.48 kB / 1.096 GB, free: 1.336 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 7.611e-05/1.148, allocations: 99.69 kB / 1.096 GB, free: 1.246 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 5.041e-05/1.148, allocations: 40.39 kB / 1.096 GB, free: 1.215 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000248/1.148, allocations: 127.7 kB / 1.096 GB, free: 1.16 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 6.495e-05/1.148, allocations: 321.9 kB / 1.097 GB, free: 0.8438 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002965/1.148, allocations: 116.3 kB / 1.097 GB, free: 0.8125 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002948/1.149, allocations: 177.9 kB / 1.097 GB, free: 0.7109 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000372/1.149, allocations: 273.3 kB / 1.097 GB, free: 0.5156 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/1.149, allocations: 4.797 kB / 1.097 GB, free: 0.5117 MB / 0.8575 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008724/1.15, allocations: 494.8 kB / 1.098 GB, free: 304 kB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 8.593e-05/1.15, allocations: 94.27 kB / 1.098 GB, free: 224 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.907e-06/1.15, allocations: 2.219 kB / 1.098 GB, free: 224 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.905e-05/1.15, allocations: 2.156 kB / 1.098 GB, free: 224 kB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001828/1.15, allocations: 20.28 kB / 1.098 GB, free: 224 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.161e-05/1.15, allocations: 7.75 kB / 1.098 GB, free: 220 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005333/1.151, allocations: 63.27 kB / 1.098 GB, free: 204 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001082/1.151, allocations: 59.94 kB / 1.098 GB, free: 200 kB / 0.8575 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.0002898/1.151, allocations: 194.6 kB / 1.098 GB, free: 56 kB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.7e-05/1.151, allocations: 43.86 kB / 1.098 GB, free: 28 kB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.608e-05/1.151, allocations: 41.84 kB / 1.098 GB, free: 4 kB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.85e-06/1.151, allocations: 2.062 kB / 1.098 GB, free: 4 kB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.388e-06/1.151, allocations: 5.594 kB / 1.098 GB, free: 0 / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.372e-06/1.151, allocations: 0.6562 kB / 1.098 GB, free: 0 / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002505/1.154, allocations: 0.7464 MB / 1.099 GB, free: 15.59 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.797e-06/1.154, allocations: 0.6562 kB / 1.099 GB, free: 15.59 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.428e-05/1.154, allocations: 13.28 kB / 1.099 GB, free: 15.58 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.999e-06/1.154, allocations: 1.188 kB / 1.099 GB, free: 15.58 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.172e-05/1.154, allocations: 17.75 kB / 1.099 GB, free: 15.58 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.965e-06/1.154, allocations: 1.766 kB / 1.099 GB, free: 15.58 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.943e-06/1.154, allocations: 3.938 kB / 1.099 GB, free: 15.58 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001928/1.156, allocations: 477 kB / 1.099 GB, free: 15.38 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003255/1.156, allocations: 204.5 kB / 1.099 GB, free: 15.23 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.193e-05/1.156, allocations: 9.609 kB / 1.099 GB, free: 15.23 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005022/1.157, allocations: 29.25 kB / 1.099 GB, free: 15.23 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.843e-05/1.157, allocations: 11.59 kB / 1.1 GB, free: 15.23 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.302e-05/1.157, allocations: 57.06 kB / 1.1 GB, free: 15.23 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0004165/1.157, allocations: 297.3 kB / 1.1 GB, free: 15.09 MB / 0.8731 GB Notification: Performance of sort global known variables: time 2.41e-07/1.157, allocations: 0 / 1.1 GB, free: 15.09 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.000584/1.158, allocations: 69.45 kB / 1.1 GB, free: 15.08 MB / 0.8731 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.0001905/1.158, allocations: 120.2 kB / 1.1 GB, free: 14.97 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001496/1.16, allocations: 437 kB / 1.1 GB, free: 14.77 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 6.182e-06/1.16, allocations: 0.5625 kB / 1.1 GB, free: 14.77 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.000921/1.161, allocations: 125 kB / 1.101 GB, free: 14.74 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000414/1.161, allocations: 30.33 kB / 1.101 GB, free: 14.73 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001799/1.163, allocations: 0.5854 MB / 1.101 GB, free: 14.4 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004241/1.163, allocations: 0.7702 MB / 1.102 GB, free: 13.7 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.061e-05/1.163, allocations: 21.11 kB / 1.102 GB, free: 13.68 MB / 0.8731 GB Notification: Performance of SimCode: time 3.457e-06/1.163, allocations: 1.344 kB / 1.102 GB, free: 13.68 MB / 0.8731 GB Notification: Performance of Templates: time 0.008509/1.172, allocations: 3.729 MB / 1.106 GB, free: 13.12 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime.makefile (rm -f Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; mkfifo Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime.pipe >> ../files/Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime.sim & ./Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Time_Examples_CalendarTime.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches