Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_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_latest_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.001155/0.001155, allocations: 102.9 kB / 16.27 MB, free: 5.961 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.001236/0.001237, allocations: 188.1 kB / 17.19 MB, free: 5.594 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.453/1.453, allocations: 222.9 MB / 240.9 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.55/2.55, allocations: 469.4 MB / 0.7427 GB, free: 3.672 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001675/0.001676, allocations: 63.72 kB / 0.9088 GB, free: 14.19 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3509/0.3526, allocations: 159.1 MB / 1.064 GB, free: 15.08 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.003961/0.3566, allocations: 1.506 MB / 1.066 GB, free: 13.55 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001719/0.3584, allocations: 0.5462 MB / 1.066 GB, free: 13.01 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001453/0.3586, allocations: 0 / 1.066 GB, free: 13.01 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0001608/0.3588, allocations: 11.81 kB / 1.066 GB, free: 13 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0002008/0.359, allocations: 27.84 kB / 1.066 GB, free: 12.97 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.001259/0.3603, allocations: 310 kB / 1.067 GB, free: 12.67 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0007069/0.361, allocations: 0.4994 MB / 1.067 GB, free: 12.17 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 6.63e-05/0.3611, allocations: 8 kB / 1.067 GB, free: 12.16 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004087/0.3615, allocations: 279.6 kB / 1.067 GB, free: 11.89 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003034/0.3618, allocations: 135.6 kB / 1.067 GB, free: 11.75 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.0001448/0.362, allocations: 28 kB / 1.067 GB, free: 11.73 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001098/0.3621, allocations: 24 kB / 1.067 GB, free: 11.7 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0001659/0.3623, allocations: 111.7 kB / 1.068 GB, free: 11.59 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0002152/0.3625, allocations: 191 kB / 1.068 GB, free: 11.41 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0004602/0.3629, allocations: 422.9 kB / 1.068 GB, free: 10.99 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.363, allocations: 0 / 1.068 GB, free: 10.99 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.403e-06/0.363, allocations: 4 kB / 1.068 GB, free: 10.99 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 8.226e-06/0.363, allocations: 4 kB / 1.068 GB, free: 10.98 MB / 0.8419 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.001309/0.3643, allocations: 0.8587 MB / 1.069 GB, free: 10.04 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.235e-05/0.3643, allocations: 8.625 kB / 1.069 GB, free: 10.03 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001311/0.3645, allocations: 52.47 kB / 1.069 GB, free: 9.977 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003914/0.3649, allocations: 314.2 kB / 1.069 GB, free: 9.633 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.78e-05/0.3649, allocations: 20.36 kB / 1.069 GB, free: 9.613 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.415e-05/0.365, allocations: 28.36 kB / 1.069 GB, free: 9.586 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001049/0.3661, allocations: 210.9 kB / 1.07 GB, free: 9.375 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.106e-06/0.3661, allocations: 192 / 1.07 GB, free: 9.375 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.649e-05/0.3661, allocations: 11.92 kB / 1.07 GB, free: 9.363 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.37e-06/0.3662, allocations: 0 / 1.07 GB, free: 9.363 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008402/0.367, allocations: 95.92 kB / 1.07 GB, free: 9.27 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000484/0.3675, allocations: 397.2 kB / 1.07 GB, free: 8.832 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001121/0.3686, allocations: 178.4 kB / 1.07 GB, free: 8.648 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007543/0.3694, allocations: 112.8 kB / 1.07 GB, free: 8.535 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.524e-05/0.3694, allocations: 11.92 kB / 1.07 GB, free: 8.523 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001326/0.3708, allocations: 227.1 kB / 1.071 GB, free: 8.289 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=16): time 1.814e-06/0.3708, allocations: 0 / 1.071 GB, free: 8.289 MB / 0.8419 GB Notification: Performance of matching and sorting (n=16): time 0.002702/0.3735, allocations: 487.3 kB / 1.071 GB, free: 7.809 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.077e-05/0.3736, allocations: 59.41 kB / 1.071 GB, free: 7.738 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005154/0.3741, allocations: 409.9 kB / 1.072 GB, free: 7.328 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 7.526e-05/0.3742, allocations: 37.7 kB / 1.072 GB, free: 7.285 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 9.26e-05/0.3743, allocations: 97.44 kB / 1.072 GB, free: 7.188 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 5.887e-05/0.3743, allocations: 43.45 kB / 1.072 GB, free: 7.145 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001993/0.3745, allocations: 129.3 kB / 1.072 GB, free: 7.012 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.000115/0.3747, allocations: 322.8 kB / 1.072 GB, free: 6.688 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002643/0.3749, allocations: 123.9 kB / 1.072 GB, free: 6.566 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002806/0.3752, allocations: 171.2 kB / 1.072 GB, free: 6.379 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003628/0.3756, allocations: 279.3 kB / 1.073 GB, free: 6.074 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.3756, allocations: 0 / 1.073 GB, free: 6.074 MB / 0.8419 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007759/0.3764, allocations: 488.7 kB / 1.073 GB, free: 5.578 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 8.865e-05/0.3765, allocations: 101.6 kB / 1.073 GB, free: 5.469 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.051e-06/0.3765, allocations: 4.188 kB / 1.073 GB, free: 5.465 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.995e-05/0.3765, allocations: 8 kB / 1.073 GB, free: 5.457 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001675/0.3767, allocations: 23.92 kB / 1.073 GB, free: 5.434 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.898e-06/0.3767, allocations: 3.984 kB / 1.073 GB, free: 5.43 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005034/0.3772, allocations: 63.73 kB / 1.073 GB, free: 5.367 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.493e-05/0.3773, allocations: 63.97 kB / 1.073 GB, free: 5.305 MB / 0.8419 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.0002268/0.3776, allocations: 197.7 kB / 1.074 GB, free: 5.105 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.907e-05/0.3776, allocations: 39.47 kB / 1.074 GB, free: 5.066 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.508e-05/0.3777, allocations: 43.73 kB / 1.074 GB, free: 5.023 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.318e-06/0.3777, allocations: 4 kB / 1.074 GB, free: 5.02 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/0.3777, allocations: 0 / 1.074 GB, free: 5.02 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.548e-06/0.3777, allocations: 0 / 1.074 GB, free: 5.02 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002186/0.3799, allocations: 0.7441 MB / 1.074 GB, free: 4.219 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.375e-06/0.3799, allocations: 0 / 1.074 GB, free: 4.219 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.818e-05/0.38, allocations: 7.984 kB / 1.074 GB, free: 4.211 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.493e-06/0.38, allocations: 4 kB / 1.074 GB, free: 4.207 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.352e-05/0.38, allocations: 15.98 kB / 1.074 GB, free: 4.191 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.38, allocations: 0 / 1.074 GB, free: 4.191 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.38, allocations: 0 / 1.074 GB, free: 4.191 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001764/0.3818, allocations: 478.7 kB / 1.075 GB, free: 3.707 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002286/0.3821, allocations: 200.5 kB / 1.075 GB, free: 3.492 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.641e-05/0.3821, allocations: 19.98 kB / 1.075 GB, free: 3.473 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004718/0.3826, allocations: 27.97 kB / 1.075 GB, free: 3.445 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.025e-05/0.3827, allocations: 11.98 kB / 1.075 GB, free: 3.434 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.622e-05/0.3827, allocations: 55.97 kB / 1.075 GB, free: 3.379 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0002826/0.383, allocations: 299.1 kB / 1.075 GB, free: 3.082 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.753e-06/0.383, allocations: 0 / 1.075 GB, free: 3.082 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003577/0.3834, allocations: 63.94 kB / 1.076 GB, free: 3.02 MB / 0.8419 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.0001629/0.3836, allocations: 133.4 kB / 1.076 GB, free: 2.879 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.00127/0.3848, allocations: 449.1 kB / 1.076 GB, free: 2.418 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.3849, allocations: 0 / 1.076 GB, free: 2.418 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0007801/0.3856, allocations: 120.2 kB / 1.076 GB, free: 2.301 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000385/0.386, allocations: 35.3 kB / 1.076 GB, free: 2.27 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001503/0.3876, allocations: 0.5912 MB / 1.077 GB, free: 1.652 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000338/0.3879, allocations: 0.7669 MB / 1.078 GB, free: 0.8594 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.906e-05/0.388, allocations: 15.44 kB / 1.078 GB, free: 0.8438 MB / 0.8419 GB Notification: Performance of SimCode: time 4.81e-07/0.388, allocations: 3.938 kB / 1.078 GB, free: 0.8398 MB / 0.8419 GB Notification: Performance of Templates: time 0.5661/0.9541, allocations: 3.714 MB / 1.081 GB, free: 21.73 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.makefile (rm -f Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.pipe >> ../files/Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.sim & ./Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Time_Examples_CalendarTime.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches