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.001545/0.001545, allocations: 111.3 kB / 15.23 MB, free: 0.6367 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.002365/0.002364, allocations: 192.7 kB / 16.14 MB, free: 6.734 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 / 239.8 MB, free: 4.598 MB / 190.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.465/2.465, allocations: 390.2 MB / 0.6642 GB, free: 0.5859 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001238/0.001238, allocations: 63.89 kB / 0.8118 GB, free: 14.86 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7785/0.7798, allocations: 140.4 MB / 0.9489 GB, free: 9.398 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.003054/0.7829, allocations: 1.574 MB / 0.9504 GB, free: 8.156 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001393/0.7843, allocations: 0.5926 MB / 0.951 GB, free: 7.699 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.449e-05/0.7844, allocations: 1.062 kB / 0.951 GB, free: 7.699 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001164/0.7845, allocations: 7.922 kB / 0.951 GB, free: 7.691 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001278/0.7847, allocations: 20.33 kB / 0.9511 GB, free: 7.684 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008846/0.7856, allocations: 294.5 kB / 0.9513 GB, free: 7.465 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0008318/0.7864, allocations: 448 kB / 0.9518 GB, free: 7.238 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001007/0.7865, allocations: 9.609 kB / 0.9518 GB, free: 7.234 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008862/0.7874, allocations: 303.8 kB / 0.9521 GB, free: 7.109 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006087/0.788, allocations: 157.8 kB / 0.9522 GB, free: 7.02 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 0.0001762/0.7882, allocations: 17.58 kB / 0.9522 GB, free: 7.016 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001199/0.7884, allocations: 14.12 kB / 0.9522 GB, free: 7.016 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.000227/0.7886, allocations: 128.3 kB / 0.9524 GB, free: 6.938 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0004011/0.789, allocations: 179.6 kB / 0.9525 GB, free: 6.824 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0007852/0.7898, allocations: 416.2 kB / 0.9529 GB, free: 6.555 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 7.343e-06/0.7898, allocations: 0 / 0.9529 GB, free: 6.555 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.074e-06/0.7898, allocations: 0.9375 kB / 0.9529 GB, free: 6.555 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.905e-05/0.7899, allocations: 0 / 0.9529 GB, free: 6.555 MB / 0.7169 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.001709/0.7916, allocations: 0.8629 MB / 0.9538 GB, free: 5.758 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 6.914e-05/0.7917, allocations: 9.906 kB / 0.9538 GB, free: 5.758 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001927/0.7919, allocations: 50.19 kB / 0.9538 GB, free: 5.738 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005026/0.7924, allocations: 318.4 kB / 0.9541 GB, free: 5.441 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.42e-05/0.7925, allocations: 14.38 kB / 0.9541 GB, free: 5.438 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001199/0.7926, allocations: 25.86 kB / 0.9542 GB, free: 5.434 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001472/0.7941, allocations: 210.6 kB / 0.9544 GB, free: 5.309 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.949e-05/0.7941, allocations: 192 / 0.9544 GB, free: 5.309 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.87e-05/0.7942, allocations: 9.094 kB / 0.9544 GB, free: 5.301 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.399e-05/0.7942, allocations: 2.062 kB / 0.9544 GB, free: 5.301 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001072/0.7953, allocations: 106.4 kB / 0.9545 GB, free: 5.258 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007397/0.796, allocations: 392.8 kB / 0.9549 GB, free: 4.898 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001421/0.7975, allocations: 177.1 kB / 0.955 GB, free: 4.812 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001002/0.7985, allocations: 107.4 kB / 0.9551 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 4.51e-05/0.7986, allocations: 1.906 kB / 0.9551 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001352/0.7999, allocations: 228.8 kB / 0.9554 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=16): time 4.328e-06/0.7999, allocations: 0 / 0.9554 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of matching and sorting (n=16): time 0.003371/0.8033, allocations: 494 kB / 0.9558 GB, free: 4.422 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.766e-05/0.8034, allocations: 60.89 kB / 0.9559 GB, free: 4.355 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007023/0.8041, allocations: 413 kB / 0.9563 GB, free: 4.098 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 0.0001084/0.8042, allocations: 41.28 kB / 0.9563 GB, free: 4.059 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001139/0.8043, allocations: 96.03 kB / 0.9564 GB, free: 3.969 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 6.742e-05/0.8044, allocations: 38.09 kB / 0.9564 GB, free: 3.938 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003469/0.8048, allocations: 128.1 kB / 0.9566 GB, free: 3.867 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.000101/0.8049, allocations: 325.3 kB / 0.9569 GB, free: 3.543 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004105/0.8053, allocations: 121.6 kB / 0.957 GB, free: 3.488 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004276/0.8057, allocations: 166.2 kB / 0.9572 GB, free: 3.375 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005528/0.8063, allocations: 279.5 kB / 0.9574 GB, free: 3.16 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.638e-06/0.8063, allocations: 1.125 kB / 0.9574 GB, free: 3.16 MB / 0.7169 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.00126/0.8076, allocations: 495.5 kB / 0.9579 GB, free: 2.898 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001106/0.8077, allocations: 94.03 kB / 0.958 GB, free: 2.812 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.436e-05/0.8077, allocations: 6 kB / 0.958 GB, free: 2.809 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.474e-05/0.8078, allocations: 2.281 kB / 0.958 GB, free: 2.809 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002174/0.808, allocations: 22.39 kB / 0.958 GB, free: 2.801 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.609e-05/0.808, allocations: 7.109 kB / 0.958 GB, free: 2.797 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007663/0.8088, allocations: 74.11 kB / 0.9581 GB, free: 2.758 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001518/0.809, allocations: 61.11 kB / 0.9581 GB, free: 2.75 MB / 0.7169 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.0003409/0.8093, allocations: 195.9 kB / 0.9583 GB, free: 2.594 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001193/0.8094, allocations: 44.05 kB / 0.9584 GB, free: 2.566 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.927e-05/0.8096, allocations: 39.91 kB / 0.9584 GB, free: 2.535 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.745e-06/0.8096, allocations: 2.812 kB / 0.9584 GB, free: 2.535 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.075e-05/0.8096, allocations: 0 / 0.9584 GB, free: 2.535 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.8096, allocations: 0 / 0.9584 GB, free: 2.535 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002954/0.8126, allocations: 0.7528 MB / 0.9591 GB, free: 2.012 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.888e-06/0.8126, allocations: 0 / 0.9591 GB, free: 2.012 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.214e-05/0.8126, allocations: 4.125 kB / 0.9592 GB, free: 2.012 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.133e-06/0.8127, allocations: 5.156 kB / 0.9592 GB, free: 2.008 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.135e-05/0.8127, allocations: 19.88 kB / 0.9592 GB, free: 2 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.33e-06/0.8127, allocations: 0 / 0.9592 GB, free: 2 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.8128, allocations: 5.125 kB / 0.9592 GB, free: 1.996 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002369/0.8151, allocations: 476.5 kB / 0.9596 GB, free: 1.73 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003983/0.8155, allocations: 200.6 kB / 0.9598 GB, free: 1.559 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001241/0.8157, allocations: 8.281 kB / 0.9598 GB, free: 1.555 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006376/0.8163, allocations: 31.59 kB / 0.9599 GB, free: 1.543 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.474e-05/0.8164, allocations: 8.828 kB / 0.9599 GB, free: 1.539 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001219/0.8165, allocations: 56.84 kB / 0.9599 GB, free: 1.531 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0005148/0.8171, allocations: 297.8 kB / 0.9602 GB, free: 1.348 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.71e-07/0.8171, allocations: 1.281 kB / 0.9602 GB, free: 1.348 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0006759/0.8178, allocations: 69.77 kB / 0.9603 GB, free: 1.336 MB / 0.7169 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.0002148/0.818, allocations: 119.5 kB / 0.9604 GB, free: 1.234 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.001809/0.8198, allocations: 438.8 kB / 0.9608 GB, free: 0.9766 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.537e-06/0.8198, allocations: 8.062 kB / 0.9608 GB, free: 0.9688 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.001037/0.8209, allocations: 116.9 kB / 0.9609 GB, free: 0.9297 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005612/0.8214, allocations: 33.09 kB / 0.961 GB, free: 0.9062 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002125/0.8236, allocations: 0.6638 MB / 0.9616 GB, free: 452 kB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004545/0.8241, allocations: 0.7818 MB / 0.9624 GB, free: 15.69 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 9.651e-05/0.8242, allocations: 13.36 kB / 0.9624 GB, free: 15.68 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.127e-05/0.8242, allocations: 13.66 kB / 0.9624 GB, free: 15.68 MB / 0.7325 GB Notification: Performance of SimCode: time 5.21e-07/0.8242, allocations: 0 / 0.9624 GB, free: 15.68 MB / 0.7325 GB Notification: Performance of Templates: time 0.01495/0.8392, allocations: 5.039 MB / 0.9673 GB, free: 12.86 MB / 0.7325 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