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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001762/0.001762, allocations: 110.4 kB / 18.94 MB, free: 2.949 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002171/0.002171, allocations: 217 kB / 22.25 MB, free: 5.121 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.492/1.492, allocations: 230.6 MB / 256 MB, free: 7.973 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.347/3.347, allocations: 0.5096 GB / 0.8147 GB, free: 17.26 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Utilities.Time.Examples.CalendarTime,tolerance=1e-06,outputFormat="mat",numberOfIntervals=155429,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=155429,variableFilter="time|calendarTime2016.year|calendarTime2016.month|calendarTime2016.day|calendarTime2016.hour|calendarTime2016.minute",fileNamePrefix="Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002131/0.002131, allocations: 70.92 kB / 1.184 GB, free: 14.47 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3389/0.341, allocations: 181.4 MB / 1.361 GB, free: 220 kB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.002645/0.3437, allocations: 1.548 MB / 1.363 GB, free: 14.65 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001292/0.345, allocations: 0.5506 MB / 1.363 GB, free: 14.1 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.466e-05/0.345, allocations: 3.938 kB / 1.363 GB, free: 14.1 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 9.441e-05/0.3451, allocations: 3.938 kB / 1.363 GB, free: 14.09 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0001198/0.3452, allocations: 31.64 kB / 1.363 GB, free: 14.06 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007866/0.346, allocations: 315.4 kB / 1.364 GB, free: 13.75 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0005582/0.3466, allocations: 487.5 kB / 1.364 GB, free: 13.28 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 3.921e-05/0.3466, allocations: 0 / 1.364 GB, free: 13.28 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004091/0.347, allocations: 287.6 kB / 1.365 GB, free: 13 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003082/0.3473, allocations: 151.6 kB / 1.365 GB, free: 12.85 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 7.57e-05/0.3474, allocations: 28 kB / 1.365 GB, free: 12.82 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 7.265e-05/0.3475, allocations: 28 kB / 1.365 GB, free: 12.79 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 0.0001334/0.3476, allocations: 111.7 kB / 1.365 GB, free: 12.68 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0001973/0.3478, allocations: 187 kB / 1.365 GB, free: 12.5 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.000444/0.3483, allocations: 430.3 kB / 1.365 GB, free: 12.08 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.3483, allocations: 4 kB / 1.365 GB, free: 12.07 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.403e-06/0.3483, allocations: 0 / 1.365 GB, free: 12.07 MB / 1.061 GB Notification: Performance of Transformations before backend: time 1.081e-05/0.3483, allocations: 0 / 1.365 GB, free: 12.07 MB / 1.061 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.001227/0.3495, allocations: 0.7989 MB / 1.366 GB, free: 11.2 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.721e-05/0.3495, allocations: 8.031 kB / 1.366 GB, free: 11.2 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001238/0.3497, allocations: 56.7 kB / 1.366 GB, free: 11.14 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004308/0.3501, allocations: 260.7 kB / 1.367 GB, free: 10.86 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.735e-05/0.3501, allocations: 12.38 kB / 1.367 GB, free: 10.85 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.571e-05/0.3502, allocations: 28.36 kB / 1.367 GB, free: 10.82 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009534/0.3512, allocations: 220.1 kB / 1.367 GB, free: 10.61 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.899e-06/0.3512, allocations: 192 / 1.367 GB, free: 10.61 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.89e-05/0.3512, allocations: 3.938 kB / 1.367 GB, free: 10.6 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.512e-06/0.3512, allocations: 4 kB / 1.367 GB, free: 10.6 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007149/0.3519, allocations: 99.92 kB / 1.367 GB, free: 10.5 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004511/0.3524, allocations: 364.3 kB / 1.367 GB, free: 10.1 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009909/0.3534, allocations: 170.4 kB / 1.367 GB, free: 9.926 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007159/0.3541, allocations: 109.2 kB / 1.367 GB, free: 9.816 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.438e-05/0.3541, allocations: 0 / 1.367 GB, free: 9.816 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000914/0.355, allocations: 227.2 kB / 1.368 GB, free: 9.582 MB / 1.061 GB Notification: Performance of pre-optimization done (n=16): time 1.433e-06/0.355, allocations: 0 / 1.368 GB, free: 9.582 MB / 1.061 GB Notification: Performance of matching and sorting (n=16): time 0.002416/0.3574, allocations: 491.9 kB / 1.368 GB, free: 9.098 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.301e-05/0.3575, allocations: 59.41 kB / 1.368 GB, free: 9.027 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004407/0.3579, allocations: 413.9 kB / 1.369 GB, free: 8.609 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 5.884e-05/0.358, allocations: 37.7 kB / 1.369 GB, free: 8.566 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 8.173e-05/0.3581, allocations: 97.44 kB / 1.369 GB, free: 8.469 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 5.203e-05/0.3581, allocations: 43.67 kB / 1.369 GB, free: 8.426 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001989/0.3583, allocations: 129.5 kB / 1.369 GB, free: 8.293 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001421/0.3585, allocations: 322.8 kB / 1.369 GB, free: 7.969 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002639/0.3587, allocations: 115.9 kB / 1.369 GB, free: 7.855 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003004/0.359, allocations: 173.9 kB / 1.369 GB, free: 7.664 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003915/0.3594, allocations: 275.5 kB / 1.37 GB, free: 7.363 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.3594, allocations: 0 / 1.37 GB, free: 7.363 MB / 1.061 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008321/0.3603, allocations: 484.7 kB / 1.37 GB, free: 6.871 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 9.35e-05/0.3604, allocations: 93.38 kB / 1.37 GB, free: 6.77 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.164e-06/0.3604, allocations: 8 kB / 1.37 GB, free: 6.762 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.696e-05/0.3604, allocations: 7.938 kB / 1.37 GB, free: 6.754 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001703/0.3605, allocations: 31.84 kB / 1.37 GB, free: 6.723 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.047e-06/0.3606, allocations: 4 kB / 1.37 GB, free: 6.719 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004772/0.361, allocations: 55.84 kB / 1.37 GB, free: 6.664 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.144e-05/0.3611, allocations: 59.98 kB / 1.37 GB, free: 6.605 MB / 1.061 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.0002502/0.3614, allocations: 197.7 kB / 1.371 GB, free: 6.406 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.102e-05/0.3614, allocations: 43.66 kB / 1.371 GB, free: 6.363 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.479e-05/0.3615, allocations: 39.69 kB / 1.371 GB, free: 6.328 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.495e-06/0.3615, allocations: 4 kB / 1.371 GB, free: 6.324 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.3615, allocations: 0 / 1.371 GB, free: 6.324 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.442e-06/0.3615, allocations: 3.984 kB / 1.371 GB, free: 6.32 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002166/0.3637, allocations: 0.7239 MB / 1.371 GB, free: 5.543 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.3637, allocations: 0 / 1.371 GB, free: 5.543 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.751e-05/0.3637, allocations: 4 kB / 1.371 GB, free: 5.539 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.485e-06/0.3637, allocations: 0 / 1.371 GB, free: 5.539 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.119e-05/0.3638, allocations: 23.97 kB / 1.371 GB, free: 5.516 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.3638, allocations: 0 / 1.371 GB, free: 5.516 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.3638, allocations: 0 / 1.371 GB, free: 5.516 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001649/0.3654, allocations: 483.4 kB / 1.372 GB, free: 5.027 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002896/0.3657, allocations: 125.5 kB / 1.372 GB, free: 4.902 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.456e-05/0.3658, allocations: 11.98 kB / 1.372 GB, free: 4.891 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004625/0.3662, allocations: 39.91 kB / 1.372 GB, free: 4.852 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.551e-05/0.3663, allocations: 7.984 kB / 1.372 GB, free: 4.844 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.415e-05/0.3664, allocations: 63.97 kB / 1.372 GB, free: 4.781 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0003403/0.3667, allocations: 291.1 kB / 1.372 GB, free: 4.496 MB / 1.061 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3667, allocations: 0 / 1.372 GB, free: 4.496 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003681/0.3671, allocations: 67.98 kB / 1.373 GB, free: 4.43 MB / 1.061 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.000148/0.3672, allocations: 117 kB / 1.373 GB, free: 4.305 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.001219/0.3684, allocations: 408.7 kB / 1.373 GB, free: 3.883 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.215e-06/0.3684, allocations: 0 / 1.373 GB, free: 3.883 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0007214/0.3692, allocations: 112.2 kB / 1.373 GB, free: 3.773 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003592/0.3695, allocations: 33.52 kB / 1.373 GB, free: 3.742 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001428/0.3709, allocations: 0.547 MB / 1.374 GB, free: 3.168 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004119/0.3714, allocations: 0.7708 MB / 1.374 GB, free: 2.371 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 6.041e-05/0.3714, allocations: 13.09 kB / 1.374 GB, free: 2.359 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.845e-05/0.3715, allocations: 19.42 kB / 1.374 GB, free: 2.34 MB / 1.061 GB Notification: Performance of SimCode: time 4.81e-07/0.3715, allocations: 0 / 1.374 GB, free: 2.34 MB / 1.061 GB Notification: Performance of Templates: time 0.009569/0.381, allocations: 5.103 MB / 1.379 GB, free: 13.13 MB / 1.076 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.makefile [Timeout 300] (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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Time_Examples_CalendarTime.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 299] Reference file matches [Calling sys.exit(0), Time elapsed: 9.95576922595501]