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.001655/0.001655, allocations: 110.7 kB / 16.41 MB, free: 6.488 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.002077/0.002077, allocations: 187 kB / 17.34 MB, free: 5.762 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.424/1.424, allocations: 222.9 MB / 241 MB, free: 15.16 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.309/2.309, allocations: 390.3 MB / 0.6655 GB, free: 0.6641 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001642/0.001643, allocations: 59.91 kB / 0.9515 GB, free: 7.699 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.118/1.12, allocations: 140.4 MB / 1.089 GB, free: 5.516 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.002901/1.123, allocations: 1.503 MB / 1.09 GB, free: 4.469 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001349/1.124, allocations: 0.5462 MB / 1.091 GB, free: 4.113 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.564e-05/1.124, allocations: 1.094 kB / 1.091 GB, free: 4.113 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001139/1.124, allocations: 9.797 kB / 1.091 GB, free: 4.105 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.000127/1.124, allocations: 26.61 kB / 1.091 GB, free: 4.094 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008626/1.125, allocations: 315.6 kB / 1.091 GB, free: 3.938 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0006434/1.126, allocations: 0.5034 MB / 1.091 GB, free: 3.738 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 5.365e-05/1.126, allocations: 13.94 kB / 1.091 GB, free: 3.73 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004488/1.126, allocations: 269.6 kB / 1.092 GB, free: 3.656 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003297/1.127, allocations: 147.2 kB / 1.092 GB, free: 3.602 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 8.82e-05/1.127, allocations: 26.91 kB / 1.092 GB, free: 3.602 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 8.048e-05/1.127, allocations: 26.66 kB / 1.092 GB, free: 3.602 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001863/1.127, allocations: 111.4 kB / 1.092 GB, free: 3.57 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0002171/1.127, allocations: 185.4 kB / 1.092 GB, free: 3.465 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0005584/1.128, allocations: 426.3 kB / 1.093 GB, free: 3.309 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 7.284e-06/1.128, allocations: 9.484 kB / 1.093 GB, free: 3.301 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.984e-06/1.128, allocations: 3.938 kB / 1.093 GB, free: 3.297 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.31e-05/1.128, allocations: 0.7188 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.001249/1.129, allocations: 0.8605 MB / 1.093 GB, free: 2.562 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.315e-05/1.129, allocations: 9.562 kB / 1.093 GB, free: 2.562 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001316/1.129, allocations: 47.22 kB / 1.093 GB, free: 2.547 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000371/1.13, allocations: 308.8 kB / 1.094 GB, free: 2.277 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.925e-05/1.13, allocations: 26.34 kB / 1.094 GB, free: 2.266 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.824e-05/1.13, allocations: 32.75 kB / 1.094 GB, free: 2.258 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001034/1.131, allocations: 208.8 kB / 1.094 GB, free: 2.203 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.985e-06/1.131, allocations: 192 / 1.094 GB, free: 2.203 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.093e-05/1.131, allocations: 6.562 kB / 1.094 GB, free: 2.199 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.363e-06/1.131, allocations: 5.344 kB / 1.094 GB, free: 2.195 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007779/1.132, allocations: 104.5 kB / 1.094 GB, free: 2.176 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005263/1.132, allocations: 383 kB / 1.094 GB, free: 1.918 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001071/1.133, allocations: 176.1 kB / 1.095 GB, free: 1.863 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007601/1.134, allocations: 111.8 kB / 1.095 GB, free: 1.836 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.29e-05/1.134, allocations: 2.953 kB / 1.095 GB, free: 1.836 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001018/1.135, allocations: 227.5 kB / 1.095 GB, free: 1.75 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=16): time 1.693e-06/1.135, allocations: 0 / 1.095 GB, free: 1.75 MB / 0.8575 GB Notification: Performance of matching and sorting (n=16): time 0.002932/1.138, allocations: 489.2 kB / 1.095 GB, free: 1.637 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.53e-05/1.138, allocations: 61.14 kB / 1.096 GB, free: 1.57 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008011/1.139, allocations: 407.4 kB / 1.096 GB, free: 1.379 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 8.686e-05/1.139, allocations: 40.22 kB / 1.096 GB, free: 1.344 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001031/1.139, allocations: 94.78 kB / 1.096 GB, free: 1.258 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 7.775e-05/1.139, allocations: 41.61 kB / 1.096 GB, free: 1.227 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003358/1.14, allocations: 131.5 kB / 1.096 GB, free: 1.168 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001179/1.14, allocations: 321.6 kB / 1.097 GB, free: 0.8516 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003636/1.14, allocations: 115.3 kB / 1.097 GB, free: 0.8203 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003715/1.141, allocations: 174.8 kB / 1.097 GB, free: 0.7227 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004796/1.141, allocations: 277.9 kB / 1.097 GB, free: 0.5234 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.948e-06/1.141, allocations: 0 / 1.097 GB, free: 0.5234 MB / 0.8575 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001024/1.142, allocations: 0.4892 MB / 1.098 GB, free: 312 kB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001268/1.142, allocations: 92.34 kB / 1.098 GB, free: 232 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.065e-05/1.142, allocations: 1.094 kB / 1.098 GB, free: 232 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.732e-05/1.142, allocations: 3.734 kB / 1.098 GB, free: 232 kB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000198/1.142, allocations: 23.59 kB / 1.098 GB, free: 228 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.346e-05/1.143, allocations: 7.984 kB / 1.098 GB, free: 224 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005186/1.143, allocations: 53.77 kB / 1.098 GB, free: 216 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001417/1.143, allocations: 70.06 kB / 1.098 GB, free: 204 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.0002972/1.143, allocations: 192.5 kB / 1.098 GB, free: 60 kB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.079e-05/1.144, allocations: 40.81 kB / 1.098 GB, free: 36 kB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000102/1.144, allocations: 41.77 kB / 1.098 GB, free: 12 kB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.474e-06/1.144, allocations: 7.078 kB / 1.098 GB, free: 8 kB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.287e-06/1.144, allocations: 0 / 1.098 GB, free: 8 kB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.143e-06/1.144, allocations: 4.797 kB / 1.098 GB, free: 4 kB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002643/1.146, allocations: 0.7438 MB / 1.099 GB, free: 15.6 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.987e-06/1.146, allocations: 2.031 kB / 1.099 GB, free: 15.6 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.347e-05/1.146, allocations: 7.672 kB / 1.099 GB, free: 15.59 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.591e-06/1.146, allocations: 1.797 kB / 1.099 GB, free: 15.59 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.364e-05/1.147, allocations: 18.14 kB / 1.099 GB, free: 15.59 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.997e-06/1.147, allocations: 9.297 kB / 1.099 GB, free: 15.59 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/1.147, allocations: 1.062 kB / 1.099 GB, free: 15.59 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002032/1.149, allocations: 478.4 kB / 1.099 GB, free: 15.38 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003026/1.149, allocations: 200.1 kB / 1.099 GB, free: 15.25 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.863e-05/1.149, allocations: 11.06 kB / 1.099 GB, free: 15.24 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000466/1.149, allocations: 32.16 kB / 1.099 GB, free: 15.24 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.562e-05/1.15, allocations: 8.484 kB / 1.099 GB, free: 15.24 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.215e-05/1.15, allocations: 56.59 kB / 1.1 GB, free: 15.24 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0004145/1.15, allocations: 297.6 kB / 1.1 GB, free: 15.1 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.8e-07/1.15, allocations: 0 / 1.1 GB, free: 15.1 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0004608/1.151, allocations: 68.47 kB / 1.1 GB, free: 15.09 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.0001939/1.151, allocations: 120.4 kB / 1.1 GB, free: 14.98 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001413/1.152, allocations: 433.4 kB / 1.1 GB, free: 14.78 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/1.152, allocations: 3.938 kB / 1.1 GB, free: 14.78 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0008732/1.153, allocations: 127.7 kB / 1.101 GB, free: 14.75 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003919/1.153, allocations: 28.33 kB / 1.101 GB, free: 14.74 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001765/1.155, allocations: 0.5968 MB / 1.101 GB, free: 14.41 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004352/1.156, allocations: 0.7668 MB / 1.102 GB, free: 13.71 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.581e-05/1.156, allocations: 24.08 kB / 1.102 GB, free: 13.69 MB / 0.8731 GB Notification: Performance of SimCode: time 6.92e-07/1.156, allocations: 3.938 kB / 1.102 GB, free: 13.69 MB / 0.8731 GB Notification: Performance of Templates: time 0.009016/1.165, allocations: 3.725 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