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.008353/0.008353, allocations: 102 kB / 15.73 MB, free: 6.039 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.001572/0.001572, allocations: 193 kB / 16.67 MB, free: 5.961 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.486/1.486, 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 9.1.3-maint.9.1.x/package.mo): time 2.323/2.323, allocations: 390.2 MB / 0.6648 GB, free: 0.6289 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.002401/0.002401, allocations: 67.88 kB / 0.9508 GB, free: 7.652 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.08/1.082, allocations: 140.4 MB / 1.088 GB, free: 5.5 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.002863/1.085, allocations: 1.517 MB / 1.089 GB, free: 4.438 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001373/1.086, allocations: 0.5515 MB / 1.09 GB, free: 4.078 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.465e-05/1.086, allocations: 1.125 kB / 1.09 GB, free: 4.078 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001119/1.087, allocations: 5.344 kB / 1.09 GB, free: 4.074 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001226/1.087, allocations: 30.67 kB / 1.09 GB, free: 4.059 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008772/1.088, allocations: 307.7 kB / 1.09 GB, free: 3.91 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0007428/1.088, allocations: 0.5064 MB / 1.091 GB, free: 3.707 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 5.978e-05/1.088, allocations: 10.98 kB / 1.091 GB, free: 3.703 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004699/1.089, allocations: 269.6 kB / 1.091 GB, free: 3.629 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003239/1.089, allocations: 143.7 kB / 1.091 GB, free: 3.578 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0001142/1.089, allocations: 26.19 kB / 1.091 GB, free: 3.578 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001077/1.089, allocations: 26.84 kB / 1.091 GB, free: 3.578 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001917/1.09, allocations: 119.3 kB / 1.091 GB, free: 3.539 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0002271/1.09, allocations: 188.4 kB / 1.091 GB, free: 3.43 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0005742/1.09, allocations: 423.4 kB / 1.092 GB, free: 3.277 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.611e-06/1.09, allocations: 0.7812 kB / 1.092 GB, free: 3.277 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.354e-06/1.09, allocations: 0 / 1.092 GB, free: 3.277 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.995e-06/1.09, allocations: 0.6562 kB / 1.092 GB, free: 3.277 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.001312/1.092, allocations: 0.8646 MB / 1.093 GB, free: 2.539 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.569e-05/1.092, allocations: 9.812 kB / 1.093 GB, free: 2.539 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001385/1.092, allocations: 51.62 kB / 1.093 GB, free: 2.52 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004141/1.092, allocations: 313.1 kB / 1.093 GB, free: 2.246 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.249e-05/1.092, allocations: 21.19 kB / 1.093 GB, free: 2.238 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.514e-05/1.093, allocations: 25.16 kB / 1.093 GB, free: 2.238 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0011/1.094, allocations: 212 kB / 1.093 GB, free: 2.18 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.065e-05/1.094, allocations: 1.344 kB / 1.093 GB, free: 2.18 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.53e-05/1.094, allocations: 10.25 kB / 1.093 GB, free: 2.172 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.983e-06/1.094, allocations: 5.062 kB / 1.093 GB, free: 2.168 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008511/1.095, allocations: 100.2 kB / 1.093 GB, free: 2.156 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005986/1.095, allocations: 386.8 kB / 1.094 GB, free: 1.895 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001167/1.096, allocations: 180.9 kB / 1.094 GB, free: 1.836 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008426/1.097, allocations: 107.4 kB / 1.094 GB, free: 1.812 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.957e-05/1.097, allocations: 2.188 kB / 1.094 GB, free: 1.812 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001093/1.098, allocations: 225.3 kB / 1.094 GB, free: 1.73 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=16): time 1.833e-06/1.098, allocations: 0.5938 kB / 1.094 GB, free: 1.73 MB / 0.8575 GB Notification: Performance of matching and sorting (n=16): time 0.002849/1.101, allocations: 494.2 kB / 1.095 GB, free: 1.609 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.176e-05/1.101, allocations: 57.41 kB / 1.095 GB, free: 1.547 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006135/1.102, allocations: 411.5 kB / 1.095 GB, free: 1.352 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 7.029e-05/1.102, allocations: 39.88 kB / 1.095 GB, free: 1.316 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 8.786e-05/1.102, allocations: 107.3 kB / 1.095 GB, free: 1.219 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 5.015e-05/1.102, allocations: 33.08 kB / 1.095 GB, free: 1.195 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002588/1.102, allocations: 127.3 kB / 1.096 GB, free: 1.141 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 8.971e-05/1.103, allocations: 322 kB / 1.096 GB, free: 0.8242 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003227/1.103, allocations: 115.8 kB / 1.096 GB, free: 0.793 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000318/1.103, allocations: 174.4 kB / 1.096 GB, free: 0.6953 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003966/1.104, allocations: 279.2 kB / 1.096 GB, free: 0.4922 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/1.104, allocations: 0.6562 kB / 1.096 GB, free: 0.4922 MB / 0.8575 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009001/1.105, allocations: 495.9 kB / 1.097 GB, free: 284 kB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 8.554e-05/1.105, allocations: 88.5 kB / 1.097 GB, free: 208 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.132e-05/1.105, allocations: 2.734 kB / 1.097 GB, free: 208 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.23e-05/1.105, allocations: 2.188 kB / 1.097 GB, free: 208 kB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001871/1.105, allocations: 27.5 kB / 1.097 GB, free: 200 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.016e-05/1.105, allocations: 3.094 kB / 1.097 GB, free: 200 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005338/1.105, allocations: 63.5 kB / 1.097 GB, free: 184 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001078/1.106, allocations: 57.34 kB / 1.097 GB, free: 184 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.0002492/1.106, allocations: 199.2 kB / 1.097 GB, free: 36 kB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.94e-05/1.106, allocations: 41.97 kB / 1.097 GB, free: 12 kB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001096/1.106, allocations: 40.67 kB / 1.097 GB, free: 15.99 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.111e-06/1.106, allocations: 2.875 kB / 1.097 GB, free: 15.99 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.424e-06/1.106, allocations: 0 / 1.097 GB, free: 15.99 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.207e-06/1.106, allocations: 6.312 kB / 1.097 GB, free: 15.98 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00251/1.109, allocations: 0.75 MB / 1.098 GB, free: 15.57 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.516e-06/1.109, allocations: 0 / 1.098 GB, free: 15.57 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.811e-05/1.109, allocations: 5.422 kB / 1.098 GB, free: 15.57 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.747e-06/1.109, allocations: 5.125 kB / 1.098 GB, free: 15.57 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.945e-05/1.109, allocations: 22.91 kB / 1.098 GB, free: 15.57 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.618e-06/1.109, allocations: 0.6562 kB / 1.098 GB, free: 15.57 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/1.109, allocations: 4.906 kB / 1.098 GB, free: 15.56 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001954/1.111, allocations: 479.9 kB / 1.099 GB, free: 15.36 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003429/1.111, allocations: 196.3 kB / 1.099 GB, free: 15.22 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.911e-05/1.111, allocations: 15.38 kB / 1.099 GB, free: 15.21 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005099/1.112, allocations: 28.72 kB / 1.099 GB, free: 15.21 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.955e-05/1.112, allocations: 6.828 kB / 1.099 GB, free: 15.21 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.715e-05/1.112, allocations: 60.61 kB / 1.099 GB, free: 15.21 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0003983/1.112, allocations: 297.4 kB / 1.099 GB, free: 15.07 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.2e-07/1.112, allocations: 0 / 1.099 GB, free: 15.07 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0004779/1.113, allocations: 65.75 kB / 1.099 GB, free: 15.07 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.0001819/1.113, allocations: 120.4 kB / 1.099 GB, free: 14.96 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001454/1.114, allocations: 437 kB / 1.1 GB, free: 14.75 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/1.114, allocations: 4.656 kB / 1.1 GB, free: 14.75 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0008999/1.115, allocations: 129.2 kB / 1.1 GB, free: 14.72 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004005/1.116, allocations: 33.86 kB / 1.1 GB, free: 14.7 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001696/1.117, allocations: 0.545 MB / 1.1 GB, free: 14.41 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003987/1.118, allocations: 0.7712 MB / 1.101 GB, free: 13.71 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 7.479e-05/1.118, allocations: 11.77 kB / 1.101 GB, free: 13.71 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.757e-05/1.118, allocations: 15.55 kB / 1.101 GB, free: 13.7 MB / 0.8731 GB Notification: Performance of SimCode: time 2.4e-07/1.118, allocations: 0 / 1.101 GB, free: 13.7 MB / 0.8731 GB Notification: Performance of Templates: time 0.01196/1.13, allocations: 5.13 MB / 1.106 GB, free: 12.73 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches