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.00179/0.00179, allocations: 102.9 kB / 15.98 MB, free: 6.348 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.001979/0.00198, allocations: 198 kB / 16.91 MB, free: 6.188 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.406/1.406, allocations: 222.9 MB / 240.6 MB, free: 15.42 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.417/2.417, allocations: 390.2 MB / 0.665 GB, free: 0.9727 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001302/0.001303, allocations: 67.09 kB / 0.8127 GB, free: 33.16 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3277/0.329, allocations: 140.4 MB / 0.9498 GB, free: 9.297 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.003493/0.3326, allocations: 1.582 MB / 0.9513 GB, free: 7.703 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001388/0.334, allocations: 0.5373 MB / 0.9518 GB, free: 7.164 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.469e-05/0.3341, allocations: 3.938 kB / 0.9518 GB, free: 7.16 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0001125/0.3342, allocations: 7.984 kB / 0.9518 GB, free: 7.152 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0001308/0.3344, allocations: 19.88 kB / 0.9519 GB, free: 7.133 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009433/0.3354, allocations: 291.4 kB / 0.9521 GB, free: 6.852 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0007082/0.3361, allocations: 0.5033 MB / 0.9526 GB, free: 6.348 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 5.565e-05/0.3361, allocations: 7.984 kB / 0.9526 GB, free: 6.34 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00058/0.3367, allocations: 346.9 kB / 0.953 GB, free: 6 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003534/0.3371, allocations: 163.4 kB / 0.9531 GB, free: 5.84 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.0001217/0.3372, allocations: 28 kB / 0.9531 GB, free: 5.812 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 9.093e-05/0.3373, allocations: 28 kB / 0.9532 GB, free: 5.785 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0001455/0.3375, allocations: 127.4 kB / 0.9533 GB, free: 5.66 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0002443/0.3377, allocations: 190.9 kB / 0.9535 GB, free: 5.473 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0003555/0.3381, allocations: 323.6 kB / 0.9538 GB, free: 5.156 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.3381, allocations: 0 / 0.9538 GB, free: 5.156 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.503e-06/0.3381, allocations: 0 / 0.9538 GB, free: 5.156 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.12e-05/0.3381, allocations: 0 / 0.9538 GB, free: 5.156 MB / 0.7325 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.001591/0.3397, allocations: 0.8586 MB / 0.9546 GB, free: 4.207 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 5.44e-05/0.3398, allocations: 12.03 kB / 0.9546 GB, free: 4.195 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001576/0.3399, allocations: 52.47 kB / 0.9547 GB, free: 4.145 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000449/0.3404, allocations: 318.1 kB / 0.955 GB, free: 3.793 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.424e-05/0.3405, allocations: 20.3 kB / 0.955 GB, free: 3.773 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.662e-05/0.3406, allocations: 24.38 kB / 0.955 GB, free: 3.75 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001047/0.3416, allocations: 210 kB / 0.9552 GB, free: 3.539 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.187e-05/0.3416, allocations: 4.172 kB / 0.9552 GB, free: 3.535 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.576e-05/0.3417, allocations: 3.938 kB / 0.9552 GB, free: 3.531 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.019e-06/0.3417, allocations: 8 kB / 0.9552 GB, free: 3.523 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008242/0.3425, allocations: 99.92 kB / 0.9553 GB, free: 3.426 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005168/0.343, allocations: 401.2 kB / 0.9557 GB, free: 2.984 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001091/0.3441, allocations: 174.5 kB / 0.9559 GB, free: 2.805 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007837/0.3449, allocations: 108.8 kB / 0.956 GB, free: 2.695 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 3.308e-05/0.345, allocations: 0 / 0.956 GB, free: 2.695 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001067/0.3461, allocations: 230.2 kB / 0.9562 GB, free: 2.461 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=16): time 2.044e-06/0.3461, allocations: 0 / 0.9562 GB, free: 2.461 MB / 0.7325 GB Notification: Performance of matching and sorting (n=16): time 0.002723/0.3488, allocations: 488.8 kB / 0.9567 GB, free: 1.977 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.584e-05/0.3489, allocations: 59.39 kB / 0.9567 GB, free: 1.906 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004641/0.3494, allocations: 417.8 kB / 0.9571 GB, free: 1.496 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 6.891e-05/0.3494, allocations: 41.69 kB / 0.9572 GB, free: 1.449 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 9.963e-05/0.3495, allocations: 97.44 kB / 0.9573 GB, free: 1.352 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 5.297e-05/0.3496, allocations: 35.55 kB / 0.9573 GB, free: 1.316 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002271/0.3498, allocations: 133.3 kB / 0.9574 GB, free: 1.18 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001292/0.35, allocations: 322.8 kB / 0.9577 GB, free: 0.8555 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002858/0.3503, allocations: 123.9 kB / 0.9579 GB, free: 0.7344 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002993/0.3506, allocations: 171.9 kB / 0.958 GB, free: 0.5469 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004073/0.351, allocations: 283.4 kB / 0.9583 GB, free: 244 kB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.351, allocations: 0 / 0.9583 GB, free: 244 kB / 0.7325 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009026/0.3519, allocations: 496.6 kB / 0.9588 GB, free: 15.73 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 8.715e-05/0.352, allocations: 91.31 kB / 0.9588 GB, free: 15.63 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.368e-06/0.352, allocations: 4 kB / 0.9589 GB, free: 15.63 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.643e-05/0.352, allocations: 4 kB / 0.9589 GB, free: 15.62 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001782/0.3522, allocations: 23.91 kB / 0.9589 GB, free: 15.6 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.13e-05/0.3523, allocations: 4 kB / 0.9589 GB, free: 15.6 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005359/0.3528, allocations: 63.98 kB / 0.9589 GB, free: 15.54 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.463e-05/0.3529, allocations: 59.98 kB / 0.959 GB, free: 15.48 MB / 0.7481 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.0002517/0.3532, allocations: 193.7 kB / 0.9592 GB, free: 15.28 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.585e-05/0.3532, allocations: 39.47 kB / 0.9592 GB, free: 15.24 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.352e-05/0.3533, allocations: 43.75 kB / 0.9593 GB, free: 15.19 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.3533, allocations: 0 / 0.9593 GB, free: 15.19 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.3533, allocations: 0 / 0.9593 GB, free: 15.19 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.951e-06/0.3533, allocations: 3.984 kB / 0.9593 GB, free: 15.18 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002304/0.3557, allocations: 0.7442 MB / 0.96 GB, free: 14.38 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.3557, allocations: 0 / 0.96 GB, free: 14.38 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.519e-05/0.3557, allocations: 4 kB / 0.96 GB, free: 14.38 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.212e-06/0.3557, allocations: 8 kB / 0.96 GB, free: 14.37 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.016e-05/0.3558, allocations: 23.91 kB / 0.96 GB, free: 14.35 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.194e-06/0.3558, allocations: 0 / 0.96 GB, free: 14.35 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.3558, allocations: 0 / 0.96 GB, free: 14.35 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001846/0.3576, allocations: 489 kB / 0.9605 GB, free: 13.86 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002682/0.3579, allocations: 200.5 kB / 0.9607 GB, free: 13.64 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.225e-05/0.358, allocations: 8 kB / 0.9607 GB, free: 13.63 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005122/0.3585, allocations: 31.95 kB / 0.9607 GB, free: 13.6 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.189e-05/0.3586, allocations: 8 kB / 0.9607 GB, free: 13.59 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.436e-05/0.3587, allocations: 55.97 kB / 0.9608 GB, free: 13.54 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0003226/0.359, allocations: 299.1 kB / 0.9611 GB, free: 13.25 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.5e-07/0.359, allocations: 0 / 0.9611 GB, free: 13.25 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0003671/0.3594, allocations: 71.98 kB / 0.9611 GB, free: 13.18 MB / 0.7481 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.0001772/0.3596, allocations: 116.9 kB / 0.9613 GB, free: 13.05 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.001393/0.361, allocations: 446.7 kB / 0.9617 GB, free: 12.59 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 5.931e-06/0.361, allocations: 4 kB / 0.9617 GB, free: 12.59 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0008208/0.3618, allocations: 119.9 kB / 0.9618 GB, free: 12.47 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003994/0.3622, allocations: 31.95 kB / 0.9618 GB, free: 12.44 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001734/0.364, allocations: 0.7019 MB / 0.9625 GB, free: 11.71 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004279/0.3644, allocations: 0.786 MB / 0.9633 GB, free: 10.9 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.105e-05/0.3645, allocations: 19.42 kB / 0.9633 GB, free: 10.88 MB / 0.7481 GB Notification: Performance of SimCode: time 3.8e-07/0.3645, allocations: 0 / 0.9633 GB, free: 10.88 MB / 0.7481 GB Notification: Performance of Templates: time 0.007302/0.3718, allocations: 3.721 MB / 0.9669 GB, free: 7.109 MB / 0.7481 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