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.001761/0.001761, allocations: 103.6 kB / 18.95 MB, free: 2.547 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.002075/0.002075, allocations: 214.6 kB / 22.25 MB, free: 4.867 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.463/1.463, allocations: 230.6 MB / 256 MB, free: 7.797 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.225/3.225, allocations: 0.5107 GB / 0.8158 GB, free: 17.81 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: "" <> buildModelFMU(Buildings.Utilities.Time.Examples.CalendarTime,fileNamePrefix="Buildings_latest_Buildings_Utilities_Time_Examples_CalendarTime",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Time.Examples.CalendarTime,fileNamePrefix="Buildings_latest_Buildings_Utilities_Time_Examples_CalendarTime",fmuType="me",version="2.0",platforms={"static"}) [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.002104/0.002104, allocations: 72.05 kB / 1.186 GB, free: 13.67 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3539/0.356, allocations: 181.9 MB / 1.363 GB, free: 14.1 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.003226/0.3593, allocations: 1.518 MB / 1.365 GB, free: 12.56 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001361/0.3606, allocations: 0.5306 MB / 1.365 GB, free: 12.03 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.588e-05/0.3607, allocations: 0 / 1.365 GB, free: 12.03 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 9.407e-05/0.3608, allocations: 11.86 kB / 1.365 GB, free: 12.02 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0001093/0.3609, allocations: 31.64 kB / 1.365 GB, free: 11.99 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008505/0.3617, allocations: 321.8 kB / 1.366 GB, free: 11.68 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0005525/0.3623, allocations: 483.5 kB / 1.366 GB, free: 11.2 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 4.584e-05/0.3623, allocations: 0 / 1.366 GB, free: 11.2 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004055/0.3627, allocations: 287.6 kB / 1.366 GB, free: 10.92 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00031/0.363, allocations: 131.7 kB / 1.367 GB, free: 10.79 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 0.0001018/0.3632, allocations: 28 kB / 1.367 GB, free: 10.77 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 9.676e-05/0.3632, allocations: 28 kB / 1.367 GB, free: 10.74 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 0.0001484/0.3634, allocations: 115.6 kB / 1.367 GB, free: 10.62 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0001979/0.3636, allocations: 151.3 kB / 1.367 GB, free: 10.48 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0005223/0.3641, allocations: 434.6 kB / 1.367 GB, free: 10.05 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.3641, allocations: 7.938 kB / 1.367 GB, free: 10.04 MB / 1.061 GB Notification: Performance of FrontEnd: time 2.976e-06/0.3641, allocations: 0 / 1.367 GB, free: 10.04 MB / 1.061 GB Notification: Performance of Transformations before backend: time 9.167e-06/0.3641, allocations: 0 / 1.367 GB, free: 10.04 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.001413/0.3655, allocations: 0.795 MB / 1.368 GB, free: 9.176 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.67e-05/0.3656, allocations: 8.031 kB / 1.368 GB, free: 9.168 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.753e-05/0.3657, allocations: 38.69 kB / 1.368 GB, free: 9.121 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001285/0.3658, allocations: 52.69 kB / 1.368 GB, free: 9.07 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004898/0.3663, allocations: 260.7 kB / 1.368 GB, free: 8.793 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.907e-05/0.3663, allocations: 20.36 kB / 1.368 GB, free: 8.773 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.256e-05/0.3664, allocations: 24.36 kB / 1.368 GB, free: 8.75 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009672/0.3674, allocations: 214 kB / 1.369 GB, free: 8.535 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.399e-05/0.3674, allocations: 7.938 kB / 1.369 GB, free: 8.527 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.716e-05/0.3674, allocations: 3.984 kB / 1.369 GB, free: 8.523 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.19e-06/0.3674, allocations: 3.938 kB / 1.369 GB, free: 8.52 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007213/0.3681, allocations: 99.86 kB / 1.369 GB, free: 8.422 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004624/0.3686, allocations: 304.5 kB / 1.369 GB, free: 8.082 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001015/0.3696, allocations: 162.5 kB / 1.369 GB, free: 7.914 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007072/0.3703, allocations: 99.28 kB / 1.369 GB, free: 7.816 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 3.326e-05/0.3704, allocations: 8 kB / 1.369 GB, free: 7.809 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009795/0.3713, allocations: 227.1 kB / 1.37 GB, free: 7.574 MB / 1.061 GB Notification: Performance of pre-optimization done (n=16): time 2.765e-06/0.3713, allocations: 7.938 kB / 1.37 GB, free: 7.566 MB / 1.061 GB Notification: Performance of matching and sorting (n=16): time 0.002537/0.3739, allocations: 491.6 kB / 1.37 GB, free: 7.082 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.6e-05/0.3739, allocations: 59.41 kB / 1.37 GB, free: 7.012 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004861/0.3744, allocations: 409.9 kB / 1.37 GB, free: 6.598 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 6.446e-05/0.3745, allocations: 41.69 kB / 1.37 GB, free: 6.551 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 9.298e-05/0.3746, allocations: 93.44 kB / 1.371 GB, free: 6.457 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 5.388e-05/0.3746, allocations: 43.67 kB / 1.371 GB, free: 6.414 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002003/0.3748, allocations: 129.5 kB / 1.371 GB, free: 6.281 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001708/0.375, allocations: 322.8 kB / 1.371 GB, free: 5.957 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003387/0.3753, allocations: 191.3 kB / 1.371 GB, free: 5.758 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003734/0.3757, allocations: 249.7 kB / 1.371 GB, free: 5.48 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004207/0.3761, allocations: 268.4 kB / 1.372 GB, free: 5.188 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.3761, allocations: 7.938 kB / 1.372 GB, free: 5.18 MB / 1.061 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009392/0.3771, allocations: 0.5508 MB / 1.372 GB, free: 4.598 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 8.62e-05/0.3772, allocations: 83.31 kB / 1.372 GB, free: 4.504 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.53e-06/0.3772, allocations: 0 / 1.372 GB, free: 4.504 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.753e-05/0.3772, allocations: 4 kB / 1.372 GB, free: 4.5 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001686/0.3774, allocations: 27.97 kB / 1.372 GB, free: 4.473 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.718e-06/0.3774, allocations: 3.938 kB / 1.372 GB, free: 4.469 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004749/0.3778, allocations: 68.02 kB / 1.372 GB, free: 4.402 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.483e-05/0.3779, allocations: 55.98 kB / 1.373 GB, free: 4.348 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.0002747/0.3782, allocations: 197.8 kB / 1.373 GB, free: 4.148 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.664e-05/0.3783, allocations: 47.64 kB / 1.373 GB, free: 4.102 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.012e-05/0.3783, allocations: 35.69 kB / 1.373 GB, free: 4.07 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.3784, allocations: 3.938 kB / 1.373 GB, free: 4.066 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.3784, allocations: 0 / 1.373 GB, free: 4.066 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.24e-06/0.3784, allocations: 7.984 kB / 1.373 GB, free: 4.059 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002235/0.3806, allocations: 0.7045 MB / 1.373 GB, free: 3.301 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.3806, allocations: 0 / 1.373 GB, free: 3.301 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.247e-05/0.3806, allocations: 11.92 kB / 1.373 GB, free: 3.289 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.046e-06/0.3806, allocations: 0 / 1.373 GB, free: 3.289 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.598e-05/0.3807, allocations: 15.98 kB / 1.374 GB, free: 3.273 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.894e-06/0.3807, allocations: 4 kB / 1.374 GB, free: 3.27 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.654e-06/0.3807, allocations: 0 / 1.374 GB, free: 3.27 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001687/0.3824, allocations: 483.4 kB / 1.374 GB, free: 2.781 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000317/0.3827, allocations: 137.5 kB / 1.374 GB, free: 2.645 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.215e-05/0.3828, allocations: 12 kB / 1.374 GB, free: 2.633 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004531/0.3832, allocations: 31.95 kB / 1.374 GB, free: 2.602 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.739e-05/0.3833, allocations: 11.98 kB / 1.374 GB, free: 2.59 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.34e-05/0.3833, allocations: 55.98 kB / 1.374 GB, free: 2.535 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0003152/0.3836, allocations: 295.1 kB / 1.374 GB, free: 2.242 MB / 1.061 GB Notification: Performance of sort global known variables: time 1.01e-07/0.3836, allocations: 0 / 1.374 GB, free: 2.242 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003909/0.384, allocations: 63.98 kB / 1.375 GB, free: 2.18 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.002081/0.3861, allocations: 1.036 MB / 1.376 GB, free: 1.117 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.001279/0.3874, allocations: 470.1 kB / 1.376 GB, free: 0.6211 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.3874, allocations: 4.125 kB / 1.376 GB, free: 0.6172 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0007432/0.3881, allocations: 118.2 kB / 1.376 GB, free: 0.5039 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003638/0.3885, allocations: 30.75 kB / 1.376 GB, free: 488 kB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004769/0.3933, allocations: 3.072 MB / 1.379 GB, free: 13.23 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001942/0.3935, allocations: 170.8 kB / 1.379 GB, free: 13.04 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 6.703e-05/0.3935, allocations: 13.08 kB / 1.379 GB, free: 13.03 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.637e-05/0.3936, allocations: 31.41 kB / 1.379 GB, free: 13 MB / 1.076 GB Notification: Performance of SimCode: time 5.91e-07/0.3936, allocations: 0 / 1.379 GB, free: 13 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03669/0.4303, allocations: 8.062 MB / 1.387 GB, free: 4.98 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.85/12.28, allocations: 6.375 kB / 1.387 GB, free: 4.977 MB / 1.076 GB " [Timeout remaining time 288] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Time_Examples_CalendarTime_fmu --startTime=0 --stopTime=1e+08 --stepSize=643.381 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Time_Examples_CalendarTime.fmu > Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.pipe 2>&1) [Timeout 840.0] 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) [Timeout 300] "" [Timeout remaining time 299] Reference file matches [Calling sys.exit(0), Time elapsed: 22.0657134372741]