Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001108/0.001108, allocations: 104.1 kB / 16.41 MB, free: 6.016 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.001078/0.001078, allocations: 192.3 kB / 17.34 MB, free: 5.609 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.376/1.376, 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 10.1.1-maint.10.0.x/package.mo): time 2.498/2.498, allocations: 437 MB / 0.7112 GB, free: 4.398 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001214/0.001214, allocations: 71.89 kB / 1.019 GB, free: 9.453 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.955/0.9562, allocations: 151.6 MB / 1.167 GB, free: 3.855 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.002646/0.9589, allocations: 1.522 MB / 1.169 GB, free: 2.324 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001223/0.9601, allocations: 0.5446 MB / 1.169 GB, free: 1.781 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.001e-05/0.9602, allocations: 0 / 1.169 GB, free: 1.781 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.0001059/0.9603, allocations: 3.938 kB / 1.169 GB, free: 1.777 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0001147/0.9605, allocations: 35.56 kB / 1.169 GB, free: 1.742 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.000765/0.9612, allocations: 317.6 kB / 1.17 GB, free: 1.434 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0005262/0.9618, allocations: 0.5033 MB / 1.17 GB, free: 0.9297 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 4.993e-05/0.9618, allocations: 4 kB / 1.17 GB, free: 0.9258 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003598/0.9622, allocations: 283.6 kB / 1.17 GB, free: 0.6484 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002629/0.9625, allocations: 133.2 kB / 1.171 GB, free: 0.5195 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 7.843e-05/0.9625, allocations: 28 kB / 1.171 GB, free: 0.4922 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 6.648e-05/0.9626, allocations: 28 kB / 1.171 GB, free: 476 kB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.0001204/0.9627, allocations: 119.6 kB / 1.171 GB, free: 356 kB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.0001775/0.9629, allocations: 183.1 kB / 1.171 GB, free: 172 kB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.000417/0.9633, allocations: 420.4 kB / 1.171 GB, free: 15.76 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.9634, allocations: 4 kB / 1.171 GB, free: 15.76 MB / 0.9044 GB Notification: Performance of FrontEnd: time 4.188e-06/0.9634, allocations: 3.984 kB / 1.171 GB, free: 15.75 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 8.135e-06/0.9634, allocations: 0 / 1.171 GB, free: 15.75 MB / 0.9044 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.001264/0.9647, allocations: 0.8664 MB / 1.172 GB, free: 14.8 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 3.997e-05/0.9647, allocations: 8.922 kB / 1.172 GB, free: 14.79 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001202/0.9648, allocations: 52.47 kB / 1.172 GB, free: 14.74 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004616/0.9653, allocations: 310.2 kB / 1.172 GB, free: 14.39 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.781e-05/0.9653, allocations: 16.36 kB / 1.172 GB, free: 14.38 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.961e-05/0.9654, allocations: 36.36 kB / 1.173 GB, free: 14.34 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009903/0.9664, allocations: 207.2 kB / 1.173 GB, free: 14.14 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.526e-06/0.9665, allocations: 192 / 1.173 GB, free: 14.14 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.218e-05/0.9665, allocations: 11.86 kB / 1.173 GB, free: 14.12 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.043e-06/0.9665, allocations: 4 kB / 1.173 GB, free: 14.12 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007644/0.9673, allocations: 99.91 kB / 1.173 GB, free: 14.02 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004523/0.9677, allocations: 401.1 kB / 1.173 GB, free: 13.58 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001053/0.9688, allocations: 174.4 kB / 1.173 GB, free: 13.4 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007771/0.9696, allocations: 108.8 kB / 1.173 GB, free: 13.29 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 2.55e-05/0.9696, allocations: 11.98 kB / 1.173 GB, free: 13.28 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009585/0.9706, allocations: 215.2 kB / 1.174 GB, free: 13.06 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=16): time 1.683e-06/0.9706, allocations: 0 / 1.174 GB, free: 13.06 MB / 0.9044 GB Notification: Performance of matching and sorting (n=16): time 0.002679/0.9733, allocations: 495.1 kB / 1.174 GB, free: 12.57 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.566e-05/0.9733, allocations: 63.41 kB / 1.174 GB, free: 12.5 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000426/0.9738, allocations: 409.9 kB / 1.175 GB, free: 12.08 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 5.887e-05/0.9738, allocations: 37.7 kB / 1.175 GB, free: 12.04 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 7.563e-05/0.9739, allocations: 93.44 kB / 1.175 GB, free: 11.95 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 4.999e-05/0.974, allocations: 51.38 kB / 1.175 GB, free: 11.89 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002081/0.9742, allocations: 125.3 kB / 1.175 GB, free: 11.77 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001259/0.9743, allocations: 326.8 kB / 1.175 GB, free: 11.44 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002634/0.9746, allocations: 115.9 kB / 1.175 GB, free: 11.32 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000291/0.9749, allocations: 168.1 kB / 1.175 GB, free: 11.14 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003756/0.9753, allocations: 282.9 kB / 1.176 GB, free: 10.83 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.9753, allocations: 0 / 1.176 GB, free: 10.83 MB / 0.9044 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008139/0.9761, allocations: 487.1 kB / 1.176 GB, free: 10.34 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 8.957e-05/0.9762, allocations: 98 kB / 1.176 GB, free: 10.23 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.322e-06/0.9762, allocations: 0 / 1.176 GB, free: 10.23 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.896e-05/0.9763, allocations: 4 kB / 1.176 GB, free: 10.23 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001678/0.9764, allocations: 27.91 kB / 1.176 GB, free: 10.2 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.863e-06/0.9764, allocations: 0 / 1.176 GB, free: 10.2 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004943/0.9769, allocations: 59.8 kB / 1.176 GB, free: 10.14 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.774e-05/0.977, allocations: 59.98 kB / 1.176 GB, free: 10.09 MB / 0.9044 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.0002333/0.9773, allocations: 201.7 kB / 1.177 GB, free: 9.883 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.287e-05/0.9773, allocations: 43.45 kB / 1.177 GB, free: 9.84 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.253e-05/0.9774, allocations: 43.69 kB / 1.177 GB, free: 9.797 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.9774, allocations: 0 / 1.177 GB, free: 9.797 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.9774, allocations: 0 / 1.177 GB, free: 9.797 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.9774, allocations: 4 kB / 1.177 GB, free: 9.793 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002278/0.9797, allocations: 0.7482 MB / 1.177 GB, free: 8.984 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.9797, allocations: 0 / 1.177 GB, free: 8.984 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.502e-05/0.9798, allocations: 4 kB / 1.177 GB, free: 8.98 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.016e-06/0.9798, allocations: 0 / 1.177 GB, free: 8.98 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.37e-05/0.9798, allocations: 19.97 kB / 1.177 GB, free: 8.961 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.407e-06/0.9798, allocations: 4 kB / 1.177 GB, free: 8.957 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.492e-06/0.9798, allocations: 0 / 1.177 GB, free: 8.957 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001788/0.9816, allocations: 486 kB / 1.178 GB, free: 8.469 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002982/0.982, allocations: 200.5 kB / 1.178 GB, free: 8.254 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.659e-05/0.982, allocations: 12 kB / 1.178 GB, free: 8.242 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004743/0.9825, allocations: 27.97 kB / 1.178 GB, free: 8.215 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.292e-05/0.9826, allocations: 11.98 kB / 1.178 GB, free: 8.203 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.459e-05/0.9826, allocations: 63.95 kB / 1.178 GB, free: 8.141 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0002796/0.9829, allocations: 291.1 kB / 1.179 GB, free: 7.855 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1e-07/0.9829, allocations: 0 / 1.179 GB, free: 7.855 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0003782/0.9833, allocations: 71.98 kB / 1.179 GB, free: 7.785 MB / 0.9044 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.0001649/0.9835, allocations: 113 kB / 1.179 GB, free: 7.664 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.001369/0.9849, allocations: 438.5 kB / 1.179 GB, free: 7.211 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.9849, allocations: 0 / 1.179 GB, free: 7.211 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0007721/0.9857, allocations: 128.2 kB / 1.179 GB, free: 7.086 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003749/0.986, allocations: 31.23 kB / 1.179 GB, free: 7.059 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001553/0.9876, allocations: 0.5842 MB / 1.18 GB, free: 6.441 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003651/0.988, allocations: 0.7708 MB / 1.181 GB, free: 5.645 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.522e-05/0.988, allocations: 15.44 kB / 1.181 GB, free: 5.629 MB / 0.9044 GB Notification: Performance of SimCode: time 6.32e-07/0.988, allocations: 3.938 kB / 1.181 GB, free: 5.625 MB / 0.9044 GB Notification: Performance of Templates: time 0.00583/0.9939, allocations: 3.723 MB / 1.184 GB, free: 1.855 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Utilities.Time.Examples.CalendarTime.makefile (rm -f Buildings_10_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; mkfifo Buildings_10_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Time.Examples.CalendarTime.pipe >> ../files/Buildings_10_Buildings.Utilities.Time.Examples.CalendarTime.sim & ./Buildings_10_Buildings.Utilities.Time.Examples.CalendarTime -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Time.Examples.CalendarTime.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Time.Examples.CalendarTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Time_Examples_CalendarTime.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Time.Examples.CalendarTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches