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.00802/0.00802, allocations: 96.88 kB / 15.73 MB, free: 6.055 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.001578/0.001578, allocations: 191.8 kB / 16.67 MB, free: 5.969 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.563/1.563, allocations: 222.9 MB / 240.4 MB, free: 4.16 MB / 190.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.654/2.654, allocations: 437 MB / 0.7105 GB, free: 4.961 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001316/0.001316, allocations: 59.91 kB / 1.018 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3249/0.3262, allocations: 151.6 MB / 1.167 GB, free: 6.777 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.002844/0.3291, allocations: 1.52 MB / 1.168 GB, free: 5.246 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001737/0.3309, allocations: 0.5487 MB / 1.169 GB, free: 4.699 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000101/0.331, allocations: 0 / 1.169 GB, free: 4.699 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0001247/0.3312, allocations: 15.86 kB / 1.169 GB, free: 4.684 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0001346/0.3314, allocations: 27.64 kB / 1.169 GB, free: 4.656 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009831/0.3324, allocations: 311.3 kB / 1.169 GB, free: 4.352 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0006079/0.333, allocations: 0.5033 MB / 1.169 GB, free: 3.848 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 4.748e-05/0.333, allocations: 4 kB / 1.169 GB, free: 3.844 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004372/0.3335, allocations: 275.6 kB / 1.17 GB, free: 3.574 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000325/0.3338, allocations: 150.3 kB / 1.17 GB, free: 3.43 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 0.0001113/0.3339, allocations: 24 kB / 1.17 GB, free: 3.406 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 9.848e-05/0.334, allocations: 28 kB / 1.17 GB, free: 3.379 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.0001595/0.3342, allocations: 115.6 kB / 1.17 GB, free: 3.266 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.0001997/0.3344, allocations: 183.1 kB / 1.17 GB, free: 3.086 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0004503/0.3349, allocations: 426.3 kB / 1.171 GB, free: 2.668 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.3349, allocations: 0 / 1.171 GB, free: 2.668 MB / 0.92 GB Notification: Performance of FrontEnd: time 2.465e-06/0.3349, allocations: 0 / 1.171 GB, free: 2.668 MB / 0.92 GB Notification: Performance of Transformations before backend: time 1.399e-05/0.3349, allocations: 0 / 1.171 GB, free: 2.668 MB / 0.92 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.001469/0.3364, allocations: 0.8918 MB / 1.171 GB, free: 1.688 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.576e-05/0.3364, allocations: 12.03 kB / 1.171 GB, free: 1.676 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001489/0.3366, allocations: 52.69 kB / 1.171 GB, free: 1.625 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004035/0.337, allocations: 306.6 kB / 1.172 GB, free: 1.289 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.25e-05/0.3371, allocations: 16.36 kB / 1.172 GB, free: 1.273 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.933e-05/0.3371, allocations: 32.36 kB / 1.172 GB, free: 1.242 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009465/0.3381, allocations: 209.9 kB / 1.172 GB, free: 1.031 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.478e-06/0.3381, allocations: 4.188 kB / 1.172 GB, free: 1.027 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.179e-05/0.3381, allocations: 7.922 kB / 1.172 GB, free: 1.02 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.514e-06/0.3382, allocations: 4 kB / 1.172 GB, free: 1.016 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007449/0.3389, allocations: 99.55 kB / 1.172 GB, free: 0.9219 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005085/0.3394, allocations: 393.2 kB / 1.173 GB, free: 500 kB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001023/0.3405, allocations: 178.5 kB / 1.173 GB, free: 312 kB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007212/0.3412, allocations: 108.8 kB / 1.173 GB, free: 200 kB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 2.388e-05/0.3412, allocations: 7.984 kB / 1.173 GB, free: 192 kB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009555/0.3422, allocations: 231.1 kB / 1.173 GB, free: 15.95 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=16): time 1.913e-06/0.3422, allocations: 0 / 1.173 GB, free: 15.95 MB / 0.9356 GB Notification: Performance of matching and sorting (n=16): time 0.002482/0.3447, allocations: 490.5 kB / 1.173 GB, free: 15.46 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.219e-05/0.3448, allocations: 59.41 kB / 1.174 GB, free: 15.39 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004363/0.3452, allocations: 409.9 kB / 1.174 GB, free: 14.98 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 6.261e-05/0.3453, allocations: 41.7 kB / 1.174 GB, free: 14.93 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 7.523e-05/0.3454, allocations: 93.44 kB / 1.174 GB, free: 14.84 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 5.585e-05/0.3454, allocations: 47.62 kB / 1.174 GB, free: 14.79 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002141/0.3456, allocations: 125.5 kB / 1.174 GB, free: 14.66 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001196/0.3458, allocations: 322.8 kB / 1.175 GB, free: 14.34 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002652/0.346, allocations: 119.9 kB / 1.175 GB, free: 14.22 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002826/0.3463, allocations: 174.9 kB / 1.175 GB, free: 14.03 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003615/0.3467, allocations: 269.3 kB / 1.175 GB, free: 13.73 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.26e-06/0.3467, allocations: 7.938 kB / 1.175 GB, free: 13.73 MB / 0.9356 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008256/0.3475, allocations: 495 kB / 1.176 GB, free: 13.23 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 8.72e-05/0.3476, allocations: 91.31 kB / 1.176 GB, free: 13.12 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.3477, allocations: 0 / 1.176 GB, free: 13.12 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.693e-05/0.3477, allocations: 4 kB / 1.176 GB, free: 13.12 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001664/0.3478, allocations: 27.91 kB / 1.176 GB, free: 13.09 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.642e-06/0.3479, allocations: 192 / 1.176 GB, free: 13.09 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004768/0.3483, allocations: 67.8 kB / 1.176 GB, free: 13.03 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.316e-05/0.3484, allocations: 59.98 kB / 1.176 GB, free: 12.97 MB / 0.9356 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.0002216/0.3487, allocations: 200.8 kB / 1.176 GB, free: 12.77 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.995e-05/0.3487, allocations: 39.7 kB / 1.176 GB, free: 12.73 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.518e-05/0.3488, allocations: 39.75 kB / 1.176 GB, free: 12.69 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.376e-06/0.3488, allocations: 4 kB / 1.176 GB, free: 12.69 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.3488, allocations: 4 kB / 1.176 GB, free: 12.68 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.3488, allocations: 0 / 1.176 GB, free: 12.68 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002146/0.351, allocations: 0.7482 MB / 1.177 GB, free: 11.88 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.351, allocations: 4 kB / 1.177 GB, free: 11.87 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.543e-05/0.351, allocations: 4 kB / 1.177 GB, free: 11.87 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.869e-06/0.3511, allocations: 4 kB / 1.177 GB, free: 11.86 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.486e-05/0.3511, allocations: 15.97 kB / 1.177 GB, free: 11.85 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.254e-06/0.3511, allocations: 4 kB / 1.177 GB, free: 11.84 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.3511, allocations: 0 / 1.177 GB, free: 11.84 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001726/0.3528, allocations: 476.7 kB / 1.177 GB, free: 11.36 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002436/0.3531, allocations: 204.7 kB / 1.177 GB, free: 11.14 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.557e-05/0.3532, allocations: 12 kB / 1.177 GB, free: 11.13 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004672/0.3537, allocations: 31.95 kB / 1.178 GB, free: 11.1 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.934e-05/0.3537, allocations: 8 kB / 1.178 GB, free: 11.09 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.393e-05/0.3538, allocations: 67.91 kB / 1.178 GB, free: 11.03 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0003694/0.3542, allocations: 295.1 kB / 1.178 GB, free: 10.74 MB / 0.9356 GB Notification: Performance of sort global known variables: time 3.2e-07/0.3542, allocations: 0 / 1.178 GB, free: 10.74 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.000441/0.3547, allocations: 67.98 kB / 1.178 GB, free: 10.67 MB / 0.9356 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.0001628/0.3548, allocations: 113 kB / 1.178 GB, free: 10.55 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.001305/0.3561, allocations: 440 kB / 1.178 GB, free: 10.1 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.3562, allocations: 0 / 1.178 GB, free: 10.1 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0007408/0.3569, allocations: 119.9 kB / 1.179 GB, free: 9.98 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003608/0.3573, allocations: 33.47 kB / 1.179 GB, free: 9.949 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001437/0.3587, allocations: 0.5574 MB / 1.179 GB, free: 9.367 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003355/0.3591, allocations: 0.7745 MB / 1.18 GB, free: 8.562 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 6.959e-05/0.3591, allocations: 21 kB / 1.18 GB, free: 8.543 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.292e-05/0.3592, allocations: 15.44 kB / 1.18 GB, free: 8.527 MB / 0.9356 GB Notification: Performance of SimCode: time 3.6e-07/0.3592, allocations: 4 kB / 1.18 GB, free: 8.523 MB / 0.9356 GB Notification: Performance of Templates: time 0.009887/0.3691, allocations: 5.012 MB / 1.185 GB, free: 3.402 MB / 0.9356 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Time.Examples.CalendarTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches