Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001818/0.001818, allocations: 111 kB / 16.46 MB, free: 6.453 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.002485/0.002485, allocations: 213.7 kB / 19.43 MB, free: 3.625 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.471/1.471, allocations: 230.6 MB / 252.8 MB, free: 8.98 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.24/3.24, allocations: 0.49 GB / 0.7916 GB, free: 33.37 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/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_12_Buildings_Utilities_Time_Examples_CalendarTime",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Time.Examples.CalendarTime,fileNamePrefix="Buildings_12_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.002035/0.002035, allocations: 68.67 kB / 1.149 GB, free: 26.4 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3568/0.3589, allocations: 176.1 MB / 1.321 GB, free: 3.375 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.003181/0.3621, allocations: 1.544 MB / 1.322 GB, free: 1.82 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001659/0.3637, allocations: 0.5362 MB / 1.323 GB, free: 1.285 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.818e-05/0.3638, allocations: 3.938 kB / 1.323 GB, free: 1.281 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.000166/0.364, allocations: 7.922 kB / 1.323 GB, free: 1.273 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.0001547/0.3641, allocations: 31.78 kB / 1.323 GB, free: 1.242 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.001127/0.3652, allocations: 326.9 kB / 1.323 GB, free: 0.9258 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0007395/0.366, allocations: 483.5 kB / 1.324 GB, free: 464 kB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 6.653e-05/0.366, allocations: 0 / 1.324 GB, free: 464 kB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004635/0.3665, allocations: 283.6 kB / 1.324 GB, free: 180 kB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003254/0.3668, allocations: 151.3 kB / 1.324 GB, free: 28 kB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 8.106e-05/0.3669, allocations: 28 kB / 1.324 GB, free: 0 / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 9.407e-05/0.367, allocations: 28.05 kB / 1.324 GB, free: 15.97 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.000155/0.3672, allocations: 115.6 kB / 1.324 GB, free: 15.86 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0002009/0.3674, allocations: 179 kB / 1.324 GB, free: 15.68 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0004953/0.3679, allocations: 426.7 kB / 1.325 GB, free: 15.27 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.3679, allocations: 4 kB / 1.325 GB, free: 15.26 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.634e-06/0.3679, allocations: 0 / 1.325 GB, free: 15.26 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.105e-05/0.3679, allocations: 0 / 1.325 GB, free: 15.26 MB / 1.029 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.001477/0.3694, allocations: 0.8781 MB / 1.326 GB, free: 14.29 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 5.45e-05/0.3694, allocations: 15.97 kB / 1.326 GB, free: 14.28 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.523e-05/0.3695, allocations: 38.75 kB / 1.326 GB, free: 14.23 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001283/0.3696, allocations: 48.7 kB / 1.326 GB, free: 14.18 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005291/0.3701, allocations: 318.5 kB / 1.326 GB, free: 13.84 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.618e-05/0.3702, allocations: 28.3 kB / 1.326 GB, free: 13.81 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.941e-05/0.3703, allocations: 24.36 kB / 1.326 GB, free: 13.79 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001043/0.3713, allocations: 206 kB / 1.326 GB, free: 13.58 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.093e-05/0.3713, allocations: 3.938 kB / 1.326 GB, free: 13.57 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.126e-05/0.3713, allocations: 8 kB / 1.326 GB, free: 13.57 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.865e-06/0.3714, allocations: 7.922 kB / 1.326 GB, free: 13.56 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008094/0.3722, allocations: 99.92 kB / 1.326 GB, free: 13.46 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004849/0.3727, allocations: 385.3 kB / 1.327 GB, free: 13.04 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001095/0.3737, allocations: 170.4 kB / 1.327 GB, free: 12.86 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007918/0.3745, allocations: 100.8 kB / 1.327 GB, free: 12.76 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.944e-05/0.3746, allocations: 3.984 kB / 1.327 GB, free: 12.75 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001025/0.3756, allocations: 227.1 kB / 1.327 GB, free: 12.52 MB / 1.029 GB Notification: Performance of pre-optimization done (n=16): time 2.054e-06/0.3756, allocations: 0 / 1.327 GB, free: 12.52 MB / 1.029 GB Notification: Performance of matching and sorting (n=16): time 0.002832/0.3784, allocations: 491.7 kB / 1.328 GB, free: 12.04 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.285e-05/0.3785, allocations: 59.41 kB / 1.328 GB, free: 11.96 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005321/0.379, allocations: 409.9 kB / 1.328 GB, free: 11.55 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 8.829e-05/0.3791, allocations: 41.69 kB / 1.328 GB, free: 11.51 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001003/0.3792, allocations: 97.44 kB / 1.328 GB, free: 11.41 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 5.597e-05/0.3793, allocations: 39.69 kB / 1.328 GB, free: 11.37 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002511/0.3795, allocations: 133.5 kB / 1.328 GB, free: 11.23 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001784/0.3797, allocations: 322.8 kB / 1.329 GB, free: 10.91 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00032/0.38, allocations: 123.9 kB / 1.329 GB, free: 10.79 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003311/0.3803, allocations: 161.9 kB / 1.329 GB, free: 10.61 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004527/0.3808, allocations: 279 kB / 1.329 GB, free: 10.3 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.3808, allocations: 3.938 kB / 1.329 GB, free: 10.3 MB / 1.029 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009562/0.3818, allocations: 488.8 kB / 1.33 GB, free: 9.805 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001248/0.3819, allocations: 95.31 kB / 1.33 GB, free: 9.699 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.965e-06/0.3819, allocations: 0 / 1.33 GB, free: 9.699 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.09e-05/0.3819, allocations: 4 kB / 1.33 GB, free: 9.695 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000179/0.3821, allocations: 19.92 kB / 1.33 GB, free: 9.676 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.472e-05/0.3821, allocations: 7.984 kB / 1.33 GB, free: 9.668 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005347/0.3826, allocations: 63.95 kB / 1.33 GB, free: 9.605 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.736e-05/0.3827, allocations: 63.98 kB / 1.33 GB, free: 9.543 MB / 1.029 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.0003064/0.383, allocations: 189.7 kB / 1.33 GB, free: 9.348 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.612e-05/0.3831, allocations: 47.66 kB / 1.33 GB, free: 9.301 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.163e-05/0.3832, allocations: 47.73 kB / 1.33 GB, free: 9.25 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.407e-06/0.3832, allocations: 0 / 1.33 GB, free: 9.25 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.58e-06/0.3832, allocations: 0 / 1.33 GB, free: 9.25 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.458e-06/0.3832, allocations: 0 / 1.33 GB, free: 9.25 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002429/0.3857, allocations: 0.7521 MB / 1.331 GB, free: 8.438 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.3857, allocations: 0 / 1.331 GB, free: 8.438 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.65e-05/0.3857, allocations: 4 kB / 1.331 GB, free: 8.434 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.3857, allocations: 3.938 kB / 1.331 GB, free: 8.43 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.096e-05/0.3857, allocations: 19.97 kB / 1.331 GB, free: 8.41 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.454e-06/0.3858, allocations: 4 kB / 1.331 GB, free: 8.406 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.3858, allocations: 0 / 1.331 GB, free: 8.406 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001891/0.3876, allocations: 479.4 kB / 1.332 GB, free: 7.922 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003361/0.388, allocations: 208.7 kB / 1.332 GB, free: 7.699 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.363e-05/0.3881, allocations: 8 kB / 1.332 GB, free: 7.691 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005086/0.3886, allocations: 27.97 kB / 1.332 GB, free: 7.664 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.377e-05/0.3886, allocations: 11.98 kB / 1.332 GB, free: 7.652 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.342e-05/0.3887, allocations: 55.97 kB / 1.332 GB, free: 7.598 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0003457/0.389, allocations: 295.1 kB / 1.332 GB, free: 7.312 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.389, allocations: 0 / 1.332 GB, free: 7.312 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0004115/0.3894, allocations: 71.98 kB / 1.332 GB, free: 7.242 MB / 1.029 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.002365/0.3918, allocations: 1.024 MB / 1.333 GB, free: 6.188 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.00145/0.3933, allocations: 406.5 kB / 1.334 GB, free: 5.766 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.3933, allocations: 0 / 1.334 GB, free: 5.766 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0008431/0.3941, allocations: 108.3 kB / 1.334 GB, free: 5.66 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003912/0.3945, allocations: 28.36 kB / 1.334 GB, free: 5.633 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004729/0.3992, allocations: 2.796 MB / 1.336 GB, free: 2.703 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004624/0.3997, allocations: 0.7708 MB / 1.337 GB, free: 1.906 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 6.507e-05/0.3998, allocations: 17.08 kB / 1.337 GB, free: 1.887 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.376e-05/0.3998, allocations: 23.42 kB / 1.337 GB, free: 1.863 MB / 1.029 GB Notification: Performance of SimCode: time 4.31e-07/0.3998, allocations: 0 / 1.337 GB, free: 1.863 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03119/0.431, allocations: 6.225 MB / 1.343 GB, free: 11.61 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.341/8.772, allocations: 17.25 kB / 1.343 GB, free: 11.6 MB / 1.045 GB " [Timeout remaining time 291] (rm -f Buildings_12_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; mkfifo Buildings_12_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Time.Examples.CalendarTime.pipe >> ../files/Buildings_12_Buildings.Utilities.Time.Examples.CalendarTime.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Utilities.Time.Examples.CalendarTime_res.mat --tempDir=temp_Buildings_12_Buildings_Utilities_Time_Examples_CalendarTime_fmu --startTime=0 --stopTime=1e+08 --stepSize=643.381 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Utilities_Time_Examples_CalendarTime.fmu > Buildings_12_Buildings.Utilities.Time.Examples.CalendarTime.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Utilities.Time.Examples.CalendarTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Time_Examples_CalendarTime.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 18.518877241062]